2008 Apr 10 11:56 AM
Hi Experts
We have a dialogue program for the invoice entry. In Dialogue program we have a field to display the Pin no. The Pin no used to generate a new number when we execute the Program.
My requirement is if when we execute the program it has to generate the pinno to start from 01 and then increment by 1 as by for every fiscal year.
Please provide with sample code if possible.
Hi Experts
We have a dialogue program for the invoice entry. In Dialogue program we have a field to display the Pin no. The Pin no used to generate a new number when we execute the Program.
My requirement is if when we execute the program it has to generate the pinno to start from 01 and then increment by 1 as by for every fiscal year.
Please provide with sample code if possible.
2008 Apr 10 12:26 PM
Hi,
For that you need to create a record in the table TNRO.
SO in the table TNRO you need to create an object.
after that you have to use the function module as shown below
CALL FUNCTION 'NUMBER_GET_NEXT'
EXPORTING
nr_range_nr = '01'
object = 'ZHR_APPR' "--> Your object
IMPORTING
number = v_counter.
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |