Ansicht
Dokumentation

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

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

TXBHW - Original Tax Base Amount in Local Currency   Vendor Master (General Section)  
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 with respect to contracts.

Through the call of the function module, the customer is given the opportunity to populate the application structures (document header and document items) when contracts are created or changed. The application data is used in a further processing step to create the batch input session for booking the contract.

The function module is always called when a customer segment is read from the IDoc. IDoc data (control record IDOC_CONTROL and the data records IDOC_DATA) are passed on. The customer segment data is located in the header string of the table IDOC_DATA. You can tell from the message category (IDOC_CONTROL-MESTYP) whether a new contract (BLAORD) or a change to an existing one (BLAOCH) is involved.

The field string EKKO_INPUT contains the document header data. Table EKPO_DATA contains the data on the document items analyzed up to the present time.

The segment data can be analyzed and the application structures filled in the function module (the changed data on the document header is returned in EKKO_OUTPUT; item data is passed on via the table EKPO_DATA übergeben).

If an error occurs, so that no further processing is possible, parameter SUBRC must be set to '4'. The error message can be passed on in the field string ERROR_MESSAGE. In this case, error handling is triggered for the IDoc.





Parameters

EKKO_INPUT
EKKO_OUTPUT
EKPO_DATA
ERROR_MESSAGE
IDOC_CONTROL
IDOC_DATA
SUBRC

Exceptions

Function Group

XM06

rdisp/max_wprun_time - Maximum work process run time   CL_GUI_FRONTEND_SERVICES - Frontend Services  
This documentation is copyright by SAP AG.

Length: 1764 Date: 20240523 Time: 055841     sap01-206 ( 68 ms )