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'
ISO_CODE = Input_field(3)
SAP_CODE = output_variable
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?
Eugene Khusainov replied
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!