on 04-11-2006 7:22 PM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
try CONV_EXIT_LDATE_OUTPUT_LANGU
Suresh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.