EXIT_SAPLF050_004 SAP Function module - FIDCC1 Incoming IDoc: Change/Do Not Process IDoc
EXIT_SAPLF050_004 is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below are the pattern details for this FM showing its interface including any import, export parameters etc and for your convenience any standard documentation available. All this information and more can be viewed if you enter the function module name EXIT_SAPLF050_004 into the relevant SAP transaction such as SE37 or SE80.
Pattern for FM EXIT_SAPLF050_004 - EXIT SAPLF050 004
Associated Function Group: X050
Released Date: Not Released
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
SAP Documentation for FM EXIT_SAPLF050_004
The entire data part (IDOC_DATA, structure EDIDD) of an IDoc is transferred to the user exit 004 in the receiving system. The system also informs you which IDoc number is currently being processed within the IDoc.
From Release 4.6C (support package), there are two parallel basic IDoc types, FIDCCP01 and the new FIDCCP02. FIDCCP02 provides some further data fields and enables you to send the extended withholding tax.
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.
You have the option of selecting the data part currently being processed in the IDoc in order to make changes. See *).
An FI document is created from the changed IDoc and then posted via the Accounting interface.
The user can specify how the IDoc is to be further processed using the parameter indicator POSTING_TYPE as follows:
If the IDoc is to be processed further and posted as an FI document, you are not permitted to change the POSTING_TYPE indicator, that is, it must remain blank.
You can also, however, prevent the IDoc from being processed further, that is an FI document is not created from the IDoc.
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.
*) possible processing for IDoc data:
LOOP AT IDOC_DATA
WHERE DOCNUM = IDOC_DOCNUM.
MOVE IDOC_DATA-SDATA TO E1FIKPF.
MOVE IDOC_DATA-SDATA TO E1FISEG.
MOVE IDOC_DATA-SDATA TO E1FINBU.
MOVE IDOC_DATA-SDATA TO E1FISEC.
MOVE IDOC_DATA-SDATA TO E1FISET.
MOVE IDOC_DATA-SDATA TO E1FIXWT.
WHEN OTHERS. "possibly user's own segment
Documentation extract taken from SAP system, Copyright (c) SAP AG