Getting Started Store
Community WIKI SAP Community Welcome, Guest Login Register Search the Community
SAP NetWeaver Business Warehouse / … / BW-BEX-OT-OLAP-UOM - Unit Conversion
Unit Conversion: Example I
Created by Peter Stockinger, last modified by Tibbie Cai on Aug 16, 2018
Quantity Conversion Type where Conversion Factor is determined by using a Reference InfoObject
Our Qunatity Conversion Type is defined as follows(see Unit Conversion for general information to this topic):
Transaction RSUOM
The reference InfoObject is STPE_MAT2. This means that there is a DSO assigned to this InfoObject (see RSD1 below) where the system can find the conversion factores stored per 'material'.
The target unit can be specified during query runtime by selecting the desired unit for the variable 0VC_VARUNIT.
Transaction RSD1 and UOM DSO
In the DSO UMSTPE the converion factors for all materials have to be maintained:
Please note that also the columns(0__0UNIT and 0__0BASE_UOM) where the SIDs are stored of the units have to be filled correctly(since the OLAP Engine uses the SIDs)!
Query
The query is simple and uses the conversion type STPE_CCT_3 from above:
You could find the same setting in Hana Studio.
We run the query in Transaction RSRT and select in the variable G(Gram) as the target unit.
Query Result:
So, the query converted the value 123,50 KG into 123.500 G. The folowing row was used from the active table of the DSO:
In case qwe change the target unit from G to TO, the query displays the following result:
So, the query converted the value 123,50 KG into 0,124 TO. The folowing rows were used from the active table of the DSO:
This means that the query first had to determine the conversion factor from KG to the base unit G (1000) and then the factor from G to TO (which is 10^-6). Hnece, the final factor is 10^-3.
No Quantity Conversion Possible
In case no conversion factor can be determined, e.g. when there are no records in the DSO for a certain material, the following error messages are displayed by the query: RSUOM 064, 159 and 065. We
choose in our example a query which retrieves data for the material M002 which does not exists in the UOM DSO:
For material M001, conversion into TO could be carried out, for M002 no conversion was possible.
If you don't want these warnings getting displayed when running the query, you can suppress them in transaction RSRT, see note 2381193.
No labels
Contact Us SAP Help Portal
Privacy Terms of Use Legal Disclosure Copyright Cookie Preferences Follow SCN