Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Long Date issue

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

Tags:
replied

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

0 View this answer in context

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question