Ansicht
Dokumentation

SIMG_CFMENUOCHABNCM - Configure Customer Exits for Intern. Batch Number Assignment

SIMG_CFMENUOCHABNCM - Configure Customer Exits for Intern. Batch Number Assignment

General Material Data   CPI1466 during Backup  
This documentation is copyright by SAP AG.
SAP E-Book

You can use SAP enhancement SAPLV01Z for internal batch number assignment. This enhancement contains two function module exits that you can use to define number ranges or templates for batch numbers:

  • EXIT_SAPLV01Z_001. You use this exit to replace the number range object and/or interval proposed by the system with your own number range object and/or interval.
    In addition, you can, for instance, stop the system from assigning an internal number depending on the material or plant. You can also use this exit to stop the dialog box from appearing.
  • EXIT_SAPLV01Z_002. Using this exit, you can either change the number assigned by the system, or assign your own number.

Both exits contain a communication structure with application data from the respective business transaction (plant or material type, for example). If you need further information, such as the time, the user name or the date, you must include them yourself in one of the exits.

The system always checks whether the assigned batch number already exists in the system. If it does, it terminates the function without assigning a batch number.

In function module exit EXIT_SAPLV01Z_001, the system uses the material type to determine number range interval XY. This number range is then used to determine number 0000100123 as the next batch number .

In function module exit EXIT_SAPLV01Z_002, the final batch number 'ABCD100123' is determined from batch number 0000100123 and plant ABCD. The system suppresses the leading zeros.

If you do not use a sequential counter for the batch number, you can skip internal number assignment in exit EXIT_SAPLV01Z_001 to specify your own batch number in exit EXIT_SAPLV01Z_002. Further information and examples for EXIT_SAPLV01Z_001 and EXIT_SAPLV01Z_002 Further information and examples for EXIT_SAPLV01Z_002

  1. Implement the required enhancement.
Either create a new project or use an existing one.
  1. Activate the project.
Your enhancement works only after the project has been activated.

As opposed to modifications, enhancements are release-insensitive as they are not made in the SAP standard version but in name ranges reserved for the customer.

For more information on the general procedure for making enhancements, see the enhancement transaction under Utilities -> Online handbook.

Each individual enhancement is documented and can be accessed by choosing SAP docu in the enhancement transaction.






rdisp/max_wprun_time - Maximum work process run time   PERFORM Short Reference  
This documentation is copyright by SAP AG.

Length: 2991 Date: 20240523 Time: 162344     sap01-206 ( 53 ms )