4

Enhancement Implementation in Payment Formats in Contract Accounts Receivable an...

 1 year ago
source link: https://blogs.sap.com/2022/10/24/enhancement-implementation-in-payment-formats-in-contract-accounts-receivable-and-payable-fi-ca/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

Enhancement Implementation in Payment Formats in Contract Accounts Receivable and Payable (FI-CA)

In SAP, we are delivering solutions for processing credit transfer and direct debit requests to simplify your communication with banks using SAP S/4HANA via Payment Formats. With Payment Formats, you can flexibly adjust the content of payment media file as needed. You can find out further details related to Payment Formats in SAP here, focusing on Outgoing Formats sections. About Payment Formats in FI-CA, refer to the blog post Payment Formats in Contract Accounting in SAP S/4HANA  to learn more.

In this blog post, you can learn about the newly developed BAdI and its functionality regarding enhancement implementation in Payment Formats in FI-CA.

 Payment process in FI-CA

Please%20be%20noticed%20that%20currently%20the%20payment%20process%20explained%20in%20the%20diagram%20above%20is%20not%20valid%20in%20SAP%20S/4HANA%20Cloud%20yet%20due%20to%20the%20missing%20possibility%20to%20create%20a%20new%20payment%20format%20%28tr.%20FQP3%29.%20We%20are%20now%20planning%20for%20a%20near%20future%20release%20to%20enable%20you%20to%20generate%20payment%20medium%20format%20also%20in%20Cloud.
Please note that the payment process explained in the diagram is not valid in SAP S/4HANA Cloud yet due to the missing possibility to create a new payment format (tr. FQP3). It will be available in the near future releases.

Business Case

In SAP S/4HANA 2022 and the previous releases, the enhancement spot can be implemented by following implicit enhancement which is predefined by SAP in the source code. By following the implicit enhancement, customers have to compose their own solutions in ABAP language with specific requirements. However, in SAP S/4 HANA 2023 release, you can utilize new BAdI developed by SAP to create your own enhancement implementation without using implicit enhancement. Within the newly delivered BAdI, you are eligible to adjust the customer reference fields in order to define your own business logic.

About the BAdI

The new BAdI available in SAP S/4HANA 2023 release supports extensibility in Payment Formats with the help for data collection before reaching the format structured in DMEEX. By using this BAdI, you can easily modify the source of data according to the legal requirements defined by specific countries/regions or remarks from customers. The new BAdI is stored under ES_FKK_PAYM enhancement spot, which is triggered from the events. The events are being called in the report SAPFKPY3.

Within the BAdI, you can modify ZREF fields in FPAYHX structure and ZREF fields in paid item structure (FPAYP). For adjusting the payment item, the BAdI offers you 10 user Z REF fields range from ‘ZREF01’ to ‘ZREF10’, each consisting of maximum 132 characters. Therefore, you can implement the enhancement for payment formats by filling those customer reference fields in the Z namespace. Visit this blog post – How to export a custom field (e-mail) in the payment file to learn more about customer reference field and the process to export it into payment file.

On-Premise Enhancement Implementation

  1. In transaction SE18, enter ES_FKK_PAYM in Enhancement Spot, choose Display.
  2. Create new enhancement
  • Right-click on the report named BADI_FKK_ADJUST_PAYM_DATA_C, choose Create BAdI Implementation then choose Create Enhancement Implementation.
  • Fill in the name for your new enhancement in Enhancement Implementation field and a brief explanation in Short Text → Enter to create a new enhancement.
2blog.png
  • After that, you will see Object Editing: Initial Screen pops up to inform that enhancement object is saved in customer namespace. Enter to continue creation.
  • In the Create Object Directory Entry dialog box, save your entry locally in Local Object → Press Now your new enhancement is generated in the Enhancement spot.

3. Create BAdI implementation

  • Double click on new enhancement generated. Complete all essential information:

BAdI Implementation: enter name for the BAdI

Description: briefly describe the BAdI

Implementing Class: define implementing class

3-blog.png
  • Enter to continue creation.

4. Modify the Enhancement Implementation

In order to modify the enhancement implementation, you need to compose your own code and define your own logic.

  • To write your own code, double click on Implementing Class → Choose method IF_FKK_PAYM_DATA_C~FILL_CUSTOMER_REFERENCE_FIELD → Write your own implementation.
4blog.png

You can also refer to the sample code provided by SAP through Example classes. Example classes can be found under Enhancement spot ES_FKK_PAYM → BAdI Definition BADI_FKK_ADJUST_PAYM_DATA_C → Implementation Example Classes CL_FKK_PAYM_IMP_C_EX

5blog.png

5. Activate BAdI implementation

6. Change Filter Values

  • Go to Filter Values. Switch to Edit Mode → Choose Combination then add the value.
  • Change value filter
    1. Value 1: Enter the payment format name.
    2. Comparator 1: Specify condition as ”=” to apply payment format, which means that if the format matches the payment format name, the method will be executed.
    3. Filter: Format.
    4. Enter
6blog.png

Now you have your new BAdI implementation created. To generate a payment medium format file, link the standard DMEEX tree to the newly created payment format and assign it to a payment method. Further details about the process can be obtained in blog post Payment Formats in Contract Accounting in SAP S/4HANA 

Sample of using BAdI Implementation

Here is a concrete example to create a new payment format using BAdI implementation and how it influences payment media file.

  1. Create DMEEX Child Tree
  • In transaction DMEEX, enter Tree Type and Format Tree then choose Copy to duplicate the original Format Tree.
7blog.png
  • Enter a name for the DMEEX child tree → Copy as a Child → Copy
8blog.png
  • Define node: You can choose either to redefine the existing node or create a new node.
    • To modify the existing node, use redefine function.
9blog.png
    • To create a new node: Right click → Create → Create Element. After that, add the source of the node to map Structure and Field Name.
10blog.png

       2. Create payment format

  • Call transaction FPQ3. Type format name → Copy.

Please be aware that payment format must have the same name as DMEEX tree.

11blog.png
  • Copy payment format
12b.png

3. Create a new enhancement implementation.

Detailed steps are explained in the section On-Premise Enhancement Implementation above.

4. Assign new payment format to payment method

In transaction FQP1, link newly created payment format to payment method.

13b-1.png

5. Post document with proper payment method (for example transaction FPE1)

6. Create payment run (transaction FPY1) to test the solution.

7. Check content of the file (report SAPFKPY3 – download the file)

Now you can see the email is exported into the payment file.

14b.png

Do you have any further questions regarding our new BAdI implementation in Payment Formats in FI-CA? Do not hesitate to leave your comments in the section below.


Recommend

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK