‎2010 Dec 21 9:31 AM
Hi Friends,
i am facing the problem with the date conversion, Actuall my requirement is to pass the date to the screen based on the user setting roles(SU01).
I have fetched the user setting date format by using the funciton module SUSR_GET_USER_DEFAULTS, The function module picks the exact user date setting (Like as MM/DD/YYYY, MM.DD.YYYY, DD.MM.YY).
After that i have implemented the FORMAT_DATE_4_OUTPUT funciton module for converting of the user role setting date format into system date format.
for the english language case the funciton module FORMAT_DATE_4_OUTPUT works fine but the funciton module not supported for other languages
Can you please provide the Function Moudle for user setting date conversion.
The funciton module is most important for us,
Thanks
Charan
Moderator message: date conversion questions = FAQ, please search before posting.
Edited by: Thomas Zloch on Dec 21, 2010 2:19 PM
‎2010 Dec 21 9:38 AM
have you tried using WRITE TO SY-DATUM TO <CHAR10>.
Write will take care of the thing ..!
Hope this helps
‎2010 Dec 21 10:21 AM
Hi,
Try using the statement 'WRITE date USING EDIT MASK mask'.
Thanks,
Sudheer
‎2010 Dec 21 10:34 AM
‎2010 Dec 21 12:11 PM
Hope this logic helps you.
DATA LF_DATE TYPE DATS VALUE '21122010'. " 21-dec-2010
DATA LF_DATE_BI(10).
WRITE LF_DATE TO LF_DATE_BI. "Now LF_DATE_BI contains the date in user format
"Now populate the value LF_DATE_BI to the screen field