...
select single msehi into m_currency from cabn where atnam eq i_atnam.
else.
m_currency = -atawe.
endif.
call function 'KKEK_CONVERT_FLOAT_TO_CURR' ...
... to get the type of the field (needed for proper conversion) and FM KKEK_CONVERT_FLOAT_TO_CURR to convert currency values stored as float on database into currency fields. Importing: i_object type bapi1003_key-object -> ...