SAP Function SI_UNIT_GET - Determines SI Unit for a Predetermined Unit or Dimension

Parameter Reference Type Length Default Optional Text
DIMENSION T006-DIMID C 6 SPACE X Dimension key
UNIT T006-MSEHI C 3 SPACE X Unit of Measurement

Parameter Reference Type Length Text
SI_UNIT T006-MSEHI C 3 SI unit

Exception Text
DIMENSION_NOT_FOUND Dimension has not been maintained
UNIT_NOT_FOUND Unit of Measurement Not Maintained


Functionality
This FM determines the SI unit:
  • for a dimension, if the parameter DIMENSION is not SPACE.

  • for a measurement unit, if the parameter UNIT is not SPACE.

  • The parameter DIMENSION has priority over the parameter UNIT, i.e. ifthey are both passed, there is no check that they agree, the SI unitfor the dimension is determined.
    It is easier to determine the SI unit for a dimension than a unit.
    Example
    DATA: UNIT_SI LIKE T006-MSEHI,
    DIM LIKE T006-DIMID.
    ...
    CALL FUNCTION 'SI_UNIT_GET'
    EXPORTING
    DIMENSION = DIM
    IMPORTING
    SI_UNIT = UNIT_SI
    EXCEPTIONS
    DIMENSION_NOT_FOUND = 01
    UNIT_NOT_FOUND = 02.
    Notes
    INCLUDE 'FU_INF_BUF' OBJECT DOKU ID TX

657185RTO: Sample code for calculating bucket consumptions 4.0