‎2007 Jan 03 6:21 AM
Hi All,
Is there any function module to convert a date as shown in example.
example:
13/01/2007 (dd/mm/yyyy) as 13 January 2007 or 13 Jan 2007.
Thank you
Jaison
‎2007 Jan 03 6:25 AM
‎2007 Jan 03 6:24 AM
no there is no such FM..u have to do it via logic with the help of table
t247 .
Demo code -
data : d1(8) value '20051215',
c1(2),
c2(10).
c1 = d1+3(2).
select ktx into x_ktx from T247 where spras = 'E'.
concatenate d16(2) x_ktx d10(4) into c2.
write c2.
‎2007 Jan 03 6:25 AM
‎2007 Jan 03 6:26 AM
Hi ,
The FM is CONVERSION_EXIT_IDATE_OUTPUT.
You need to pass the date in the format YYYYMMDD
Regards
Arun
Message was edited by:
Arun R
‎2007 Jan 03 6:40 AM
Dear Jaison,
(1) Extract the first 2 characters from the Date String in dd/mm/yyyy format.
(2) Use "MONTH_NAMES_GET" Function Module to get hold of the Month Name.
(3) Extract the last 4 characters from the Date String in dd/mm/yyyy format.
(4) Concatenate (1) (2) and (3) into a variable and display it.
Regards,
Abir
************************************
Don't forget to award Points *