Skip to Content

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

Function Modules for Data and Time

Hi all,

I need 2 function modules for date and time. when we pass current data(sy-datum) and current time (sy-uzeit) into function modules, shoud get date in <b>dd/mm/yyyy or</b> and time in<b> HH:MM:SS</b> formats.

Thanks in advance

Former Member

You can use CONVERT_DATE_TO_EXTERNAL for date, it will format based on your user specific format in the user master, and time is pretty standard, so you could simply use the WRITE statement to do this.

data: time(10) type c.

write sy-uzeit to time.
write:/ time.


Rich Heilman

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question