cancel
Showing results for 
Search instead for 
Did you mean: 

Call to FM CONVERSION_FACTOR_GET

0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

former_member181962
Active Contributor
0 Kudos

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

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi the following two Function Modules will help u.

CONVERSION_EXIT_CUNIT_INPUT

CONVERSION_EXIT_CUNIT_OUTPUT

Satish

athavanraja
Active Contributor
0 Kudos

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

Regards

Raja

venkata_ramisetti
Active Contributor
0 Kudos

Hi,

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

CONVERSION_EXIT_CUNIT_INPUT

CONVERSION_EXIT_CUNIT_OUTPUT

Thanks,

Ramakrishna