2009 Jul 17 7:06 AM
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.
2009 Jul 17 7:09 AM
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.
2009 Jul 17 7:09 AM
2009 Jul 17 7:10 AM
Hi ,
use offset length
date+6(4) .
Please let me know if you still need any more help.
Thanks and regards,
Rajeshwar
2009 Jul 17 7:14 AM
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
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |