EXIT_SAPLF050_004 is a standard SAP function module that performs FIDCC1 Incoming IDoc: Change/Do Not Process IDoc functionality. This is available within standard R/3 SAP systems depending on version and release level.
Below are the pattern details for this FM showing its interface including any import, export and tables parameters. There is also a list of Exceptions and for your convenience any standard documentation available. All this information and more can also be viewed if you enter the function module name EXIT_SAPLF050_004 into the relevant SAP transaction such as SE37 or SE80.
CALL FUNCTION 'EXIT_SAPLF050_004' "FIDCC1 Incoming IDoc: Change/Do Not Process IDoc EXPORTING message_type = " edmsg-msgtyp Message Type "FIDCC1" idoc_docnum = " edidc-docnum IDoc number * idoc_contrl = " edidc Control Record (IDoc) TABLES idoc_data = " edidd IDoc Application Data * CHANGING * posting_type = " boole Type of IDoc Additional Processing . " EXIT_SAPLF050_004
Therefore, the edited IDoc control record (IDOC_CONTRL, structure EDIDC) is to be transferred to the user exit as a new parameter. Thefield IDOCTP contains the current basis IDoc type FIDCCP01 or FIDCCP02.
An FI document is created from the changed IDoc and then posted via the Accounting interface.
In this case you must create a status record in IDOC_STATUS for marking the IDoc for workflow.
In the sender system, a complete FI document is sent using an IDoc. This is then usually posted as a complete FI document in the receipientsystem.
Alternatively, in exceptional conditions, the user can have the IDoc posted as a parked document (POSTING_TYPE = '2').
This is only possible and relevant if the FI document only contains G/L account items and no automatically generated line items.
If this option is used, the note about the sender system and the original document is lost. An assignment to the original document is nolonger possible.