Financial Management Blog Posts by SAP
cancel
Showing results for 
Search instead for 
Did you mean: 
cheng-hua_huang
Product and Topic Expert
Product and Topic Expert
0 Likes
1,042

When you send a payment file to the bank but find out that your bank has specific requirements regarding to file layouts, then you need to modify the layouts accordingly. This blog post introduces how you can adjust mapping structures, or file layouts, of the payment formats with Business Add-Ins (BAdIs) in Cloud.

299614_Chat-Bubble_R.png

If you use S/4HANA instead of SAP S/4HANA Cloud, you can read the blog post Enhancement Implementation in Payment Formats in Contract Accounts Receivable and Payable (FI-CA).

To learn more about payment formats in Contract Accounting, you can refer to the blog post Payment Formats in Contract Accounting in SAP S/4HANA.

Payment process in Contract Accounting

 cloud badi.drawio (5).png

The new feature enables you to create your own mapping structure to your own payment format and you can further implement the logic via Business Add-ins (BAdIs) in Cloud.

To complete this task for processing payment, you need to complete the tasks as follows:

Procedure in red for setting up payment medium formats. After completing these three activities, you assigned them to Payment method as standard procedure.

  1. Map format data for payments
  2. Define payment medium formats
  3. Implement Cloud BAdI (optional)

Procedure in yellow for generating payment medium files:

  1. Define Variants for Payment Medium Program
  2. Define Variant Determination for Payment Medium Program   

Map Format Data for Payments

You can modify the standard mapping structure that is delivered by SAP in the activity Map Format Data for Payments.

  1. In your configuration environment, open Map Format Data for Payments (ID: 100558)
  2. Take Canada as an example, you find one format mapping name from the list and select Copy.
    In general, the customers’ structure starts with a slash “/”.
    21.png
  3. After you copied the standard mapping structure, you find the status being “Maintenance”. Select the arrow on the right to adjust the mapping or add values you require.
    22.png
  4. Edit.
  5. For example, you can add a new element in the structure.
  6. Select Release, when you finish editing. The status thus changed from “maintenance” to “released”.23.png

Define Payment Medium Formats

After defining your own mapping structure, you assign it to your own payment medium formats. You can copy standard payment medium formats that are delivered by SAP and modify them based on your business requirements.

Two new fields are introduced to this configuration step:

  • Original Payment Medium Format – You must enter an original payment format so the essential values delivered by SAP can be copied to your payment formats.
  • Deviating Format Tree – You can select the mapping structure that you created in the previous configuration step.

To create your own payment formats, follow the steps below:

  1. In your configuration environment open Define Payment Medium Formats (ID: 106730).
  2. Select one standard payment medium format and select Copy As.
    24.png
  3. When copying the payment format, you can enter the name of payment format starting with a slash “/”. Otherwise, after copying as a new format, the system automatically adds up a slash.25.png

    Select “copy all” in the pop-up screen to copy the whole payment medium structure. Your newly created payment medium format appears on the list.
    26.png

(Optional) Implement Cloud BAdI

Set up Additional Reference Fields in File Outputs

As a key user, you can use the cloud business add-in (BAdI) to implement your own logic. Before using the cloud BAdI, ensure that you have assigned the business role SAP_BR_EXTENSIBILITY_SPEC.

Note: Regarding of extensibility options for developers, go to Business Accelerator Hub and search for Adjust Payment Data (for Customer).

  1. Open Custom Logic app.
  2. Select “Create”.
  3. Enter the extension point BADI_FKK_ADJUST_PAYM_DATA_C and search.
    In step 2 implementation attributes, select Add.
    27.png
  4. Select “Add” in the pop-up window to apply filter condition.
    Enter the payment medium format that you created in the value field.
    28.png

    After you save the condition, the filter with the format is visible.

    29.png
  5. Proceed to the third step and enter the implementation description and ID. Select “Review”.
  6. Select “Create” button.
  7. Select the “Publish” button, the status changes from Created to Published.
    21.png
  8. You can then Open Code Editor.
    You can select Show Sample Code and copy them to clipboard to better change the coding based on your business needs.
    23.png

Adjust File Name According to the Banking Requirements

If your bank has special requirements for payment files, such as including the bank name, you can use the BAdI to meet these requirements.

Note: Regarding of extensibility options for developers, go to Business Accelerator Hub and search for Adjust File Name(for Customer).

  1. Open Custom Logic app.
  2. Select Create.
  3. Enter the extension point BADI_FKK_ADJUST_FILE_NAME_C and search.
    The following steps are the same as mentioned previously in point 4, 5, 6, and 7.
  4. Open Code Editor and select the parameters to Changing.
    For the file name you can either use the sample code or implement based on your business needs.2025-05-05_16-54-41.png
  5. When you download the payment file, the file name is changed to what you have configured.

Define Variants for Payment Medium Program

This activity allows you to define a variant for each payment medium format in the payment run.

  1. In your configuration environment open Define Variants for Payment Medium Program (ID: 101276).
  2. Enter the Format Short Name that you created.
  3. Input the fields for the payment runs of your payment medium formats.
    Note: Fields can vary based on the selected payment medium formats.
    24.png
  4. Save your entry.

Define Variant Determination for Payment Medium Program

This activity enables you to set up the account determination, such as Paying Company Code, House Bank Account, Account ID, Payment Method to the payment format variants that you have prepared in previous activity.

  1. In your configuration environment open Define variant determination for payment medium program (ID: 102207).
  2. Create a new entry and enter your format name. Select continue.
    25.png
  3. Input fields in the Key section and name your Variant.
    27.png
  4. Save your entry.

Is this blog post useful to you? Please leave your comments or questions below.