cancel
Showing results for 
Search instead for 
Did you mean: 

Long Date issue

Former Member
0 Kudos

Hello,

Is there a function module which will convert sy-datum into the long date format. I am looking for a FM that is not dependent on the user date settings (like CONVERSION_EXIT_LDATE_OUTPUT). The exact requirements are in the example that follows.

20060411 -> April 11, 2006

Thanks,

Derek

Accepted Solutions (1)

Accepted Solutions (1)

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

No function required, you can do this.



report zrich_0001.

data: it247 type table of t247 with header line.
data: output type string.

parameters: p_datum type sy-datum.

call function 'MONTH_NAMES_GET'
     tables
          month_names = it247.

read table it247 with key mnr = sy-datum+4(2).


concatenate it247-ltx 'X' sy-datum+6(2) ',' 'X' sy-datum+0(4)
     into output.
translate output using 'X '.

write:/ output.

Regards,

Rich Heilman

Answers (1)

Answers (1)

suresh_datti
Active Contributor
0 Kudos

try CONV_EXIT_LDATE_OUTPUT_LANGU

Suresh