Ansicht
Dokumentation

EXIT_SAPLEINN_002 - Customer Enhancements for IDoc-Processing for Contracts (Inbound)

EXIT_SAPLEINN_002 - Customer Enhancements for IDoc-Processing for Contracts (Inbound)

ABAP Short Reference   TXBHW - Original Tax Base Amount in Local Currency  
This documentation is copyright by SAP AG.
SAP E-Book

Functionality

This function module is a user exit within the framework of inbound IDoc processing involving contracts.

By invoking the function module, customers are able to create their own batch input session for posting incoming contracts. This can be the case, for example, if a different screen control than the one realized in the standard system is desired during the running of the batch input session.

The function module is called after the evaluation of the IDoc data and the filling of the application structures. IDoc data (control record IDOC_CONTROL and the data records IDOC_DATA) is passed on. You can tell from the message category (field IDOC_CONTROL-MESTYP) whether the contract in question is a newly created document (message category BLAORD) or a changed one (message category BLAOCH).

The field structure EKKO_DATA contains the data for the document header. Table EKPO_DATA contains the data for document items.

You can create your own batch input session in the function module on the basis of the data passed on (table BDC_DATA).

If you create your own batch input session, the parameter SUBRC must be set to '2' so that the session is not created by the SAP program (the processing in the standard system).

If an error occurs during the creation of the batch input session, so that no further processing is possible, the parameter SUBRC must be set to '4'. The error message should be passed on in the field structure ERROR_MESSAGE. In this case, the error-handling process is triggered for the IDoc.





Parameters

BDC_DATA
EKKO_DATA
EKPO_DATA
ERROR_MESSAGE
ESLL_DATA
IDOC_CONTROL
IDOC_DATA
SUBRC

Exceptions

Function Group

XM06

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

Length: 1875 Date: 20240604 Time: 014318     sap01-206 ( 35 ms )