Skip to Content
0
Former Member
Oct 05, 2005 at 07:57 PM

Function trouble with field domain that has conversion routine

74 Views

I have a function that works when tested from the workbench but not when a value is passed to it. It contains the following:

IMPORTING

REFERENCE(I_PACK) TYPE LRMEI

SELECT SINGLE

umrez

INTO

w_packunit

FROM

marm

WHERE

matnr EQ w_cpos1-matnr AND

meinh EQ i_pack.

From the workbench 'CT' is converted to 'KAR' and the value is returned but when 'CT' is passed to the function from an outside routine the 'CT' is not converted and no value is returned. I have tried inserting CONVERSION_EXIT_CUNIT_INPUT function into my code but it did not work either. I am sure there must be a fundamental resolution for this.