Retrieve the Direct Debit Reversal Code (DDR Code)
This guide will show you how to set up the configuration to retrieve the Direct Debit Reversal Code (DDR Code) from a bank statement file and copy it to the invoice for which the payment was reversed.
This configuration only applies to the import of the following types of bank statement files:Â
- CAMT.053
- CAMT.054
- PAIN002
- CSV
Steps
- Go to Setup → Bank Reconciliation Setup → Bank Account Configuration.
- Edit the Bank Account Configuration you want to configure the retrieving of the DDR Codes for.
- Scroll down and go to Additional Parameters & Fields → Additional Fields subtab.
- Click on New Bank Statement Additional Fields button.
- The Bank Statement Additional fields page opens.Â
- If your bank statement file has a CAMT.053 or CAMT.054 format:
Copy the below query and paste it to the XML Path field:
XPath for DDR Code/*[local-name()='Document']/*[local-name()='BkToCstmrStmt']/*[local-name()='Stmt']/*[local-name()='Ntry']/*[local-name() = 'NtryDtls']/*[local-name()='TxDtls']/*[local-name()='RtrInf']/*[local-name()='Rsn']/*[local-name()='Cd']
- From the drop-down under Bank Statement Transaction Field, select Additional Fields.
- From the drop-down under NetSuite Field, select DDR Code.
- Select Body for the Body or Line level field.
- Save the record.Â
- If your bank statement file has a CSV format:
- Populate the CSV column field with the number of the column containing the DDR code in your CSV file.
- From the drop-down under Bank Statement Transaction Field, select Additional Fields.
- From the drop-down under NetSuite Field, select DDR Code.
- Select Body for the Body or Line level field.Â
- Save the record.Â
- If your bank statement file has a CAMT.053 or CAMT.054 format:
In case there are more than one DDR Code field available under the drop-down of the NetSuite Field, make sure to select the field that populates the NetSuite Field ID with CUSTBODY_FF_DDR_CODE.
Optional Steps
This optional step will show how to display the DRR Code filed in the invoice form.
- Go to Customization → Forms → Transaction Forms.
- Edit the invoice form you want the DDR Code field to be displayed in.
- Go to the Screen Fields subtab→ Main subtab.
- Check the Show box for the DDR Code field and select the Field Group.
- Save the record.