Enterprise Resource Planning Blogs by SAP
Get insights and updates about cloud ERP and RISE with SAP, SAP S/4HANA and SAP S/4HANA Cloud, and more enterprise management capabilities with SAP blog posts.
cancel
Showing results for 
Search instead for 
Did you mean: 
Cora_Phelan
Product and Topic Expert
Product and Topic Expert
0 Kudos
561

There is an Argentinian requirement to inform suppliers about the invoices that have been paid. In order to do that, you can use the account statement template and use the extensibility functionality of S/4 HANA Cloud. Here is how to do it:

First go to App Maintain Form Templates (App ID F1434) to create a copy of account statement template.

maintainFormTemplates.png

Download the account statement form template and update as necessary, in this case update the text and remove the elements for Balance carried and Balance carried forward. Also the header and footer addresses need to be maintained. Texts of these header and footer segments can be maintained via app Manage Texts (App ID F2894).

Then create a new Form Template:

Cora_Phelan_0-1712311714155.png

Assign this new template as account statement form in Manage your solution / Central Business Configuration by selecting  "Assign Form Templates" ID 102313

AssignFormTemplates.png

Then, go to app Output Parameter Determination App ID APOC_WD_BRF_DEC_TAB_MAINTAIN ()

Create a new condition for Account Statement and Form Template:

OutputParameterDetermination.png

In app Custom Logic (App ID App ID F6957) for;

Extension Point Description: BAdI: Adjustment of Data in Account Statement Before Rendering,
Extension Point ID: ACCST_ADJUST_DATA_BEFORE_RNDR

Implement custom logic for the Business Add-Ins (BAdI)

Sample implementation:

sampleimplementation.png

Then you are all set up. In this example we use custom message to trigger the BAdI implementation logic, you can use any other possibility that fit your business case. This custom message can be anything and is also possible to be removed from the form itself.


Create correspondence:

createcorrespondence.png

printpreview.png

 

 

 

 

 

 

See also
App Extensibility: Create Correspondence


Developer Extensibility

In case you need to add a custom field to the form, that is not yet available, please follow following Blog post: How to export custom fields in the payment advice form | SAP Blogs