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

former_member188594
Active Participant
0 Likes
538

I have two fields on my initial screen from FAGLFLEXT table ie RPYEAR [fiscal year] which should be defaulted to current fiscal year and RPMAX [period] should be defaulted to (period - 1). Could anyone help me achieve this functionality.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
504

if it is module pool programming , u can initialize the values in PBO

<b>in PBO</b>

MODULE INITIALIZE_VALUES.

MODULE INITIALIZE_VALUES.

FAGLFLEXT-RPYEAR = sy-datum+0(4).
FAGLFLEXT-RPMAX = '001'.

ENDMODULE.

if it is module pool programming , u can initialize the values in PBO

<b>in PBO</b>

MODULE INITIALIZE_VALUES.

MODULE INITIALIZE_VALUES.

FAGLFLEXT-RPYEAR = sy-datum+0(4).
FAGLFLEXT-RPMAX = '001'.

ENDMODULE.

2 REPLIES 2
Read only

Former Member
0 Likes
505

if it is module pool programming , u can initialize the values in PBO

<b>in PBO</b>

MODULE INITIALIZE_VALUES.

MODULE INITIALIZE_VALUES.

FAGLFLEXT-RPYEAR = sy-datum+0(4).
FAGLFLEXT-RPMAX = '001'.

ENDMODULE.

Read only

Former Member
0 Likes
504

Hi,

Module pool Programming :

You can assign the value in PBO module of the Screen

Report Programming:

Assign value in INITIALIZATION event.

Code:

RPYEAR = sy-datum(4).

RPMAX = '01'

Thanks

Sandeep

Reward if helpful

Message was edited by:

Sandeep Ranade