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

system variable for current year

Former Member
0 Likes
3,922

hi........

do we have any system variable for current year.........

3 REPLIES 3
Read only

uwe_schieferstein
Active Contributor
0 Likes
1,284

Hello Deepthi

No, but you can use

  gd_current_year = syst-datum+0(4).

Regards

Uwe

Read only

Former Member
0 Likes
1,284

hi

take from the sy-datum

Read only

Former Member
0 Likes
1,284

Hi,

I think there is no system variable for getting current year. You can try like this:

data: zyyyy(4), v_date like sy-datum.

v_date = sy-datum.

zyyyy = v_date+0(4).

write zyyyy.

Regards,

Bhaskar