Sapass

 Simplify SAP R/3 development with Excel VBA/VB RFC  
Home> UserExit>MGA00003



Index

MGA00003

User Exits for the Material Master
Description

You use this customer enhancement to influence the display of material numbers. This requires you to make at least the following functions available:

  • Conversion of the number from the database format to the display format (output)
  • Conversion of the number from the display format to the database format (input)
SAP Conversion

Besides the following options, you can set some conversions (such as templates and leading zeros) in Customizing for the Material Master:

  • You can dispense with the SAP conversion entirely.

In this case, you use the following customer exits:

  • EXIT_SAPLOMCV_001
  • EXIT_SAPLOMCV_901

You must then set the exception IGNORE_REST.

  • You can intervene before the SAP conversion.

In this case, you use the following customer exits:

  • EXIT_SAPLOMCV_001
  • EXIT_SAPLOMCV_901

Here, you do not set the exception IGNORE_REST.

  • You can intervene after the SAP conversion.

In this case, you use the following customer exits:

  • EXIT_SAPLOMCV_002
  • EXIT_SAPLOMCV_902
  • You can mix the above options.
  • Example
    You always want to change the SAP display format in your customer exit. In this case, you change the output after the SAP conversion (EXIT_SAPLOMCV_902), and the input before the SAP conversion (EXIT_SAPLOMCV_001).

    Searching for Material Numbers / Number Ranges

    Please be aware of possible problems when searching for material numbers and possible problems with material number ranges.

    Example
    You have defined the conversion ### -> MAT-###. The user enters M* as the search term. The result depends on your program. For example:

    • All materials since for the user all numbers begin with MAT-
    • All numbers of the type MAT-M*

    The input conversion essentially determines whether the search provides useful results.

    Additional Information

    Sample coding has been provided for customer exits EXIT_SAPLOMCV_001 and EXIT_SAPLOMCV_902.


    Function/Program:
    • EXIT_SAPLOMCV_001: Customer Exit Number Conversion Input Start
    • EXIT_SAPLOMCV_002: Customer Exit Number Conversion Input End
    • EXIT_SAPLOMCV_901: Customer Exit Number Conversion Output Start
    • EXIT_SAPLOMCV_902: User Exit Number Conversion Output End

    02-Oct-2005