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: 

How convert days got into hours format

Former Member
0 Kudos

How convert days got into hours format

In my requiremnt, I get a date from the following logic.

  • move time in step to work area

v_timeinstep = sy-datum - wa_pa0008_1-endda.

v_timeinstep = 100 * 100 * v_timeinstep / 36525.

MOVE v_timeinstep TO wa_pt_to_ft_list-timeinstp .

But actually, I should display the date coming here in hours format

can any one plese let me know.



Former Member
0 Kudos

Hi Rohini,

Try these FM.





Active Contributor
0 Kudos

what about multiplying with 24?

Former Member
0 Kudos

Dear Rohini,

As such, your query is not clear.

Do you require no. of hours between any date range? if this is true, then try with FM "DELTA_TIME_DAY_HOUR".

Provide the following inputs

1. Start Time

2. End Time

3. Start Date

4. End Date

The result would be no. of minutes between the period. Divide the value by 60 to turn into no. of days.

Ex: Leave Start & End Times as blank and Provide start and end dates as 01.01.2008, 25.01.2008

The result would be 34.560 minutes. So divide by 60 to get no. hours.

Many Thanks,

Dharmendra Gali

Former Member
0 Kudos

Some other user asked similar question...but I'm not sure about your requirement..

Can you check this link please..

Former Member
0 Kudos

Solved myself.