Generate alphanumeric serial number

Source: Internet
Author: User

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 is used to create the serial numbers automatically for material of a production order. Number of serial numbers generated would be equal to the total number of quantity. The purpose behind development of this user exit is 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

1. Get Serial number profile for a material in respective plant.

2. Check if the profile is u2018xyzu2019.

3. If profile was u2018xyzu2019 generate the serial numbers for the given quantity of material in production order.

General Program Structure

For exit:exit_saplipw1_001

1. Get The serial number profiles using function module ' marc_single_read ' for a material.

2. Check if the profile is u2018xyzu2019.

3. If The serial number is u2018xyzu2019 then generate the serial numbers for the given production order quantity of a material.

4. Concatenate ABC as a prefix to the all generated serial numbers

Implement above enhancement in CMOD.

Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

Generate alphanumeric serial number

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.