Application Development and Automation 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: 
Read only

Display milliseconds value in ALV

former_member185613
Contributor
0 Kudos
706

Hello All,

Need your help regarding the best way to display milliseconds in ALV. So far I have seen time display in hh:mm:ss format but I need to display time along with milliseconds in the format HH:MM:SS:mmm.

Appreciate your help,

Athreya

1 ACCEPTED SOLUTION
Read only

matt
Active Contributor
0 Kudos
519

How is the time stored in your program? As a string HHMMSS.mmm? Or as a timestamp YYYYMMSSDDhhmmss.nnnnnnn? Or as some weird kind of numeric format? It would have been nice of you to state it.

Convert the time to a string, and then use string operations to format it as you want.

5 REPLIES 5
Read only

satyapriyanka_vana
Active Participant
519

Hi,

Pls check this data element TIMESTAMPL. Might be useful.

Regards,

Priyanka.

Read only

0 Kudos
519

Only might be?

Read only

matt
Active Contributor
0 Kudos
520

How is the time stored in your program? As a string HHMMSS.mmm? Or as a timestamp YYYYMMSSDDhhmmss.nnnnnnn? Or as some weird kind of numeric format? It would have been nice of you to state it.

Convert the time to a string, and then use string operations to format it as you want.

Read only

0 Kudos
519

Hi Matthew,

The data is stored in a field of type TIMESTAMPL (format YYYYMMDDhhmmssmmmuuun). I suppose I need to use string operations to get the format or convert the time (with milliseconds) into a NUMC type variable and display in ALV using edit mask (the sorting and other functionalities in ALV should work if the particular field is used).

Regards,

Athreya

Read only

matt
Active Contributor
0 Kudos
519

Yes, That is what you must do.