## 4.2.15.12.3.1  Reading Standard Dimensions and Units of Measurement
Use the GET\_DIMENSIONS method to read the standard dimensions for a unit of measurement, and the GET\_UNITS method to read the standard units of measurement.
These methods perform the following actions based on the parameters listed below:
- Language filter ( IV\_LANGUAGE ): If the IV\_LANGUAGE filter is set, the API retrieves all standard dimensions/all standard units of
measurement based on the specified language.
- Dimension filter ( IV\_DIM ) and unit filter ( IV\_UNIT ): If these filters are set, the API retrieves the standard dimensions or, respectively, standard units of measurement for the specified dimension/unit across all languages available in the standard units of measurement.
- Both language and dimension or unit filters ( IV\_LANGUAGE and IV\_DIM or IV\_UNIT ): If both these filters are set, the API retrieves the standard dimension/standard unit of measurement based on both the specified language and dimension or unit filters.
- No parameters provided: If no parameters are set, the API retrieves all standard dimensions and units of measurement.
## Import Parameters
| Parameters   | Value Help                           |
|--------------|--------------------------------------|
| IV_LANGUAGE  | Specific language to filter          |
| IV_DIM       | Specific dimension or unit to filter |
| IV_UNIT      |                                      |
## Returning Parameters
| Parameter Name         | Field Name                                                                      | Value Help                                                                                                                                                                         |
|------------------------|---------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| RT_DIMENSIONS RT_UNITS | IF_UOM_CONTENT_HAN- DLER=>TT_DIM_TS IF_UOM_CONTENT_HAN- DLER=>tt_uom_content_ts | Table type for the read dimension or units of measurement See also the Export Parameters section in Reading a Dimension [page 1524] and Reading a Unit of Measurement [page 1536]. |
##  Note
Class exception CX\_UOM\_ERROR is raised if no unit is found.
##  Sample Code
```
CLASS zcl_read_std_uom DEFINITION PUBLIC FINAL CREATE PUBLIC . PUBLIC SECTION. INTERFACES if_oo_adt_classrun . PROTECTED SECTION. PRIVATE SECTION. ENDCLASS. CLASS zcl_read_std_uom IMPLEMENTATION. METHOD if_oo_adt_classrun~main. CONSTANTS pieces TYPE msehi VALUE 'ST' ##NO_TEXT. CONSTANTS dimensionless TYPE dimid VALUE 'AAAADL' ##NO_TEXT. DATA(lo_uom) = cl_uom_content_handler=>get_instance( ).
```
```
TRY. DATA(lt_standard_uom_content) = lo_uom->get_units( iv_unit     = pieces iv_language = sy-langu ). out->write( lt_standard_uom_content ). DATA(lt_standard_dim_content) = lo_uom->get_dimensions( iv_dim      = dimensionless iv_language = sy-langu ). out->write( lt_standard_dim_content ). CATCH cx_uom_error INTO DATA(error). out->write( error->get_text( ) ). out->write( |Error occurred while fetching standard content| ). ENDTRY. ENDMETHOD. ENDCLASS.
```