‎2008 Nov 27 4:22 AM
hi,
if there is any standard function module for auto generator of char value . eg 'cust00001'.
regards,
ARUN
‎2008 Nov 27 4:39 AM
HI,
Please note my understanding is correct.
if you are looking to generate the number ranges and then add 'CUST' to it
use number range object
you can create them in SNRO tcode.
regards
Ramchander Rao.K
‎2008 Nov 27 4:35 AM
hi,
you can create your own subroutine like this:
FORM new_number.
DATA: lv_lines TYPE i.
CONSTANTS: lc_0001 TYPE char4 VALUE '0001'.
DESCRIBE TABLE total LINES lv_lines.
IF lv_lines IS INITIAL.
num = lc_0001 .
concatenate 'cust' num to num.
ELSE.
num = lc_0001 + lv_lines.
concatenate 'cust' num to num.
ENDIF.
ENDFORM."form new_number.
‎2008 Nov 27 4:43 AM
‎2008 Nov 27 4:49 AM
Hi,
while you try to create a number range object it asks for a data element
take S_CARR_ID
and a domain CO_RMZHL
then you can create a number range object
create a simple program to update the SCARR table where carrid contains 01, 02 etc
now you can maintain the number ranges for this subobjects i.e, 01 02 etc
call the FM NUMBER_GET_NEXT
pass the required parameters
for info understand the signature of the FM in SE37
regards
Ramchander Rao.K
‎2008 Dec 18 10:51 AM
‎2008 Nov 27 4:39 AM
HI,
Please note my understanding is correct.
if you are looking to generate the number ranges and then add 'CUST' to it
use number range object
you can create them in SNRO tcode.
regards
Ramchander Rao.K
‎2008 Dec 18 11:42 AM