‎2008 Sep 12 9:28 AM
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..
‎2008 Sep 12 9:34 AM
‎2008 Sep 12 9:33 AM
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
‎2008 Sep 12 9:34 AM
‎2008 Sep 12 9:36 AM
Hi,
Try to use UNIT_CONVERSION_SIMPLE , You cannot test this from SE37.
Br, Dilum
‎2008 Sep 12 9:38 AM
Hi,
You can also Try 'RSW_UNIT_CONVERSION' this FM .
Regards,
Sachin M M
‎2008 Sep 12 9:40 AM