A typical Business requirement in today’s world is to send certain Finance Outputs via email automatically from SAP as soon as you generate them. In S/4 HANA on-premise (and ECC as well), to be able to achieve this. Here I am sharing the BTE (Business Transaction Event) which can help us to achieve this functionality.

This is very common requirement and will be consider as must to have process. There are different automatic processes in SAP that trigger outputs and when these are created, these BTEs will be called and eventually the generated outputs will be sent via email by SAP automatically.

Below, I will be talking about different important and key Finance Outputs:

  • Vendor Payment Advice
  • Customer Statement
  • Dunning Notice

 

Configuration for Customer Statement

  1. FM module ZFI_ACC_STMNT_PROCESS_00002310 created by copying the sample.
  2. T/code FIBF -> Setting -> Products -> of a customer

Create new entry as below-

Product          Text                                        Activation

ACCSTAT      Account statement                  X

  1. T/code FIBF -> Setting -> Process Modules -> of a customer

Create new entry as below-

Process           Appl.   FM                                                                  Product

00002310                    ZFI_ACC_STMNT_PROCESS_00002310   ACCSTAT

Functional Specification:

Business Requirements Specifications
Create and activate new FM ZFI_ACC_STATEMENT_PROCESS_00002310 with reference to FM SAMPLE_PROCESS_00002310 and do the below mentioned changes.

1.    Apply code as mentioned in SAP note 328124      2.    Create table ZFI_CORRESPONDENCE as mentioned below with maintenance allowed.

Field name Description Data type Length Input field
BUKRS Company code CHAR 4 T001-BUKRS
ZDUNNING Dunning CHAR 1 Check box
ZACCSTAT Account Statement CHAR 1 Check box

3.    Check BUKRS in ZFI_CORRESPONDENCE and select ZFI_CORRESPONDENCE- ZACCSTAT if ZACCSTAT is equal to ‘X’ then proceed else exit.

4.    If BKORM-KOART is equal to “D” read data then get data from KNB1. Priority will beA.    emailB.    FaxC.   Printout

5.    If BKORM-KOART is equal to “K” read data then get data from LFB1. Priority will beA.    emailB.    FaxC.   Printout
We can comment the code if any of these functionality is not available with your client.
Security and Authorization :N/A

We can use below mentioned BTE to achieve the different requirement.

Payment Advice

Payment Advice has 2 processes 2040 and 2050.

Process 2040, allows you to manage Sender email address, Recipient email address, Mail Body Text and the type of Transmission Method

  • c_finaa-nacha = ‘1’  – Spool
  • c_finaa-nacha = ‘I’  – Internet / Email

For this SAP gives you a “Sample” FM that you can use as a base to copy and insert you own custom code. This is SAMPLE_PROCESS_00002040.

Process 2050, allows you to manage email Subject

For this SAP gives you a “Sample” FM that you can use as a base to copy and insert you own custom code. This is SAMPLE_PROCESS_00002050.


Customer Statement

Process 2310. This one allows you to manage Transmission method, Format (PDF), Mail Body, Mail Subject, Sender and Recipient email address.

For this SAP gives you a “Sample” FM that you can use as a base to copy and insert you own custom code. This is SAMPLE_PROCESS_00002310.

Dunning Letter

Process 1040. This one allows you to manage Transmission method, Format (PDF), Mail Body, Mail Subject, Sender and Recipient email address.

For this SAP gives you a “Sample” FM that you can use as a base to copy and insert you own custom code. This is SAMPLE_PROCESS_00001040.

The specific ABAP code of each one of these Function Modules need to be done based on your client requirement which will be taken care by your ABAP team.

This document will be helpful for junior level consultant to implement the BTE as per client requirement.

These are the real time business scenarios which you can explain in your interviews as well.

Please share your feedback and let me know in case you need blog on any specific topic.

Please follow the below link for related topic

https://answers.sap.com/tags/648420875567243523242285841826221

and read other posts on the topic –

https://blogs.sap.com/tags/648420875567243523242285841826221/

Please follow my profile for related information. Thanks Everyone 🙂 

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