Ansicht
Dokumentation

MWMIDO07 - Enhancement for error handling for IDOC inbox: PDC

MWMIDO07 - Enhancement for error handling for IDOC inbox: PDC

PERFORM Short Reference   Addresses (Business Address Services)  
This documentation is copyright by SAP AG.
SAP E-Book

With this customer exit, the error handling can be influenced customer-specifically when processing IDOCs that were sent from external systems to SAP via the MM-MOB and WM-LSR interfaces.

This exit can be used for the following message types:

  • WMMBXY - Goods movements
  • WMTORD - Create transfer order
  • WMINVE - Counting data entry

The customer exit is performed in function modules that process the IDOCs of the above-mentioned message types:

  • L_IDOC_INPUT_WMMBXY
  • L_IDOC_INPUT_WMTORD
  • L_IDOC_INPUT_WMINVE

The IDOC processing is performed online.

The customer exit in the program is function module EXIT_SAPLLMDE_001. In order to be able to use the customer exit, you must create Include ZXLIDU09 and activate the enhancement with transaction CMOD. As parameters, you can use the IDOC data and the data for the error handling that were determined in the function modules when processing the individual IDOCs:

  • Message type (import parameter I_MESTYP).
  • IDOC number (import parameter I_DOCNUM).
  • Return code from the function module that performs the functions such as 'Create Transfer Order' or 'Block storage Bins' (import parameter I_SUBRC).
  • Indicator: The error causes a ROLLBACK (import parameter I_FLG_ERROR_ROLLBACK).
  • Identification of the error message (import parameter X_LMESS).
  • Determined return code for further IDOC processing (import parameter X_RETURNCODE).
  • Determined error category for the workflow processing in the ALE interface (import parameter X_CATEGORIE).
  • Return code as processing result for the ALE interface (import parameter X_RESULT).

The customer exit transfers the modified data of the error handling that control the further processing process and that are returned to the ALE interface:

  • Identification of the error message (export parameter X_LMESS)
  • Determined return code for further IDOC processing. (export parameter X_RETURNCODE)
  • Determined error category for the workflow processing in the ALE interface (export parameter X_CATEGORIE).
  • Return code as processing result for the ALE interface (export parameter X_RESULT).

If an error causes a rollback (import parameter I_FLG_ERROR_ROLLBACK is set), the determined error data cannot be influenced.

If the parameter X_RETURNCODE is returned to the calling program unequal to 0, the IDOC is regarded as being incorrect and the IDOC is marked with status '51'.

You can use the following values for parameter X_CATEGORIE:

  • 'Processed_IDOCs'
  • 'Error_IDOCs'
  • 'Continue_IDOCs'
  • 'Retry_IDOCs'

The following characteristics are currently used for parameter X_RESULT:

  • '0000' - The IDOC were processed successfully
  • '9999' - The IDOC was not processed because of an error

In the documentation of customer exit 'MWMIDI01', you will find several examples how to use an user exit during the error handling of the IDOC processing. You can also use the individual examples as the basis for this exit.






BAL Application Log Documentation   General Material Data  
This documentation is copyright by SAP AG.

Length: 3815 Date: 20240328 Time: 192017     sap01-206 ( 55 ms )