Funktionsbaustein DIMENSION GET

Aus SAP-Wiki
Wechseln zu: Navigation, Suche

Dieser Funktionsbaustein DIMENSION_GET gibt den Key und Text zu einer Maßeinheit und Sprache zurück.

CALL FUNCTION 'DIMENSION_GET'
" EXPORTING
"   AMOUNT_OF_SUBSTANCE       = 0
"   ELECTRIC_CURRENT          = 0
"   LANGUAGE                  = SY-LANGU
"   LENGTH                    = 0
"   LUMINOUS_INTENSITY        = 0
"   MASS                      = 0
"   TEMPERATURE               = 0
"   TIME                      = 0
"   USE_BUFFER                = 'X'
" IMPORTING
"   DIMID                     =
"   TEXT                      =
" EXCEPTIONS
"   DIMENSION_NOT_FOUND       = 1
"   OTHERS                    = 2
          .
IF SY-SUBRC <> 0.
* Implement suitable error handling here
ENDIF.

Literatur