2008 Sep 30 12:02 PM
hi all,
In my program i have 2 screens,
in 1st screen i have taken customer Number from kna1-kunnr.
now wen i entered the customer number and then execute the system should generate a number for every customer number.
how to generate a number?
please can any 1 help?
2008 Sep 30 12:08 PM
you can work with Number Ranges in this case. you need to create the custom number range object in Transaction SNRO , for getting the number you need to use the Function NUMBER_GET_NEXT , for this you have to supply the number range object.
you can work with Number Ranges in this case. you need to create the custom number range object in Transaction SNRO , for getting the number you need to use the Function NUMBER_GET_NEXT , for this you have to supply the number range object.
2008 Sep 30 12:07 PM
Hi,
Declare a global variable and increment it in PAI, for every customer number. And keep appending the customer number and unique number pair into a internal table. If same customer number is entered again then dont generate a number. In PAI use on input addtion to module.
Thanks & Regards,
Navneeth K.
2008 Sep 30 12:16 PM
thanks for ur quick reply.
can u explain in detail giving example.
2008 Sep 30 12:08 PM
you can work with Number Ranges in this case. you need to create the custom number range object in Transaction SNRO , for getting the number you need to use the Function NUMBER_GET_NEXT , for this you have to supply the number range object.
2008 Sep 30 12:18 PM
thanks for ur quick reply.
can u explain in detail giving example.
2008 Sep 30 12:29 PM
there are many examples on this topic. Most of the standard application use the Number range objects. sales orders , purchase orders etc.
2008 Sep 30 12:12 PM
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |