Skip to Content
1
Former Member
Jul 02, 2007 at 02:20 PM

UNIT_CONVERSION_SIMPLE - sy-subrc=1 (KG to LBS)

387 Views

Hi

I have the following code in which I try to make a unit conversion. In my example it is from KG to LBS but I get sy-subrc=1, which is CONVERSION_NOT_FOUND I think.

This is in my development system. Does anyone know how I get the unit conversion through?

IF TRAN_STRUCTURE-meins <> TRAN_STRUCTURE-vrkme.

meng = 0.

CALL FUNCTION 'UNIT_CONVERSION_SIMPLE'

EXPORTING

input = TRAN_STRUCTURE-kcmeng

unit_in = TRAN_STRUCTURE-meins

unit_out = TRAN_STRUCTURE-vrkme

IMPORTING

output = meng

Kind regards,

torben