SAP Function UNIT_OF_MEASUREMENT_HELP - Possible entries help for units of a dimension (F4 help)

Parameter Reference Type Length Default Optional Text
BUSINESS_UOM T006-KZKEH C 1 SPACE X Commercial unit of measurement flag
CUCOL SYST-CUCOL I 4 0 X Starting column popup (default: automatic positioning)
CUROW SYST-CUROW I 4 0 X Starting line popup (default: automatic positioning)
DIMID T006-DIMID C 6 SPACE X Dimension key
DISPLAY 0 SPACE X Display flag (default: choose)
LANGUAGE SYST-LANGU C 1 SY-LANGU X Language key (default: logon language)
SELECT_UNIT_EXTERN 0 SPACE X Flag for output external units (default: internal)
SELECT_UNIT_LONG 0 SPACE X Flag for six-digit external units (default: three-digit)

Parameter Reference Type Length Text
SELECT_UNIT 0 selected unit of measurement


Functionality
Funktion module for possible entry help for measurement units of aspecified dimension.
Either all, or all business measurement units for a specified dimension(external measurement units and their long text) are displayed in apopup.
If no dimension is specified (DIMID = SPACE), all measurement units aredisplayed.
The parameter DISPLAY determines whether the measurement units are onlydisplayed (DISPLAY = 'X') or can be selected (DISPLAY = ' ').
In the latter case, a unit can be selected by double-click orpushbutton.
3-character or 6-character units are displayed, depending onSELECT_UNIT_LONG (default: 3-character).
The internal or external unit is returned depending onSELECT_UNIT_EXTERN (default: internal).
If nothing is selected (Cancel pushbutton), SELECT_UNIT = SPACE.
Example
CALL FUNCTION 'HELP_UNIT_OF_MEASUREMENT_GET'
EXPORTING
CUCOL = 0
CUROW = 0
DIMID = DIMENSION
DISPLAY = ' '
LANGUAGE = SY-LANGU
SELECT_UNIT_EXTERN = 'X'
SELECT_UNIT_LONG = ' '
BUSINESS_UOM = SPACE
IMPORTING
SELECT_UNIT = UNIT .
Notes
  • You can check whether only values which are valid according to the
  • possible entries help can be entered, with the function moduleDIMENSION_CHECK.
    • The parameters CUROW und CUCOL have the default value 0, so they need
    • not be specified in the call. In this case, the popup is positionedautomatically.
      INCLUDE 'FU_INF_BUF_SCVU' OBJECT DOKU ID TX
      You get the internal or external measurement unit, depending onSELECT_UNIT_EXTERN.
      The flag SELECT_UNIT_LONG determines whether 3-character or 6-characterexternal units are used.
      If nothing is selected (Cancel pushbutton), SPACE is returned.
      This flag has two valid values:
      • 'X':

      • Only business measurement units are displayed or offered for selection.
        • ' ' (space)

        • All measurement units are displayed or offered for selection.
          INCLUDE 'FU_CUCOL_CUROW' OBJECT DOKU ID TX LANGUAGE E
          INCLUDE 'FU_CUCOL_CUROW' OBJECT DOKU ID TX LANGUAGE E
          INCLUDE 'FU_SCVU_DIM_INFO' OBJECT DOKU ID TX LANGUAGE E
          INCLUDE 'FU_DIM_INF' OBJECT DOKU ID TX LANGUAGE E
          This flag specifies whether the popup is only used to display thepossible entries (DISPLAY = 'X'), or to select a value (DISPLAY = ' ').
          DISPLAY has the default value ' '.
          This flag determines whether the function module returns the internalmeasurement unit (SELECT_UNIT_FLAG = SPACE) or an external measurementunit (SELECT_UNIT_FLAG <> SPACE).
          3-character or 6-character external measurement units are returned,depending on SELECT_UNIT_LONG.
          The internal unit is returned by default.
          This flag determines whether 3-character (SELECT_UNIT_LONG = SPACE) or6-character (SELECT_UNIT_LONG <> SPACE) external measurement units areused.
          3-character external units are used by default.

415748Corrections and improvements waste management EHS2.7B-SP01