Entering content frameFunction documentation Modification Concepts: IDoc Inbound Processing Locate the document in its SAP Library structure

Use

The following modification scenarios are available to you:

You create a user-defined processing module, which you copy from the standard function module for the respective message type and adjust accordingly.

You activate the customer exits in the standard function module:

You define your own IDoc segments in the standard IDoc and use the customer exit for Own update to process the data from the user-defined segments.

You define customized IDoc segments in the standard IDoc and create a customized processing function module.

You define a user-defined IDoc and create a user-defined processing function module. You can use the standard auxiliary function module to create the function module.

Features

Adjusting the Standard Function Module

As soon as the SAP system has received the IDoc and saved it, the system calls a main function module of the application, which takes over the processing of the IDoc.

At this point, you have the first opportunity to intervene in the IDoc processing, by creating a user-defined function module.

You enter this function module in the SAP menu under Tools ® Business Communication ® IDoc-Basis ® Development ® Inbound Processing Settings ® Message/Application Object.

There, you can also enter an additional partner profile for a certain message variant or message function from the external system in order to differentiate processing in the SAP system.

Main function modules for inbound IDoc processing

Message Type

Function module

Use

WMBBIN

L_IDOC_INPUT_WMBBIN

Blocking storage bin

WMCATO

L_IDOC_INPUT_WMCATO

Canceling TO

WMINFO

L_IDOC_INPUT_WMINFO

Information

WMINVE

L_IDOC_INPUT_WMINVE

System inventory records

WMMBXY

L_IDOC_INPUT_WMMBXY

Goods movements

WMSUMO

L_IDOC_INPUT_WMSUMO

Moving a storage unit

WMTOCO

L_IDOC_INPUT_WMTOCO

Confirming TO

WMTORD

L_IDOC_INPUT_WMTORD_MULTIPLE

Transfer orders (TO)

WMTREQ

L_IDOC_INPUT_WMTREQ

Releasing group

The main function module filters out the data for each IDoc and calls the actual processing function module of the application in a loop.

Activating Customer Exits

A customer exit is implemented both before and after the call of this function module.

Note

Take the names of the customer exits from the source code of the main function module.

If you create a function module or use customer exits, note that no COMMIT WORK command is set, as this can lead to errors in IDoc processing and to inconsistencies in error processing. The system returns to the ALE layer following processing, where the system updates any application errors that have occured, sets the IDoc status, and may even execute database rollbacks.

Note

Note, that additional I/Os which occur in the customer exit, can affect performance.

Defining User-Defined IDoc Segments

You defined your own IDoc segments by choosing Tools ® Business Communication ® IDoc Basis ® Development ® IDoc Types. For more information, see Structure linkSegment Editor.

Creating User-Defined Processing Function Modules

The SAP system offers function modules for general use for the following tasks for using user-defined main function modules:

Auxiliary function modules for inbound IDoc processing

Function module

Task

L_IDOC_CONTINUE_SAVE

Continuously save application objects for subsequent activities

L_IDOC_CREATED_OBJECTS_SAVE

Continuously save the documents created from an IDoc

L_IDOC_ERROR_SAVE

Continuously save IDocs with errors

L_IDOC_INPUT_REFRESH

Initialization for IDoc processing (table refresh)

L_IDOC_OK_SAVE

Continuously save processed IDocs

L_IDOC_RETURN_CREATE

Determine and construct status record for the IDoc

L_IDOC_ROLLBACK_SAVE

Update IDoc tables after necessary rollback

L_IDOC_STATUS_CREATE

Determine and construct status record for the IDoc

L_IDOC_TIDOC_FETCH

Fetch internal table for the purpose of status update

Defining User-Defined IDocs

If you define user-defined IDocs (interim structure) via Tools ® Business Communication ® IDoc Basis ® Development ® IDoc Types, assign this IDoc to a new message type. For more information, see Structure linkDefining New IDoc Types.

You create a partner profile for this message type.

You define the tables for inbound processing for this IDoc under Tools ® ALE ® ALE Development ® IDoc ® Inbound Processing.

Standard task TS00008099 is available for error processing.

 

 

Leaving content frame