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: 

secondes to HH:MM:SS

Former Member
0 Kudos
85

Hi all,

Do you know if a function exist witch takes secondes as parameter and return the time in the format HH:MM:SS?

Thank you all

Regards

Karim

6 REPLIES 6

andreas_mann3
Active Contributor
0 Kudos
59

hi,

use write to ...USING EDIT MASK mask

WRITE (8) TIME USING EDIT MASK '__:__:__'.

Message was edited by:

Andreas Mann

former_member583013
Active Contributor
0 Kudos
59

Nope....But it could be easily developed -;)

Greetings,

Blag.

Former Member
0 Kudos
59

Hi,

No such function Module exists in SAP.

regards,

ANJI

Former Member
0 Kudos
59

Hi!

This is an easy task for ABAP also...

DATA: lv_hours TYPE i,

lv_minutes TYPE i,

lv_seconds TYPE i.

lv_hours = lv_seconds / 3600.

lv_seconds = lv_seconds - lv_hours * 3600.

lv_minutes = lv_seconds / 60.

lv_seconds = lv_seconds - lv_minutes * 60.

Regards

Tamá

Former Member
0 Kudos
59

Thank you guys.

If no such method exist, I will develop it myself then.

regards

Karim

0 Kudos
59

Please don't forget to assing points to helpfull answers -:)

Greetings,

Blag.