In this lesson you will learn how to use Outgoing Payment File Generation Process end-to-end in SAP S/4HANA Cloud Public Edition. You will analyze requirements from the bank towards the payment format, configure a format mapping in Map Format Data application that transforms data from payment structures to the output file and use developer extensibility for file post-processing. On top of that, you will configure a payment format, payment method and in the end generate the output file.

The payment file generation process begins with the invoice, where the accountant specifies the desired payment method for use during the Payment run. The principal aspect of file creation resides in the Payment Medium Workbench. This workbench is responsible for executing the Map Format Data engine, which is tailored for specific payment formats. It includes two key-user extensibility points and one point of developer extensibility.

The Custom Additional Reference Fields (Event 06) allows for the selection and integration of custom data sources. This is useful for incorporating extra data not originally present in the payment structures.
The Change File Name (Event 21) enables users to set a specific name for the payment file. This name is applied when the file is retrieved through the Manage Payment Media or when it is transmitted under this name to the MBC tenant.
Post-processing involves any modifications to the file, such as appending an envelope, before it is finally stored.
Scope of Delivery of Payment Formats in Map Format Data
SAP delivers its standard and localized templates via Map Format Data for Payments application in SAP S/4HANA Cloud.
SAP provides formats as country-specific templates, meaning they are initially designed for use within a particular country. However, there may be instances where specific requirements from banks or unique business needs arise. In such cases, customers may need to adjust these format templates during their projects to create a payment file that meets the bank's acceptance criteria.
The development and ongoing maintenance of these formats are guided by the CGI (Common Global Implementation – Market Practice) standards or by local country standardization organizations. Examples of such organizations include SIX in Switzerland and the NPC for Nordic countries. When visualizing this framework, SAP's delivery positions itself at an intermediary point, balancing between global market practice and local market practice.

SAP offers a comprehensive set of formats based on ISO 20022, which cater to the needs of most supported countries. The applicability of these formats depends on whether a particular country has adopted ISO 20022 standards.

Currently, SAP maintains an extensive collection of more than 90 country-specific payment formats. This includes 51 formats for credit transfers and 44 for direct debits. As ISO 20022 formats continue to gain adoption across more countries, the number of available formats is expected to increase.
To learn more about the scope of Country/Region-Specific Payment Format Mappings please follow link to SAP Help Portal: https://help.sap.com/docs/SAP_S4HANA_CLOUD/656a410b5ce14bcd82d40b88f26d8d74/582a919a8ca445e0b310a04d9d6fdcae.html?locale=en-US
Basics of Map Format Data for Payments
Map Format Data app allows you to configure the following:
- Transformation of the structured data in the system into output file in XML or flat file format, for example, payments from the system are send in the specific XML format to the bank.
- Transformation of the file content (XML or flat file) into the structured data that are consumed by the business process in the system, for example, data contained in the bank statement file needs to be interpreted and used for reconciliation.
Depending on the business process integration, incoming and outgoing directions are available in Map Format Data for configuration, as you can see in the picture below.

You can access the Map Format Data application through specific configuration steps in SAP S/4HANA Cloud Public Edition via SAP Central Business Configuration or Manage Your Solution application as they are listed per integration in the picture above.
In Map Format Data for Payments, you can define the rules for mapping or transforming data to enable data exchange with your financial institution in the required data format. You can create new format mappings or copy from existing ones, display the details of your existing format mapping, as well as import, export, edit, check, delete, and release these mappings.
In this activity, you can define how the system fills payment data in the payment format to generate the final payment file that you send to the bank. The configuration app supports both XML and flat file formats.