Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Convert Measurment Range Unit Value : PM Module

Former Member
0 Likes
3,123

Hi Expert,

In IK02 transaction Against the Measuring Point, I have entered the value for 

Upper Range Limit as : 50 ,

Lower Range Limit as : 40 , &

Measurement Range Unit is: Degrees Celsius

When we look into the table IMPTT against this Measuring Point ,

the values are got stored as in the fileds ,

MRMIN  = 3.1315000000000003E+02 & 

MRMAX = 3.2315000000000003E+02.

How can i convert these values to the original value in the program like ( 50 & 40 ) ,

Note: In this case Measurement Range unit is : Degree celsius , it can be vary so based on the Range unit ,

how can i convert the value to original value ?

Please help me out ..

Regards,

Sankar

1 ACCEPTED SOLUTION
Read only

FredericGirod
Active Contributor
0 Likes
2,271

Hi Sankar,

I don't know, but, maybe that could help you, you have exactly the same method/rules with the caracteristic CT04 (and class CL02)

maybe you could fine doc, discution with this common transaction.

Fred

Hi Expert,

In IK02 transaction Against the Measuring Point, I have entered the value for 

Upper Range Limit as : 50 ,

Lower Range Limit as : 40 , &

Measurement Range Unit is: Degrees Celsius

When we look into the table IMPTT against this Measuring Point ,

the values are got stored as in the fileds ,

MRMIN  = 3.1315000000000003E+02 & 

MRMAX = 3.2315000000000003E+02.

How can i convert these values to the original value in the program like ( 50 & 40 ) ,

Note: In this case Measurement Range unit is : Degree celsius , it can be vary so based on the Range unit ,

how can i convert the value to original value ?

Please help me out ..

Regards,

Sankar

6 REPLIES 6
Read only

FredericGirod
Active Contributor
0 Likes
2,272

Hi Sankar,

I don't know, but, maybe that could help you, you have exactly the same method/rules with the caracteristic CT04 (and class CL02)

maybe you could fine doc, discution with this common transaction.

Fred

Read only

0 Likes
2,271

Hi,

We are maintaining the characteristics : TEMPERATURE only and the Unit of measure is : °C only ,

this is maintained correctly.

But if you see in Ik02 , the upper range limit data type is IMRC_MRMAC which is the character 22.

but in table

the MRMAX type is : IMRC_MRMAX which is the FLTP 16.

can anybody tell me is there any function module or formula avavailable to convert it to the original ?

Regards,

Sankar

Read only

0 Likes
2,271

Hi Sankar,

I debugged and found that the function module 'CHAR_FLTP_CONVERSION_TO_SI' is been used for converting it to floating 16.

  CALL FUNCTION 'CHAR_FLTP_CONVERSION_TO_SI'

    EXPORTING

      char_value       = is_rimr03-mrmac

      char_unit        = impt-mrngu

      unit_is_optional = 'X'

      decimals_max     = impt-decim

      field_name       = 'IS_RIMR03-MRMAC'

      masc_symbol      = y_masc_symbol__

    IMPORTING

      fltp_value_si    = impt-mrmax

      indicator_value  = impt-mrmaxi

    EXCEPTIONS

      error_message    = 1.

Thanks,

Tooshar Bendale

Read only

0 Likes
2,271

I got the solution .

I used this FM :

FLTP_CHAR_CONVERSION_FROM_SI

to convert it to Original.

Regards,

Sankar Manoharan

Read only

0 Likes
2,271

Just wanted to note that the post marked as the correct answer is wrong.  The correct answer is Sankar Manoharan answer.

It is FM: FLTP_CHAR_CONVERSION_FROM_SI

not

CHAR_FLTP_CONVERSION_FROM_SI.

Thanks, Brian

Read only

0 Likes
2,271

You can use FM QSS0_FLTP_TO_CHAR_CONVERSION which converts floating value MRMIN and MRMAX( Measurment Range Unit Value ) of IMPTT table