Modification Concepts: IDoc Outbound Processing
Use
The following modification scenarios are available:
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 user-exit in the standard function module in order to influence the standard IDoc construction.
You implement your own interface connection between the Warehouse Management system (WMS) and the external system.
You define your own IDoc segments in the standard IDoc and use the user exit fill your user-defined segments with data.
You define your own IDoc segments in the standard IDoc and create your own processing function module, which you copy from the standard function module of the relevant message type and adjust accordingly.
You define your own IDoc segments in the standard IDoc and implement an individually defined interface connection between the WMS and the external system.
You define an individual IDoc and create an individually defined function module. Standard auxiliary function modules are available for this purpose.
You define an individual IDoc and implement an individually defined interface connection between the WMS and the external system.
Features
Adjusting the Standard Function Module
The WMS prepares for the IDoc to be sent to the external system. The system constructs the IDoc in the relevant application function module, determines the partner (the connected system), and steers towards the ALE layer for further processing.
At this point, you have the first opportunity to intervene in the IDoc processing, by creating a customized function module.
You enter this function module in the Customizing for Warehouse Management under Interfaces ® External Systems ®
Configure Warehouse Management ® Whse Management View ® R/3 -> External System ® Function Modules for IDoc Creation ® Assign.The WMS uses the following function modules for constructing and sending IDocs:
Function modules for outbound IDoc processing
Function module |
Description |
L_IDOC_CREATE_WMTOID01 |
Transfer orders |
L_IDOC_CREATE_WMRRID01 |
Group release |
L_IDOC_CREATE_WMCAID01 |
Cancellation request TO |
L_IDOC_CREATE_WMIVID01 |
System inventory records |
User exits are available in the function modules for adding individually-defined segments or influencing the standard IDoc construction.
Realizing an Individually Defined Interface Connection
You realize an individually defined interface connection in order to be able to decide yourself when communication with the external system should occur and to which external system the data should be sent.
In this case, the interface in the WMS should not be active.
You use the user exit Enhancement at End of TO Creation (MWMTO01) to implement an individually defined connection between the systems.
Defining User-Defined IDoc Segments
You define your own IDoc segments by choosing Tools ® Business Communication ® IDoc Basis ® Development ® IDoc Types. For more information, see
Segment Editor.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
Defining New IDoc Types.You create a partner profile for this message type.
Creating Individually Defined Send Function Modules
For creating individual send function modules, SAP provides the following function modules, which are already used in SAP send function modules.
Modification Concepts: IDoc Outbound Processing
Function module |
Task |
L_IDOC_HEADER_CREATE |
Construction of the necessary EDIDC data per IDoc |
L_IDOC_SEGMENT_CREATE |
Construction of an IDoc segment |
L_IDOC_SEND |
Sending the constructed IDoc |
L_IDOC_FETCH |
For access to the data in your program after calling your IDOC_CREATE_.... |