cancel
Showing results for 
Search instead for 
Did you mean: 

UNIT_CONVERSION_SIMPLE

Former Member
0 Kudos

Hello All,

I'm using the SAP FM UNIT_CONVERSION_SIMPLE to convert from QP to CS. The function module returns with sy-subrc code = 1 which means that the conversion was not found. I've looked in the master table of 0mat_unit and 0material and both QP and CS is maintained in these tables. Is there something else that I am missing?

Please help!

Regards,

Nyrvole

Accepted Solutions (0)

Answers (1)

Answers (1)

edwin_harpino
Active Contributor
0 Kudos

hi Nyrvole,

can know your code ?

how if call manually UNIT_CONVERSION_SIMPLE with SE37 and test with QP and CS ? and debug ?

hope this helps.

CALL FUNCTION 'UNIT_CONVERSION_SIMPLE'

EXPORTING

INPUT = RESULT

  • NO_TYPE_CHECK = 'X'

  • ROUND_SIGN = ' '

UNIT_IN = 'QP'

UNIT_OUT = 'CS'

IMPORTING

  • ADD_CONST =

  • DECIMALS =

  • DENOMINATOR =

  • NUMERATOR =

OUTPUT = RESULT

EXCEPTIONS

CONVERSION_NOT_FOUND = 1

DIVISION_BY_ZERO = 2

INPUT_INVALID = 3

OUTPUT_INVALID = 4

OVERFLOW = 5

TYPE_INVALID = 6

UNITS_MISSING = 7

UNIT_IN_NOT_FOUND = 8

UNIT_OUT_NOT_FOUND = 9

OTHERS = 10