We are hiring and constantly growing! Have a look through our vacancies to find the right role for you!

EXIT_SAPLF050_003 -

EXIT_SAPLF050_003 -

ABAP Short Reference   BAL Application Log Documentation  
This documentation is copyright by SAP AG.
SAP E-Book

User exit ALE-FI, Message type FIDCC1: Outbound IDoc in sender system.

User exit 003 is called up twice during processing.

  1. The first call takes place during online processing in function module FI_IDOC_PREPARE.
  2. The second call takes place at the time of the update.

During the online processing, a copy of the complete FI document is transferred to the user exit (BKPF, BSEG).
This could also be a cross-company code document, in which case, for example, two documents are transferred.

During online processing, the system checks whether ALE FI, message type FIDCC2 is active for the document concerned. In addition, using the user exit, you can also prevent the IDoc being sent.
If the system determines that an IDoc should be created for the FI document, the system writes the clearing information in the FI document during online processing (BSEG-AUGBL = 'ALE external').

At the time of the update, a copy of the complete FI document is transferred to user exit 003 (BKPF, BSEG, BSEC, BSET, ACCIT_WT for extended withholding tax).
This could also be a cross-company code document (for example, two documents) from which one IDoc is created for each document.

In the user exit, you can change the FI documents and send the changed documents as IDocs via ALE.
In addition, an indicator NO_DISTRIBUTION = 'X' can be returned from the user exit if this document is not to be distributed. If the indicator is zero, that is, it is not changed, the document is sent as an IDoc as long as the appropriate settings have been made in ALE Customizing.

In user exit 003 you can also change the company code in the FI document (copy), as well as the other fields. The system checks the changed company code rather than the original company code to determine whether it should be sent according to the ALE Customizing setting. The IDoc can then be posted in a different receiving company code.

Since the user exit only contains a copy of the FI document, changes to the fields may not have any effect on the original FI document in the sender system. The original FI document is posted in the sender system, not the copy.
Any changes are only passed on and sent in the IDoc. It is only in the receiving system that an FI document with changed fields is posted from the IDoc.

General Material Data   RFUMSV00 - Advance Return for Tax on Sales/Purchases  
This documentation is copyright by SAP AG.

Length: 2471 Date: 20200918 Time: 091522     sap01-206 ( 53 ms )