Show TOC

 Modification Concepts: IDoc Outbound Processing

Use

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.

Features

Adjusting the Standard Function Module

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 Start of the navigation path Interfaces Next navigation step Non-SAP Systems Next navigation step Connect Subsystem End of the navigation path .

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

Note Note

In the function modules, you can use BAdI methods to add your own IDoc segments, or to influence the structure of the standard IDoc.

End of the note.
Realizing an individually defined interface connection

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.

Caution Caution

In this case, the interface must not be active in EWM.

End of the caution.

You use the BAdI method BAdI. WT Confirmation , to realize your own connection between the systems.

Defining User-Defined IDoc Segments

You define your own IDoc segments from the SAP Easy Access screen, by choosing Start of the navigation path Tools Next navigation step ALE Next navigation step ALE Development Next navigation step IDoc Next navigation step IDoc Type Development Next navigation step IDoc Types End of the navigation path . For more information, see Segment Editor .

Defining User-Defined IDocs

If you define your own IDocs (intermediate structure), you assign this IDoc to a new message type.To do this, on the Start of the navigation path SAPEasy Accessscreen, chooseTools Next navigation step ALE Next navigation step ALE Development Next navigation step IDoc IDoc Type Development Next navigation step IDoc Types.For more information, seeDefining New IDoc Types. End of the navigation path

You create a partner profile for this message type.