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: 

FM- to conert any unit to hours

Former Member
0 Kudos

I need Function module that gets any unit ( day, mill second, nano second...) as input and converts to hours.

2 REPLIES 2

Former Member
0 Kudos

You can search function module using 'converttime*' or

check statement 'CONVERT DATE i_datlo TIME i_timlo

INTO TIME STAMP e_timestamp TIME ZONE l_tzone.'

raymond_giuseppi
Active Contributor
0 Kudos

- Try [UNIT_CONVERSION_SIMPLE|http://forums.sdn.sap.com/search.jspa?threadID=&q=UNIT_CONVERSION_SIMPLE&objID=&dateRange=all&numResults=30&rankBy=10001].

- If you want a TIME type result, convert into seconds and add to an initial value of this type.

Regards,

Raymond