In this blog post you will learn how to use the extensibility tool to send the supplier’s bank details data in SOAP API Customer Invoice – Send (B2B) (CO_EDI_INVOICE_REQUEST_OUT).

Scenario

As the customer, you want to send the supplier’s bank details information in SOAP API Customer Invoice – Send (B2B). For example, you want the bank details data to be mapped to the corresponding sales organization, and contain the following fields:

  • Bank name
  • Bank country/region
  • Swift code
  • Account number
  • Account name

However, currently the above mentioned bank details data is not supported in SOAP API Customer Invoice – Send (B2B).

Solution

You can use the extensibility tool to add custom fields and populate values for the custom fields in SOAP API Customer Invoice – Send (B2B). Generally, you can refer to the instructions in Extensibility: Customer Invoice – Send (B2B) for the cloud release and this link for the on premise release. Note that the BAdIs described in the extensibility documentation are available as of SAP S/4HANA Cloud 2202 for the cloud release, and available as of SAP S/4HANA 2020 for the on premise release.

Regarding the case to send bank details in SOAP API Customer Invoice – Send (B2B), you can perform the following steps:

Step 1: Use Fiori app Custom Fields to add custom fields and enable them to the SOAP API usage for SOAP API Customer Invoice – Send (B2B).

  • YY1_bank_name
  • YY1_bank_ctry_reg
  • YY1_swift_code
  • YY1_account_number
  • YY1_account_name

Step 2: Use Fiori app Custom Business Objects to define the data structure and create the database persistence of a custom business object which can persist the bank details data.

You can refer to the instructions in Create a Custom Business Object.

Step 3: Create the UI for the custom business object sales_org_bank_account_mapping and maintain data for this custom business document.

You can refer to the instructions in Create the UI for a Custom Business Object.

Then new tile for this custom business object can be seen.

Then you can maintain bank details in this custom business object.

Step 4: Use Fiori app Custom Logic to add custom logic in BAdI Modification of Custom Header Fields in Customer Invoice SOAP Message to get bank details and publish the custom logic.

The code in the custom logic can be like below:

Conclusion

The solution provided in this blog post is just an example of how to use the extensibility tool to add fields in SOAP API Customer Invoice – Send (B2B). You can follow the solution to define your own custom fields and custom logic based on your business scenarios.

Sara Sampaio

Sara Sampaio

Author Since: March 10, 2022

0 0 votes
Article Rating
Subscribe
Notify of
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x