Skip to Content

Call to FM CONVERSION_FACTOR_GET

Hi,

I need to call the FM CONVERSION_FACTOR_GET with

parameters

UNIT_IN = X

UNIT_OUT = Y

Y is 'HRS' which is okay but I need to pass X which is of type <b>CGPL_DURATION_UNIT</b> so I need to first convert it into type <b>MSEHI</b>.

<b>Is there any function module or method of some class to convert type CGPL_DURATION_UNIT to type MSEHI?</b>

Thanks in advance,

Saurabh

Add a comment
10|10000 characters needed characters exceeded

Related questions

4 Answers

  • Best Answer
    Posted on Nov 21, 2005 at 11:57 AM

    Hi Saurabh,

    I don't think you have to use convert the Duration unit into MSEHI type. YOu can just declare a variable of type T006-MSEHI in the calling program, assign the value of X directly to that variable and pass it directly to the FM.

    <b>LV = x.</b>

    If it is giving a problem, then use

    any one of the the conversion routies,

    CONVERSION_EXIT_CUNIT_INPUT

    CONVERSION_EXIT_CUNIT_OUTPUT

    Regards,

    Ravi

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Nov 21, 2005 at 11:56 AM

    Hi,

    You may have to use either of one from the FMs.

    CONVERSION_EXIT_CUNIT_INPUT

    CONVERSION_EXIT_CUNIT_OUTPUT

    Thanks,

    Ramakrishna

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Nov 21, 2005 at 11:58 AM

    i guess you dont need to convert , becuase if you see the type definition both (CGPL_DURATION_UNIT & MSEHI) uses domain "MEINS".

    Regards

    Raja

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 21, 2005 at 12:33 PM

    Hi the following two Function Modules will help u.

    CONVERSION_EXIT_CUNIT_INPUT

    CONVERSION_EXIT_CUNIT_OUTPUT

    Satish

    Add a comment
    10|10000 characters needed characters exceeded

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.