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: 

regarding function module to convert hours to minutes and seconds to minute

Former Member
0 Kudos

hi all,

is there any function module to convert hours to minutes and seconds to minutes....if so please guided me....i hav req like this...want to convert all those to minutes[seconds and hours]....

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

Use FM

SD_CALC_DURATION_FROM_DATETIME

Pass paramters like

I_DATE1 16.09.2008

I_TIME1 10:33:00

I_DATE2 16.09.2008

I_TIME2 19:00:00

and you will get the result as below..

E_TDIFF 8:27

8 hours and 27 minutes...

Now u can use this values of hours and minutes to get the exact wage type values... get the details from HR module and multiply it with the hours and minute and calculate it...

Use Offsets and get the hour and minute value from E_TDIFF

Hope it will solve your problem..

Thanks & Regards,

Naresh

1 REPLY 1

Former Member
0 Kudos

Hi,

Use FM

SD_CALC_DURATION_FROM_DATETIME

Pass paramters like

I_DATE1 16.09.2008

I_TIME1 10:33:00

I_DATE2 16.09.2008

I_TIME2 19:00:00

and you will get the result as below..

E_TDIFF 8:27

8 hours and 27 minutes...

Now u can use this values of hours and minutes to get the exact wage type values... get the details from HR module and multiply it with the hours and minute and calculate it...

Use Offsets and get the hour and minute value from E_TDIFF

Hope it will solve your problem..

Thanks & Regards,

Naresh