Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Fiscal year change for program

Former Member
0 Likes
454

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.

1 REPLY 1
Read only

Former Member
0 Likes
429

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.