‎2006 Sep 25 6:41 AM
Hello experts,
Here i have a doubt,in program i have to generate an account number of a bank customer randomly and it should be unique for every customer... so could you tell me how to make it....
thanking you
Vamsi
‎2006 Sep 25 6:46 AM
Hi,
QF05_RANDOM Random number generator
QF05_RANDOM_INTEGER Random (whole) number
Above FM`s can be used.
Best regards,
Prashant
‎2006 Sep 25 6:44 AM
‎2006 Sep 25 6:46 AM
Hi,
QF05_RANDOM Random number generator
QF05_RANDOM_INTEGER Random (whole) number
Above FM`s can be used.
Best regards,
Prashant
‎2006 Sep 25 6:46 AM
The code can be like this :
L_RAN_NUMBER LIKE QF00-RAN_NUMBER.
CALL FUNCTION 'QF05_RANDOM'
IMPORTING
RAN_NUMBER = L_RAN_NUMBER.
‎2006 Sep 25 3:04 PM
thanks for giving answer,almost my problem is solved ,but it won't generate unique numbers, what can i do.
‎2006 Sep 25 3:13 PM
Hi Vamsi,
In that case, what you can do is Create a Ztable and store the number in it. Every time you can refer the table and increment it by 1 and then update the Ztable.
Best regards,
Prashant