Modification Concepts: IDoc
Outbound Processing
The following modification scenarios are available:
● You use the standard IDoc but want to influence the construction of the IDoc.
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 to influence the standard IDoc construction.
● You use the standard IDoc, but want to specify when and to whom the system should send a warehouse task item. In this case, you do not use the standard flow of the interface.
You realize your own connection for the interface between Extended Warehouse Management (EWM) and the non-SAP system.
● You use a modified IDoc with user-defined segments and you want to trigger user-defined processing to construct the data in the segments.
In the standard IDoc, you define your own IDoc segments and use the BAdI method to enter data into your own segments.
● You use a modified IDoc with user-defined segments and want to implement IDoc construction yourself.
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 use a modified IDoc with user-defined segments and do not want to use the standard flow of the interface.
In the standard IDoc, you define your own IDoc segments and realize your own connection for the interface between EWM and the non-SAP system.
● You use an individually defined IDoc with a new message type and have to implement IDoc construction yourself.
You define an individual IDoc and create an individually defined function module. Standard auxiliary function modules are available for this purpose.
● You use a modified IDoc with a new message type and do not want to use the standard flow of the interface.
You define your own IDoc, and realize your own connection for the interface between EWM and the non-SAP system.
EWM prepares sending the IDoc to the non-SAP 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 user-defined function module.
You enter this function module in Customizing for Extended Warehouse Management under Interfaces → Non-SAP Systems → Connect Subsystem.
EWM uses the following function modules to construct and send IDocs:
Function modules for outbound IDoc processing
Function module |
Name |
/SCWM/IDOC_CREATE_WMTOID01 |
Warehouse tasks |
/SCWM/IDOC_CREATE_WMRRID01 |
Group release |
/SCWM/IDOC_CREATE_WMCAID01 |
Cancellation request WT |

In the function modules, you can use BAdI methods to add your own IDoc segments, or to influence the structure of the standard IDoc.
You realize your own interface connection to decide for yourself when communication should take place to the non-SAP system, and to which non-SAP system you want to send the data.

In this case, the interface must not be active in EWM.
You use the BAdI method BAdI. WT Confirmation, to realize your own connection between the systems.
You define your own
IDoc segments from the SAP Easy Accessscreen, by choosing Tools → ALE → ALE Development → IDoc → IDoc Type Development → IDoc Types. For more information, see
Segment
Editor.
If you define your
own IDocs (intermediate structure), you assign this IDoc to a new message
type. To do this, on the SAP
Easy
Access screen, choose
Tools → ALE → ALE Development → IDoc IDoc Type Development → IDoc Types. For more
information, see
Defining New IDoc
Types.
You create a partner profile for this message type.