Skip to Content
author's profile photo Former Member
Former Member

Function trouble with field domain that has conversion routine

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










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.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    Posted on Oct 06, 2005 at 12:18 AM

    Hi Greg!

    The conversion exit CUNIT is the right answer. I don't know, if you're system is different maintained, but I have to fill in CAR and language EN to get KAR as result.

    An other option is to use ISO-code units. These are defined in T006 and should/can be used in interfaces with external systems.

    In case of human interface, a CUNIT conversion exit is still the best.



    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Thanks Christian,

      I had was right there but just had a coding error when I implemented the CUNIT input function. I guess I just needed the confirmation that I was on the right track.



Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.