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









UNIT_OF_MEASUREMENT_HELP is a standard unit of measurement help SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Possible entries help for units of a dimension (F4 help) processing and below is the pattern details for this FM, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.


See here to view full function module documentation and code listing for unit of measurement help FM, simply by entering the name UNIT_OF_MEASUREMENT_HELP into the relevant SAP transaction such as SE37 or SE38.

Function Group: SCVU
Program Name: SAPLSCVU
Main Program: SAPLSCVU
Appliation area: *
Release date: 14-Mar-2000
Mode(Normal, Remote etc): Normal Function Module
Update:



Function UNIT_OF_MEASUREMENT_HELP pattern details

In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.
CALL FUNCTION 'UNIT_OF_MEASUREMENT_HELP'"Possible entries help for units of a dimension (F4 help)
EXPORTING
* BUSINESS_UOM = ' ' "Commercial unit of measurement flag
* CUCOL = 0 "Starting column popup (default: automatic positioning)
* CUROW = 0 "Starting line popup (default: automatic positioning)
* DIMID = ' ' "Dimension key
* DISPLAY = ' ' "Display flag (default: choose)
* LANGUAGE = SY-LANGU "Language key (default: logon language)
* SELECT_UNIT_EXTERN = ' ' "Flag for output external units (default: internal)
* SELECT_UNIT_LONG = ' ' "Flag for six-digit external units (default: three-digit)

IMPORTING
SELECT_UNIT = "selected unit of measurement
.



IMPORTING Parameters details for UNIT_OF_MEASUREMENT_HELP

BUSINESS_UOM - Commercial unit of measurement flag

Data type: T006-KZKEH
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

CUCOL - Starting column popup (default: automatic positioning)

Data type: SY-CUCOL
Optional: Yes
Call by Reference: No ( called with pass by value option)

CUROW - Starting line popup (default: automatic positioning)

Data type: SY-CUROW
Optional: Yes
Call by Reference: No ( called with pass by value option)

DIMID - Dimension key

Data type: T006-DIMID
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

DISPLAY - Display flag (default: choose)

Data type:
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

LANGUAGE - Language key (default: logon language)

Data type: SY-LANGU
Default: SY-LANGU
Optional: Yes
Call by Reference: No ( called with pass by value option)

SELECT_UNIT_EXTERN - Flag for output external units (default: internal)

Data type:
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

SELECT_UNIT_LONG - Flag for six-digit external units (default: three-digit)

Data type:
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for UNIT_OF_MEASUREMENT_HELP

SELECT_UNIT - selected unit of measurement

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for UNIT_OF_MEASUREMENT_HELP Function Module

The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the newer method of declaring data variables on the fly. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8), which i why i have stuck to the origianl for this example.

DATA:
lv_select_unit  TYPE STRING, "   
lv_business_uom  TYPE T006-KZKEH, "   SPACE
lv_cucol  TYPE SY-CUCOL, "   0
lv_curow  TYPE SY-CUROW, "   0
lv_dimid  TYPE T006-DIMID, "   SPACE
lv_display  TYPE T006, "   SPACE
lv_language  TYPE SY-LANGU, "   SY-LANGU
lv_select_unit_extern  TYPE SY, "   SPACE
lv_select_unit_long  TYPE SY. "   SPACE

  CALL FUNCTION 'UNIT_OF_MEASUREMENT_HELP'  "Possible entries help for units of a dimension (F4 help)
    EXPORTING
         BUSINESS_UOM = lv_business_uom
         CUCOL = lv_cucol
         CUROW = lv_curow
         DIMID = lv_dimid
         DISPLAY = lv_display
         LANGUAGE = lv_language
         SELECT_UNIT_EXTERN = lv_select_unit_extern
         SELECT_UNIT_LONG = lv_select_unit_long
    IMPORTING
         SELECT_UNIT = lv_select_unit
. " UNIT_OF_MEASUREMENT_HELP




ABAP code using 7.40 inline data declarations to call FM UNIT_OF_MEASUREMENT_HELP

The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.

 
"SELECT single KZKEH FROM T006 INTO @DATA(ld_business_uom).
DATA(ld_business_uom) = ' '.
 
"SELECT single CUCOL FROM SY INTO @DATA(ld_cucol).
 
"SELECT single CUROW FROM SY INTO @DATA(ld_curow).
 
"SELECT single DIMID FROM T006 INTO @DATA(ld_dimid).
DATA(ld_dimid) = ' '.
 
DATA(ld_display) = ' '.
 
"SELECT single LANGU FROM SY INTO @DATA(ld_language).
DATA(ld_language) = SY-LANGU.
 
DATA(ld_select_unit_extern) = ' '.
 
DATA(ld_select_unit_long) = ' '.
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!