cancel
Showing results for 
Search instead for 
Did you mean: 

how to convert hours and minutes in sap script?

Former Member
0 Kudos

hello friends...

i have Operations Which Calculates the DURATION And UNIT

say 1st ENTRY is 30 MIN

2ND ENTRY IS 80 MIN

3RD ENTRY 1.20 H (H STANDS FOR HOURS) AND SO ON.

NOW I NEED TO CALCULATE THE TOTAL TIME N SHOW THE

RESULT AS SUPPOSE 05:03 [H:M] FORMAT HOW DO I DO IT IN SAPSCRIPT.

FIELDS FOR DURATION IS AFVGD-DAUNO AND

FIELD FOR UNIT IS AFVGD-DAUNE.

PLEASE REPLY ASAP.

REGARDS

ESSAM

essamsaud@yahoo.co.in

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

use fm for the conversion

C14B_ADD_TIME

thanks

vivekanand

Former Member
0 Kudos

Hi

just create an perform in any program

write the logic for converting the time into minutes first.

then add the time

then write the logic to convert back to hours and minutes

call the perform of that program

USING time you are giving

CHANGING the value you are getting

PLZ REWARD IF HELPFUL

VIVEKANAND