Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

ALV OO: how to format time(char) HHMMSS into HH:MM:SS ??

Former Member
0 Kudos

Hi guys!

How can i format the time for display?

In my table its like HHMMSS, for display in the alv oo grid i want it like HH:MM:SS

Is there a way to do this in the field catalogue??

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

If your data type for the time is TIMS, it will convert to HH:MM:SS

regards,

Advait.

2 REPLIES 2

Former Member
0 Kudos

Hello

As far as I know - it is impossible with field catalogue.

Try this (example):


data: time(8).
write sy-uzeit to time.
write time.

Former Member
0 Kudos

Hi,

If your data type for the time is TIMS, it will convert to HH:MM:SS

regards,

Advait.