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.
Showing results for 
Search instead for 
Did you mean: 

Convert time to number and number to time

Former Member
0 Kudos

I'm using SAP 4.0b

I'm looking for function that converts time to number and number to time.

Any suggestion?


Former Member
0 Kudos


Can you give an example of what number you want to give to get what time and vice-versa?

There can be a direct conversion between an integer and a time variable in ABAP.

For example -

data: number type i,
      time type syuzeit.

number = 3600.

move number to time.
write time.

The time will be output as "01:00:00". That is because 3600 seconds make up one hour.


Anand Mandalika.