‎2007 May 31 7:14 AM
Hi All,
Iam working on ALV report .
which function module should be used to convert <b>20070530 to 30.05.2007</b> .
Thanks in Advance
Regards,
Anant
‎2007 May 31 7:17 AM
Hi
<b>g_date = sy-datum.
CONCATENATE g_date6(2) '.' g_date4(2) '.' g_date+0(4) INTO g_date.
write:\ g_date.</b>
Regards,
Sree
‎2007 May 31 7:16 AM
HI,
you can use : concatenate date6(2) date4(2) date(4) into temp seperated by '.'
‎2007 May 31 7:16 AM
Hi ,
DATA : date(10) VALUE '00/00/0000'.
PERFORM date_conv USING itdate CHANGING date.
FORM date_conv USING date CHANGING date1.
MOVE date0(4) TO date16(4).
MOVE date4(2) TO date13(2).
MOVE date6(2) TO date10(2).
ENDFORM.
You can remove the speartors / if you dont want.
Regards,
Ram
‎2007 May 31 7:17 AM
Hi
<b>g_date = sy-datum.
CONCATENATE g_date6(2) '.' g_date4(2) '.' g_date+0(4) INTO g_date.
write:\ g_date.</b>
Regards,
Sree
‎2007 May 31 7:18 AM
Hi ,
DATA : date(10) VALUE '00/00/0000'.
PERFORM date_conv USING itdate CHANGING date.
FORM date_conv USING date CHANGING date1.
MOVE date0(4) TO date16(4).
MOVE date4(2) TO date13(2).
MOVE date6(2) TO date10(2).
ENDFORM.
You can remove the speartors / if you dont want.
And aslo see CONVERSION_EXIT_PDATE_OUTPUT
Regards,
Ram
‎2007 May 31 7:20 AM
Hi,
in alv field catalog for date field set no_zero = 'X'. after this again clear this.
it will display the date as normal
no need to use any FM
Regards
Shiva
‎2007 May 31 7:24 AM
Hi ananth,
use the below snippet in ur code
CONDENSE temp_date NO-GAPS.
STRLEN( temp_date ) EQ 10.
date0(4) = temp_date6(4).
date4(2) = temp_date3(2).
date6(2) = temp_date0(2).
Regards