Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

user exit for co02

Former Member
0 Kudos

Hi

I am using exit for co02 to generate serial numbers for the production number

The exit names are given below.

Name of Enhancement : IQSM0001

Name of Function Module Exit: EXIT_SAPLIPW1_001

Name of Include : ZXQSMU01.

Can i have any sample code to generate alpha numeric serial numbers for my production number.

Regards

Rasheed

3 REPLIES 3

Former Member
0 Kudos

Hi,

Go for the Function Module Documentation it would help u out in writing ur code based on ur requirement. Tae the help of ur functional consultants in creating the Number Ranges in SNRO

Regards,

Vijaya Lakshmi.T

former_member262988
Active Contributor
0 Kudos

Hi,

Go to SNUM tcode create anumber range object specify subobject(accroding to your functional consultant) if necessary .....create the number range.....and in your function module EXIT_SAPLIPW1_001

call this function module

CALL FUNCTION 'NUMBER_GET_NEXT'

EXPORTING

nr_range_nr = '01'

object = 'Z_PRD'

IMPORTING

number = lv_number

EXCEPTIONS

interval_not_found = 1

number_range_not_intern = 2

object_not_found = 3

quantity_is_0 = 4

quantity_is_not_1 = 5

interval_overflow = 6

buffer_overflow = 7

OTHERS = 8.

give the object name and get the number............

now pass that to exporting table TAB_SERNR.....

Thanks,

Shailaja Ainala.

Former Member
0 Kudos

Hi,

I had done this using BDC.

Thanks for the inputs.

Regards

Rasheed