Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Why to use the function 'UNIT_OF_MEASURE_ISO_TO_SAP'?

Our previous consultant in our company use the following call function in the code to convert a flat file into another flat file for BW to read and the call function code is like:

CALL FUNCTION 'UNIT_OF_MEASURE_ISO_TO_SAP'

EXPORTING

ISO_CODE = Input_field(3)

IMPORTING

SAP_CODE = output_variable

  • UNIQUE =

EXCEPTIONS

NOT_FOUND = 1

OTHERS = 2

Could we know why this function has to be used? Does that mean that some unit from outside world cann't be accepted by SAP BW?

Thanks

Former Member
replied

Hi Kevin,

Probably, you are right. Looks like the conversion is needed. Maybe the logic inside some BW code/routine/ABAP was built hardcoded reg ISO codes.

As a conclusion, you may either:

1. Do not use this call to FM and see if the result is corrupted. If corrupted - the call is necessary. Leave it as it is.

2. Try tracking the logic of data transformation in order to figure out what is the input and output of data (ISO code > SAP internal code > whatever...). The decision will depend on what you find out. No recipes!

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question