Ansicht
Dokumentation

EXIT_SAPLF050_004 -

EXIT_SAPLF050_004 -

Addresses (Business Address Services)   PERFORM Short Reference  
This documentation is copyright by SAP AG.
SAP E-Book

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. The field 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:

  • POSTING_TYPE unchanged (= blank)

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.

  • POSTING_TYPE = '1' or 'X'

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.

  • POSTING_TYPE = '2'
    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 receipient system.
    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 no longer possible.

*) possible processing for IDoc data:

LOOP AT IDOC_DATA
WHERE DOCNUM = IDOC_DOCNUM.
CASE IDOC_DATA-SEGNAM.
WHEN 'E1FIKPF'.
MOVE IDOC_DATA-SDATA TO E1FIKPF.
...
WHEN 'E1FISEG'.
MOVE IDOC_DATA-SDATA TO E1FISEG.
...
WHEN 'E1FINBU'.
MOVE IDOC_DATA-SDATA TO E1FINBU.
...
WHEN 'E1FISEC'.
MOVE IDOC_DATA-SDATA TO E1FISEC.
...
WHEN 'E1FISET'.
MOVE IDOC_DATA-SDATA TO E1FISET.
...
WHEN 'E1FIXWT'
MOVE IDOC_DATA-SDATA TO E1FIXWT.
...
WHEN OTHERS. "possibly user's own segment
...
ENDCASE.
ENDLOOP.






CL_GUI_FRONTEND_SERVICES - Frontend Services   General Data in Customer Master  
This documentation is copyright by SAP AG.

Length: 3009 Date: 20240419 Time: 220329     sap01-206 ( 43 ms )