cancel
Showing results for 
Search instead for 
Did you mean: 

Why to use the function 'UNIT_OF_MEASURE_ISO_TO_SAP'?

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Kevin,

AFAIK, ISO codes in R/3 are important if you use EDI functionality. In other cases it (ISO codes) might be not used at all. And the call of this function module might be useless. You need to check it out.

Former Member
0 Kudos

hi Eugene/Praveen,

As we said in our 1st post that this function is used to convert from a flat file to another flat file for BW to read, that means the data doesn't come from R3 and it's from a flat file, therefore it means the ISOCode needs to be converted to SAPCode, right?

Thanks!

Former Member
0 Kudos

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!

Answers (1)

Answers (1)

Former Member
0 Kudos

Your system might be having a standard base unit of measure and to maintain the integrity of your source data this routine might have been developed.

Former Member
0 Kudos

This function module is used tot Convert an ISO measurement unit code into the SAP code.

go to SE37 > enter the functin module > hit execute button.

Then give your ISP code and hit execute agian. You can see th ISO code been converted to the SAP Code.

This result will be stored in BW while loading data to the BW.

Hope this helps

Praveen

Former Member
0 Kudos

hi Praveen,

Could you give an example of ISO unit and it's corresponding SAP code? If we don't use this function, then what will happen to BW system?

Thanks!

Former Member
0 Kudos

All Unit of Measure codes are stored in Table: T006.

You can check this table in SE16 > T006 > Execute.

in the results screen you can view ISOCodes udner ISOCODE column. Compare these codes with SAPCodes using function module.

<i>Usually all these codes are transferred from Source System as part of transfer global settings. (RSA1 > source system > right click > transfer global settings). I dont know what is the purpose of using this function module in your case.</i>