Generation of Alphanumeric Serial Number that is possible by following Enhancement for Serial Numbers:
You can generate alphanumeric serial number with the following BADI / Customer Exit:
Name of Enhancement : IQSM0001
Name of Function Module Exit: EXIT_SAPLIPW1_001
Name of Include : ZXQSMU01
ZXQSMU01:
This user exit can be used to create the serial numbers automatically for material of a production order. Number of serial numbers generated will be equal to the total number of quantity. The purpose behind development of this user exit was to attach prefix in each serial number generated. so as per your requirement you can generate serial number like ABC0001 etc.
Process Steps:
For exit: EXIT_SAPLIPW1_001
- Get serial number profile for a material in respective plant.
- Check if the profile is ‘XYZ’.
- If profile is ‘XYZ’ generate the serial numbers for the given quantity of material in production order.
General Program Structure
For exit: EXIT_SAPLIPW1_001
- Get the serial number profile using function module 'MARC_SINGLE_READ' for a material.
- Check if the profile is ‘XYZ’.
- If the serial number profile is ‘XYZ’ then generate the serial numbers for the given production order quantity of a material.
- Concatenate ABC as a prefix to the all generated serial numbers
Implement above Enhancement in CMOD.