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

Add current year to a Sapscript form

xt_inergo
Participant
0 Likes
768

Hi,

What is the command that I have to put in a custom sapscript form to display the current year.

I know that "date" command can display the current date but I want to use only the current year.

When I put date(4) It displays the first 4 characters (17.0 from 17.07.2009). I want the last 4 characters (2009)

Thanks in advanced.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
638

Use DATE+6(4).

Hi,

What is the command that I have to put in a custom sapscript form to display the current year.

I know that "date" command can display the current date but I want to use only the current year.

When I put date(4) It displays the first 4 characters (17.0 from 17.07.2009). I want the last 4 characters (2009)

Thanks in advanced.

3 REPLIES 3
Read only

Former Member
0 Likes
639

Use DATE+6(4).

Read only

Former Member
0 Likes
638

Hi ,

use offset length

date+6(4) .

Please let me know if you still need any more help.

Thanks and regards,

Rajeshwar

Read only

Former Member
0 Likes
638

Hi,

If you are using some field in your program for Fiscal Year, you can print that in SAP Script.

as &GJAHR&

or if you want to print as per current date, then print it as

& SY-DATUM+6(4)&

Regds,

Anil