‎2006 Dec 11 11:35 AM
Hi friends,
When ever i try to display date, the output is displayed in the format of yyyy/mm/dd.
what is the technique to get the date in the dd/mm/yyyy format from the write statement.
i even set the settings under menu system --> user profile --> own data to dd/mm/yyyy, but still cant get the result in dd/mm/yyyy.
‎2006 Dec 11 11:40 AM
you have to do like this:
write sy-datum edit mask 'DD/MM/YYYY'. " TRY ALSO EDIT_MASK OR EDIT-MASK I'M NOT SURE..
regards,
ravi
‎2006 Dec 11 11:42 AM
try the following, it will work.
data: d like sy-datum.
d = sy-datum.
write:/ d using edit mask '__/__/____'.
‎2006 Dec 11 11:49 AM
after changing the user profile in SU01 u have to log off the user & come again.
Log off now relogin & use write statement.
data : d1 type d.
d1 = sy-datum.
write d1.
Now u r output will be wat u set in user profile
‎2006 Dec 11 12:27 PM
Hi friends,
thanx for your help. My query has been answered by you. thanx. i tried logging off and relogged and it worked.
And to the rest of replys, thank you also.