Instant payments represent a new arrangement within the Brazilian financial system that allows 24/7 transactions in real-time between different institutions without the need for intermediaries such as card schemes, acquirers, or issuers. This blog post helps you understand the individual functionalities and solutions regarding Brazilian Instant Payments in SAP S/4 HANA Cloud.
This blog is divided into 2 parts:
After you purchased any goods or services, the supplier sends you the invoice that contains a QR code information with the PIX link and the transaction ID which you need during the payment process.
The following process explains to you the steps of configuring the system and the PIX data transfer from the master data through document posting and payment run to the payment media. When you create the payment media, the system fills out segments J and J52 PIX or segments A and B with the PIX key in the payment file, depending on how you enter the PIX keys for document posting.
Create a technical bank in the Manage Banks app. To maintain multiple aliases, each entry needs the complete key filled out in database tables Customer Master (Bank Details) (KNBK table) and Vendor Master (Bank Details) (LFBK table).
To define Alias types, go to Configure your solution in Manage Your Solution App. Look for the configuration activity Define Alias Types for Bank Accounts in the settings related to Bank Account Alias.
This configuration activity allows you to define possible Alias types, description, and validation routine as regular expression.
It is required to have the Alias Types named in this way to work with PMW format BR_FEBRABAN_A.
Examples of regular expression used for validation:
To define payment system, go to configuration activity Define Payment Systems in the settings related to Bank Account Alias.
Define the alias type and the payment system in the business partner master data in the Manage Business Partner Master Data app.
On the Bank Accounts tab, click on Create.
Click on the Details arrow and on the Bank Information tab, enter the payment system, the alias type, and the alias itself, which can be, for example, the e-mail address of the business partner. Save your entries.
You can also assign the alias type, payment system, and the alias itself to the business partner in the Maintain Business Partner app.
Open the relevant business partner data and on the Payment Transactions tab, choose the Alias button. In the popup window, enter the payment system, the alias type, and the alias itself, which can be, for example, the e-mail address of the business partner.
There are two types of payment that can be performed via posting of supplier invoices:
In this scenario, the proper PIX key used for the payment is defined by the Partner Bank Type (BSEG-BVTYP).
In the Part. bank type popup window, you choose the relevant partner bank type that already contains the PIX key.
When the company receives the PIX invoice with QR code, the payment is done via CNAB 240 with segments J and J52PIX. The information from the QR Code must be stored in the Supplier Invoice and then read during payment media creation.
To enter QR Code information, select the button Pix Info.
In the pop-up window, you can enter either:
It is also possible to add PIX URL or Transaction ID to an existing invoice. You can do so in Manage Journal Entries App by clicking on the invoice and selecting Manage Additional Payment Attributes where you can enter the relevant value.
The payment method for outgoing payments must have the following parameters:
This blog is divided into 2 parts:
Accounts Payable
After you purchased any goods or services, the supplier sends you the invoice that contains a QR code information with the PIX link and the transaction ID which you need during the payment process.
The following process explains to you the steps of configuring the system and the PIX data transfer from the master data through document posting and payment run to the payment media. When you create the payment media, the system fills out segments J and J52 PIX or segments A and B with the PIX key in the payment file, depending on how you enter the PIX keys for document posting.
Bank Master Data
Create a technical bank in the Manage Banks app. To maintain multiple aliases, each entry needs the complete key filled out in database tables Customer Master (Bank Details) (KNBK table) and Vendor Master (Bank Details) (LFBK table).
- Enter the bank country/region, which is the same as the payment system country.
- Choose a bank key, the bank number, and a bank name.
- Choose Payment System as the bank category.
Define Alias Types
To define Alias types, go to Configure your solution in Manage Your Solution App. Look for the configuration activity Define Alias Types for Bank Accounts in the settings related to Bank Account Alias.
This configuration activity allows you to define possible Alias types, description, and validation routine as regular expression.
It is required to have the Alias Types named in this way to work with PMW format BR_FEBRABAN_A.
Examples of regular expression used for validation:
- Email with limited length to 77: ^(?=.{6,77}$)\w+(\.\w+)*@(\w+\.)+(\w{2,4})
- Any string of length 32 characters: ^[0-9a-fA-F]{8}-?[0-9a-fA-F]{4}-?[0-9a-fA-F]{4}-?[0-9a-fA-F]{4}-?[0-9a-fA-F]{12}
- Phone: ([0,+]{0,1}\s*[0-9]{2,3})?\s*\(?[0-9]{2}\)?\s*[0-9]{4,5}[- ]*[0-9]{4}
Define Payment System
To define payment system, go to configuration activity Define Payment Systems in the settings related to Bank Account Alias.
- Define payment system
- Define country in which the payment system is valid
- Assign Alias types to payment system
Business Partner Master Data
Define the alias type and the payment system in the business partner master data in the Manage Business Partner Master Data app.
On the Bank Accounts tab, click on Create.
Click on the Details arrow and on the Bank Information tab, enter the payment system, the alias type, and the alias itself, which can be, for example, the e-mail address of the business partner. Save your entries.
You can also assign the alias type, payment system, and the alias itself to the business partner in the Maintain Business Partner app.
Open the relevant business partner data and on the Payment Transactions tab, choose the Alias button. In the popup window, enter the payment system, the alias type, and the alias itself, which can be, for example, the e-mail address of the business partner.
Posting Supplier Invoice
There are two types of payment that can be performed via posting of supplier invoices:
1. PIX Transfer (PIX key defined by Partner Bank Type)
In this scenario, the proper PIX key used for the payment is defined by the Partner Bank Type (BSEG-BVTYP).
In the Part. bank type popup window, you choose the relevant partner bank type that already contains the PIX key.
2. QR code information received via incoming invoice
When the company receives the PIX invoice with QR code, the payment is done via CNAB 240 with segments J and J52PIX. The information from the QR Code must be stored in the Supplier Invoice and then read during payment media creation.
To enter QR Code information, select the button Pix Info.
In the pop-up window, you can enter either:
- the URL Link (Dynamic QR) – 77-character long string
- or the Transaction ID (Static QR) – up to 35-character long string, and select PIX key via Partner Bank Type Field
Adding QR Code to an Existing Invoice
It is also possible to add PIX URL or Transaction ID to an existing invoice. You can do so in Manage Journal Entries App by clicking on the invoice and selecting Manage Additional Payment Attributes where you can enter the relevant value.
Payment Method for Outgoing Payments
The payment method for outgoing payments must have the following parameters:
Payment method for | Outgoing Payments |
Payment method classification | Bank transfer |
Required master record specifications | Bank details (Alias Required) |
Payment medium | Format: BR_FEBRABAN_A |
Format Supplement: PIX |