SAP ABAP IMG Activity SIMG_CFMENUOCHABNCM (Configure Customer Exits for Intern. Batch Number Assignment)
Hierarchy
SAP_APPL (Software Component) Logistics and Accounting
   LO-BM (Application Component) Batches
     VB0C (Package) Customizing R/3 batch determination
IMG Activity
ID SIMG_CFMENUOCHABNCM Configure Customer Exits for Intern. Batch Number Assignment  
Transaction Code S_ALR_87006974   IMG Activity: SIMG_CFMENUOCHABNCM 
Created on 19981222    
Customizing Attributes SIMG_CFMENUOCHABNCM   Configure Customer Exits for intern. batch number assignment 
Customizing Activity SIMG_CFMENUOLMBCHNX   Set up customer exits for external batch number assignment 
Document
Document Class SIMG   Hypertext: Object Class - Class to which a document belongs.
Document Name SIMG_CFMENUOCHABNCM    

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.

Further notes

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.

Example

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

Activities

  1. Implement the required enhancement.

    Either create a new project or use an existing one.

  2. Activate the project.

    Your enhancement works only after the project has been activated.

Further notes

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.

Business Attributes
ASAP Roadmap ID 257   Create User Exits 
Mandatory / Optional 3   Nonrequired activity 
Critical / Non-Critical 1   Critical 
Country-Dependency A   Valid for all countries 
Assigned Application Components
Documentation Object Class Documentation Object Name Current line number Application Component Application Component Name
SIMG SIMG_CFMENUOCHABNCM 0 HLA0100725 Batch Specification 
Maintenance Objects
Maintenance object type C   Customizing Object 
Assigned objects
Customizing Object Object Type Transaction Code Sub-object Do not Summarize Skip Subset Dialog Box Description for multiple selections
CMOD L - Logical transport object CMOD LOBM_CHNEU Customer enhancement projects 
History
Last changed by/on SAP  19990129 
SAP Release Created in