Skip to Content

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

Time format

Hi,

I am getting one output from the table with date and time ex 20081210053409 (yyyymmddhrmmss). This fiemd I want to split into time with the format of HH:MM:SS.

How I do it.

Thanks

RB

Tags:
Former Member
replied

split the string into 2 variables:

gv_date type sy-datum

gv_date_txt(10).

gv_time type sy-uzeit.

gv_time_txt(8)

simply write gv_time to gv_time_txt will formate according to user settings

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