2006 Nov 29 10:50 AM
Hi all,
Is there any Function module to convert date from one format to other?
eg : convert date from DDMMYYYY to YYYYMMDD.
Thanking You,
Kasinath Babu.
2006 Nov 29 10:59 AM
2006 Nov 29 10:53 AM
2006 Nov 29 10:54 AM
See this blog
/people/himanshu.gupta/blog/2006/11/24/fms-to-convert-date-from-user-format-into-sap-standard
Regards,
Ravi
Note - Please mark all the helpful answers and close the thread if the issue is resolved.
2006 Nov 29 10:54 AM
hi
if you have DDMMYYYY in a field, say, lv_date, then use the following statement; no function module required for this purpose...
<b>concatenate lv_date4(4) lv_date2(2) lv_date+0(2) into lv_date</b>.
Hope this helps.
Sajan.
2006 Nov 29 10:56 AM
2006 Nov 29 10:59 AM
2006 Nov 29 11:06 AM
Use CONVERSION_EXIT_PDATE_INPUT
or else declare variables V1 V2 V3
V1 = date+0(2).
V2 = date+3(2).
V3 = date+5(4).
concatenate v3 v2 v1 into date.
2006 Nov 29 11:06 AM
Hi kasinath,
there are so many function modules below are some of them
DATE_TO_DAY --> input is date and output is which day that date belongs to.
DATE_GET_MONTH_LASTDAY --> if u give some date as input the output will be the last day of the particular month.