03-25-2009 8:55 AM
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
03-25-2009 9:08 AM
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
03-25-2009 12:48 PM
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.
03-30-2009 6:19 AM
Hi,
I had done this using BDC.
Thanks for the inputs.
Regards
Rasheed