Ansicht
Dokumentation

MWMIDI03 - Enhancement for mssge WMCATO (Cancel transfer order) Inbox

MWMIDI03 - Enhancement for mssge WMCATO (Cancel transfer order) Inbox

General Material Data   Addresses (Business Address Services)  
This documentation is copyright by SAP AG.
SAP E-Book

With this user exit, you can influence the IDOC processing of message type WMCATO (Cancel Transfer Order) that is sent to SAP from external systems via the MM-MOB or WM-LSR interfaces. A customer-specific processing can also be accessed in this case.

The user exit is performed in the function module that processes the IDOC of message type WMCATO directly after the IDOC has been taken and checked, but processing in the application was not yet initiated. That is, the data for the transfer order cancellation has already been determined and edited, but the function module for the cancellation was not yet accessed. The standard function module for processing message type WMTOCO is called L_IDOC_INPUT_WMCATO. The IDOC is processed online which means that the source code is also executed online.

If an error occurs, no messages may be issued because the processing is executed in the background and the processing result must always be returned to the ALE interface. Therefore no key words such as MESSAGE, COMMIT WORK, LEAVE or the like may be used. If errors are found in the user exit that should be passed on to the ALE interface or that influence the processing result, you must use user exit MWMIDI01 (EXIT_SAPLLIDI_001) because errors can only be considered by means of thsi user exit (see the documentation on the user exit).

The user exit in the program is function module EXIT_SAPLLIDI_003. In order to be able to use the user exit, you must create Include ZXLIDU06 and activate the enhancement with transaction CMOD. As parameters, you can access the following data:

  • Transfer order data for the cancellation that has already been determined from the received IDOC:
  • Warehouse number (import parameter I_LGNUM)

  • Transfer order number (import parameter I_TANUM)

  • User ID for the cancellation (import parameter X_CUSER)

  • Planned TO processing time by external (import parameter X_SOLEX)

  • Table of items to be cancelled (table parameter T_LTAP_CANCL)

  • Data in the received IDOCs:
  • Control record of the IDOCs (import parameter I_IDOC_CONTROL)

  • Data records of the IDOCs (table parameter T_IDOC_DATA)

This user exit can basically be used:

  • To influence the determined data for the transfer order cancellation. In this case, only the user ID can be changed for the cancellation (export parameter X_CUSER). There is no order item data that it is useful to change because it only contains the item to be cancelled (table parameter T_LTAP_CANCL).
  • To analyze and process data that is transferred via user-defined segments.
  • To access additional activities.

You can find several examples of how to program a user exit when entering IDOCs sent to the SAP System from external systems via MM-MOB or WM-LSR interfaces in the documentation of user exit MWMIDI02. The individual examples can also be taken as the basis for this exit.






Vendor Master (General Section)   BAL_S_LOG - Application Log: Log header data  
This documentation is copyright by SAP AG.

Length: 3832 Date: 20240419 Time: 072707     sap01-206 ( 96 ms )