Ansicht
Dokumentation

DIMENSION_GET_FOR_UNIT - determines the dimension of a measurement unit

DIMENSION_GET_FOR_UNIT - determines the dimension of a measurement unit

BAL Application Log Documentation   Fill RESBD Structure from EBP Component Structure  
This documentation is copyright by SAP AG.
SAP E-Book
Functions

This function module determines the dimension key for a measurement unit.

Example

    DATA: UNIT_OF_MEASUREMENT LIKE T006-MSEHI,
          DIMENSION           LIKE T006-DIMID,
          DIMENSION_TEXT      LIKE T006T-TXDIM.
    ...
    CALL FUNCTION 'DIMENSION_GET_FOR_UNIT'
         EXPORTING
              UNIT                = UNIT_OF_MEASUREMENT
              LANGUAGE            = SY-LANGU
              USE_BUFFER_FOR_TEXT = 'X'
         IMPORTING
              DIMENSION = DIMENSION
              TEXT      = DIMENSION_TEXT
         EXEPTIONS
              UNIT_NOT_FOUND = 1 .

Notes
  • All function modules in this group work with selective buffering by default. This internal table buffering can be disabled fully using the function module BUFFER_CONTROL_SCVU or be switched to 'complete buffering'.
  • The text determination is also buffered by default. Buffering can be disabled using USE_BUFFER_FOR_TEXT = SPACE, which is advisable if the module is only used once. (The buffering of dimension and text determination are separated because the dimension determination buffer is also used in other modules. The text determination buffer on the other hand is only used here and in the module DIMENSION_GET.)




Parameters

DIMENSION
LANGUAGE
TEXT
UNIT
USE_BUFFER_FOR_TEXT

Exceptions

UNIT_NOT_FOUND

Function Group

SCVU

CPI1466 during Backup   BAL Application Log Documentation  
This documentation is copyright by SAP AG.

Length: 3016 Date: 20240523 Time: 111239     sap01-206 ( 38 ms )