With no need for intermediaries like card schemes, acquirers, or issuers, instant payments are a novel arrangement inside the Brazilian financial system that enables 24/7 real-time transactions between various organisations. You may better grasp Brazilian Instant Payments in SAP S/4 HANA Cloud by reading this blog post’s detailed explanations of their various features and solutions.

This blog is divided into 2 parts:

  • Accounts Payable
  • Accounts Receivable

Accounts Payable

After you make a purchase of any products or services, the provider gives you an invoice with a QR code on it that includes the transaction ID and information you’ll need to make a payment.

The processes for setting up the system and transferring PIX data from the master data to the payment medium through document posting and payment run are described in the following method. Depending on how you enter the PIX keys for document posting, the system either fills out segments J and J52 PIX or segments A and B with the PIX key in the payment file when you produce the payment media.

Bank Master Data

In the Manage Banks application, create a technical bank. Each item in the database tables Customer Master (Bank Details) (KNBK table) and Vendor Master (Bank Details) must have the entire key filled out in order to retain numerous aliases (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

Navigate to Configure Your Solution in the Manage Your Solution App to define Alias types. Keep an eye out for the configuration action. In the options for Bank Account Alias, specify Bank Account Alias Types.

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.

    1.Define payment system

    2.Define country in which the payment system is valid

    3.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:

1.the URL Link (Dynamic QR) – 77-character long string

2.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:

You can do the changes to the payment method in the configuration activity Set Up Payment Methods for Each Country/Reg.

It is also necessary to assign the permitted payment system for Payment Method.

CNAB240 Return File Processing

The bank sends back a return file after completing the payment in accordance with the data in the payment file. The return file includes information on payment acceptance or denial. You must import the received return file into your system in order to clear the pertinent data.

Confirmation Return File

Confirmation Return File contains payment confirmation. To upload the file, open the Manage Incoming Payment Files app and choose Import. In the File Type field, choose Bank Statement, and in the Format field, select the CNAB240 Payment Format (BRAZIL). Upload the file you received from the bank and choose Process.

When the system processes the Confirmation Return File, it clears the Bill of Exchange Payment Request and the invoice.

Rejection Return File

Rejection Return File contains up to five rejection error codes that explain the reason of the rejection. To upload the file, open the Manage Incoming Payment Files app and choose Import. In the File Type field, choose Bank Statement, and in the Format field, select the CNAB240 Payment Format (BRAZIL). Upload the file you received from the bank and choose Process.

The error codes are displayed in the Memo Line of the Bank Statement Item.

Error codes are maintained in the configuration activity Error Codes in settings for Electronic Bank Statement.

Accounts Receivable

In order to request a dynamic or utilise a static QR code, you must run a payment run whenever you sell any goods or services and transmit the payment data in a payment file (in format CNAB750) to the bank or payment system. A QR code is created by the payment system, which then provides you the information. You print the invoice with the QR code on it and mail it to your client.

The company code, document number, and year are automatically used to create distinct transaction IDs. The incoming payment file (BR FEBRABAN 750) you transmit to the bank contains the transaction ID. In the case of dynamic QR codes, the transaction ID is required. You receive notification from the bank of the payment status as soon as it is finished.

The following process explains how to configure the system.

House Bank Master Data

Assign your PIX key as an alternative bank account in your house bank master data using the Manage Bank Accounts app. The PIX Key for the relevant House Bank Account can be maintained in the field Alternative Bank Account Number on the House Bank Account Data screen.

Assign ISPB Code for House Bank

Assign the relevant ISPB code to Company Code and House Bank in the view Assign ISPB Codes to Bank Codes configuration activity in settings for Payment Formats.

Correspondence Setup

To display or print the received QR code in the invoice, you must first set up correspondence by assigning a correspondence program and variant to your company code.

  1.Add Correspondence SAPBR in the configuration activity Define Variants for Correspondence Types.

   2.Add Identifier SAPBR in the configuration activity Assign Labels and Company Codes to Correspondence Type Variants

   3.Assign form template FIN_FO_CORR_INTDOC_PIX_BR to application object FFO_CORR_INTDOC in the Assign Form Templates configuration activity.

   4.Maintain Form Derivation Rule ID FORM_MASTER_BR_PIX in configuration activity Define Rules for Determination of Master Form Template

 

QR Code Form Output

In Display Correspondence History app, you can display the PDF Form with QR Code.

Posting Customer Invoice

No special handling is needed. When you post customer invoices, use the payment method you created with the payment medium format BR_FEBRABAN_750.

Payment Method for Incoming Payments

The payment method for incoming payment must have the following parameters:

You can do the changes to the payment method in the configuration activity Set Up Payment Methods for Each Country/Reg.

Payment Media Creation for DMEE Payment Format CNAB750

Execute the payment run for customer invoice with incoming payment method for format BR_FEBRABAN_750 in the App Manage Automatic Payments.

After you have executed payment run, Bill-of-Exchange (BoE) payment request is created and updated in the customer invoice.

CNAB750 Return File Processing

After the bank executes the payment according to the information in the payment file, it sends back a return file. The return file contains payment confirmation or rejection data. To clear the relevant data, you need to import the received return file into your system.

Confirmation Return File

Confirmation Return File contains payment confirmation. To upload the file, open the Manage Incoming Payment Files app and choose Import. In the File Type field, choose Bank Statement, and in the Format field, select the CNAB750 Payment Format (BRAZIL). Upload the file you received from the bank and choose Process.

When the system processes the Confirmation Return File, it clears the Bill of Exchange Payment Request and the invoice.

Rejection Return File

Rejection Return File contains up to five rejection error codes that explain the reason of the rejection. To upload the file, open the Manage Incoming Payment Files app and choose Import. In the File Type field, choose Bank Statement, and in the Format field, select the FEBRABAN CNAB 750 (BRAZIL) format. Upload the file you received from the bank and choose Process.

The error codes are displayed in the Memo Line of the Bank Statement Item.

Error codes are maintained in the configuration activity Error Codes in settings for Electronic Bank Statement.

THANK YOU