Symptom
You use the Business Add-In (BAdI) Payment Medium: Custom Additional Reference Fields to include your own custom reference fields in the Z namespace when you define the payment format mapping.
Node value mapped through configuration activity Map Format Data for Payments (ID 100558) does not appear in payment medium file generated via Manage Automatic Payments
Environment
SAP S/4HANA Cloud
Cause
Incorrect source used in configuration activity Map Format Data for Payments (ID 100558)
Resolution
1. In app Custom Logic for badi Payment Medium: Custom Additional Reference Fields FBL_EVENT_06
The following fields can be changed in parameter PAYMENTPAIDITEMS: ZREF01 ~ ZREF05
The following fields can be changed in parameter PAYMENTCUSTOMERFIELDS : ZREF01 ~ ZREF10
PAYMENTPAIDITEMS: Payment Medium: Table of Paid Items
PAYMENTCUSTOMERFIELDS: Payment Medium: Customer-Specific User-Defined Fields
2. The relevant data to be inputted into the selected ZREF## field in the custom Logic is mapped in the DME structure for the payment file using Configuration activity: Map Format Data for Payments (ID 100558), in the desired node a source can be selected for ZREF##:
EXAMPLES:
In app Custom Logic:
Example ZREF01 as part of Parameter PAYMENTPAIDITEMS
...
ls_paymentpaiditems-zref01 = ls_lfa1-suppliername defined in custom logic
...
This node must be mapped to own desired node in Configuration activity: Map Format Data for Payments 100558
The source for the node defined must use
Mapped Procedure: Structure Field
Structure Field: FPAYP-ZREF01
(Source)
Example ZREF01 as part of PAYMENTCUSTOMERFIELDS
...
For paymentcustomerfields-zref01 = ls_bupa-createdbyuser defined in custom logic
...
This node must be mapped to own desired node in configuration activity Configuration activity: Map Format Data for Payments 100558
The source for the node must use
Mapped Procedure: Structure Field
Structure Field: FPAYHX-ZREF01
(Source)
Payment Medium: Prepared Data for Payment - FPAYHX
Payment Medium: Customer-Specific User-Defined Fields - .INCLUDE
User-Defined Text (Customer-Specific) - FPAYHX-ZREF01
Conclusion:
paymentpaiditems-zref++ = FPAYP-ZREF++ and paymentcustomerfields-zref++ = FPAYHX-ZREF++
See Also
Keywords
KBA , FI-AP-AP-B1 , Payment transfer (w/o DE, US) , Problem