User Exits for IDOC Setup in WM
You can use this user exit to influence the processing of IDOCs of the message type WMINVE (actual count dates physical inventory) that are sent to SAP from external systems via MM-MOB or WM-LSR interfaces. It is also possible to access customer-specific processing in this case.
General information on IDOC processing during receipt The IDOCS set up in the external system are passed on to the SAP application. The ALE interface is responsible for receiving this data and for saving it in the SAP System. Using the Customizing tables, you
determine how the incoming IDOCs are to be processed. In the case of the MM-MOB and WM-LSR interfaces, the IDOCs are processed immediately by the application as soon as they are received. The IDOCS are processed in a function module that is determined and controlled by ALE
via the message type. The processing results are returned to ALE by the application so that the IDOCS can be marked accordingly and error processing can be activated, if required. Call transaction and other important requirements
The user exit is performed in the function module that processes the IDOCs of message type WMINVE after the IDOC is withdrawn and checked, but before direct proccessing in the application has been initiated. That is, the actual count dates have already been determined and edited, but the function module
for entering the actual count dates into the system has not been accessed. The standard function module for processing message type WMINVE is called L_IDOC_INPUT_WMINVE. The IDOCs is processed online, which means that the source code is also executed online.
If an error arises, messages should not be issued since processing is being carried out in the background and the result of processing must always be returned to the ALE interface. For this reason language elements such as MESSAGE, COMMIT WORK, LEAVE and the like should not be used. If errors that should be passed
on to ALE interface or that affect the result of processing are detected in the user exit, you should also use the user exit MWMIDI11 (EXIT_SAPLLMDE_001) since it alone can be used to take your errors into account (see the documentation of this user exit).
Parameters and options The user exit in the program is the function module EXIT_SAPLLMDE_003. In order to be able to use it, you must first create Include zxlidu10 and activate the enhancement by means of transaction CMOD. As parameters, you can use the the following data:
- Actual count dates already determined from the received IDOC:
- The actual count dates record currently pending for processing (IDOC item) (import parameter X_E1LINVX).
- Received IDOC data:
- IDOC control record (import parameter I_IDOC_CONTROL)
- IDOC data record (table parameter T_IDOC_DATA)
This user exit can be used to: - influence the determined actual count dates. All data can be changed in this case.
- Analyze and process data that is transferred using customer-specific segments.
Function/Program:- EXIT_SAPLLMDE_003: Exit for Message WMINVE (Iventory Count) on Receipt
|