04-24-2007 12:12 PM
Hi guys,
i need to display some variable as per the user's current date format.
But it is always following DD.MM.YYYY whereas my user format is MM/DD/YYYY.
i know how to see it in system -- > user profile --> own data....
But i need to write code to find the current date format ...
HELP ME
04-24-2007 1:47 PM
04-24-2007 12:14 PM
04-24-2007 12:14 PM
Hi,
Try this:
data: l_date_string(10).
write l_date to l_date_string.
write l_date_string.
04-24-2007 12:14 PM
Hi!
It is stored in USR01 table DATFM field (its a number, which means a specific format).
Regards
Tamá
04-24-2007 12:15 PM
you can write a select on USR01 table
select DATFM from USR01 into V_DATFM where bname eq sy-uname.
04-24-2007 1:06 PM
Any Function module to change the date to user's current date format ????
04-24-2007 1:07 PM
04-24-2007 1:47 PM
04-24-2007 1:48 PM
data: v_date(10).
write sy-datum to v_date using edit mask '__.__.____'.
04-24-2007 1:49 PM
04-24-2007 1:53 PM
No one suggested to use edit mask ...it is not present in write statement help also
Thanks alot Ravi...
04-24-2007 1:57 PM
Hi GUru,
It is there in write statement help. Under formatting options i guess.
Regards,
Ravi