Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Update routine for 0proc_unit conversion

Hi all,

My infoobject 0OPR_ACTWRK uses 0PROC_UNIT for units. It holds data in days and in hours. When I load it to a cube, I want to convert all values to working hours.

I figured out that I have to use an update routine in my update rules. A lot of forum threads about unit conversion mention the function module UNIT_CONVERSION_SIMPLE. Can I use this function for my problem? Or should I use a different function module?

This will be my first ABAP code, so can anyone help me and tell me what I have to fill in exactle in the routine format below?

$$ begin of routine - insert your code only below this line -

  • fill the internal table "MONITOR", to make monitor entries

  • result value of the routine


  • result value of the unit

UNIT = .

  • if the returncode is not equal zero, the result will not be updated


  • if abort is not equal zero, the update process will be canceled

ABORT = 0.

$$ end of routine - insert your code only before this line -

Thanks in advance!

Regards, Pieter

Former Member
Not what you were looking for? View more on this topic or Ask a question