on 07-05-2012 7:34 AM
Hello Experts,
In business graphics(GRAPHS ), how can we achieve the proper date ...
In my case, The date is coming as 20120702, 20120712, 20120722, 20120732, 20120742,20120752,20120762,20120772,20120782,20120792,20120802.
I want it to be in proper date format..
Please help.
Thanks and regards,
Gaur Mayank
Hi Mayank,
Use the system variable SY-DATUM. It gives you the format DD.MM.YYYY.
Sample Code:
data : lv_date type sy-datum.
lv_date = sy-datum.
WRITE lv_date.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Date format in graph..
it is coming like 20120705.
I am ok with this format.
The problem is the date range, is coming numerically .
i.e.
after 20120730 20120740 20120750 and so on is coming.
20120740( it is increasing numerically though after 20120730 , 20120810 should come ideally ..)
means. 40.07.2012 which is invalid date.
So how to correct this error...??
Regards,
Gaur Mayank
Hi Mayank,
Sample Code:
data : lv_date type sy-datum.
lv_date = sy-datum.
do 10 TIMES.
lv_DATE+4(2) = lv_DATE+4(2) + 1.
WRITE lv_date.
ENDDO.
Output:
05.08.2012 05.09.2012 05.10.2012 05.11.2012 05.12.2012 05.13.2012 05.14.2012 05.15.2012 05.16.2012 05.17.2012
Is this what you are looking for. If not let me know by correcting the Output format of what you are looking
Have a look at this FM :
BKK_ADD_MONTH_TO_DATE. May be useful
Thanks & Regards,
Sankar Gelivi
User | Count |
---|---|
76 | |
9 | |
8 | |
7 | |
6 | |
5 | |
5 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.