Application Development and Automation 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: 
Read only

function module...

Former Member
0 Likes
610

hi experts,

any function module to convert MINUTES to HOURS..?

example: 90mins to 01:30hrs

example:100mins to 01:40hrs

example:120mins to 02:00hrs

thankyou..

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
573

CONVERSION_EXIT_SDURA_OUTPUT

5 REPLIES 5
Read only

Former Member
0 Likes
573

hi,

try

DATA ws_minutes type i.

DATA ws_hours type i.

DATA ws_lminutes type i.

DATA c_hours(2).

DATA c_lminutes(2).

DATA time_hhmmss(6).

ws_hours = ws_minutes DIV 60.

ws_lminutes = ws_minutes MOD 60.

c_hours = ws_hours.

c_lminutes = ws_lminutes.

concatenate c_hours c_lminutes '00' into time_hhmmss.

I hope this helps.

thanks,

rahul sinha

Read only

Former Member
0 Likes
574

CONVERSION_EXIT_SDURA_OUTPUT

Read only

former_member451655
Active Participant
0 Likes
573

Hi,

Try to use UNIT_CONVERSION_SIMPLE , You cannot test this from SE37.

Br, Dilum

Read only

sachin_mathapati
Contributor
0 Likes
573

Hi,

You can also Try 'RSW_UNIT_CONVERSION' this FM .

Regards,

Sachin M M

Read only

Former Member
0 Likes
573

TRY THIS FM

CONVERSION_EXIT_SDURA_OUTPUT