cancel
Showing results for 
Search instead for 
Did you mean: 

POPUP_UNIT_CONVERSION SAP Function module in Transformation routine

former_member627490
Participant
0 Kudos

Hi Experts,

I'm using above function module to convert the value of measuring document. I have the unit value in and unit value out, I need help on how to achieve this with function module in the routine... I wrote below code but it is giving me errors...

CALL FUNCTION POPUP_UNIT_CONVERSION

              EXPORTING

                    VALUE_IN = 'SOURCE_FIELDS-DESIR'

                    INDICATOR_VALUE = ' '

                    UNIT_IN = 'SOURCE_FIELDS-MSSIE'

                    UNIT_OUT = 'SOURCE_FIELDS-RECDU'

                    POSITION_COLUMN = '20 '

                    POSITION_ROW = '5'

               IMPORTING

                     VALUE_out.

RESULT = VALUE_out.




Can any of you guys used this before , can you please sugget the code. Thanks



-Ganesh

Accepted Solutions (0)

Answers (1)

Answers (1)

sander_vanwilligen
Active Contributor
0 Kudos

Hi Ganesh,


I suggest to use Function Module UNIT_CONVERSION_SIMPLE. The Function Module you mentioned seems to be applicable for dialog processing.


The coding could look as follows:


CALL FUNCTION 'UNIT_CONVERSION_SIMPLE'

  EXPORTING

    INPUT    = SOURCE_FIELDS-DESIR

    UNIT_IN  = SOURCE_FIELDS-MSSIE

    UNIT_OUT = SOURCE_FIELDS-RECDU

  IMPORTING

    OUTPUT   = RESULT.


Best regards,

Sander