Use method READ to read a dimension.
|
Parameter Name |
Value Help |
|---|---|
|
DIMID |
Dimension key |
|
LANGUAGE |
Language key (optional)
|
|
Parameter Name |
Field Name |
Value Help |
|---|---|---|
|
DIM_ST |
|
Structure for reading a dimension |
|
|
DIMID |
Dimension key |
|
|
TXDIM |
Description of the dimension key |
|
|
SI_UNIT |
Base unit of a dimension |
|
|
SI_TXT |
Description of the base unit |
|
|
LENGTH |
Length exponent of the dimension |
|
|
MASS |
Mass exponent of the dimension |
|
|
TIME |
Time exponent of the dimension |
|
|
CURRENT |
Electric current exponent of the dimension |
|
|
TEMPERATURE |
Temperature exponent of the dimension |
|
|
MOLE_QTY |
Mole quantity exponent of the dimension |
|
|
LUMINOSITY |
Light exponent of the dimension |
|
|
HASUNITSWITHTEMPERATURESPEC |
Indicates whether the dimension has units with a temperature specification |
|
|
HASUNITSWITHPRESSURESPEC |
Indicates whether the dimension has units with a pressure specification |
|
|
LANGUAGE |
Language key |
Class exception
CX_UOM_ERRORis raised if no dimension is found.
CLASS zcl_uom_dimension_read_test DEFINITION PUBLIC FINAL CREATE PUBLIC . PUBLIC SECTION. INTERFACES if_oo_adt_classrun. PROTECTED SECTION. PRIVATE SECTION. ENDCLASS. CLASS zcl_uom_dimension_read_test IMPLEMENTATION. METHOD if_oo_adt_classrun~main. DATA(lo_dim) = cl_uom_dim_maintenance=>get_instance( ). TRY. lo_dim->read( EXPORTING dimid = 'AAAADL' language = 'E' IMPORTING dim_st = DATA(ls_dim) ). CATCH cx_uom_error. ENDTRY. out->write( ls_dim-DIMID ). out->write( ls_dim-txdim ). ENDMETHOD. ENDCLASS.