SAP DIMENSION_GET Function Module for Determine dimension indep. of basis unit exponents
DIMENSION_GET is a standard dimension get SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Determine dimension indep. of basis unit exponents 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 dimension get FM, simply by entering the name DIMENSION_GET 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 DIMENSION_GET 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 'DIMENSION_GET'"Determine dimension indep. of basis unit exponents.
EXPORTING
* AMOUNT_OF_SUBSTANCE = 0 "Mole quantity exponent
* ELECTRIC_CURRENT = 0 "Exponent for the electric current
* LANGUAGE = SY-LANGU "Language key (default: logon language)
* LENGTH = 0 "Length exponent
* LUMINOUS_INTENSITY = 0 "Luminosity exponent
* MASS = 0 "Mass exponent
* TEMPERATURE = 0 "Temperature exponent
* TIME = 0 "Current exponent
* USE_BUFFER = 'X' "Flag for buffer usage (default: with buffer)
IMPORTING
DIMID = "Dimension key
TEXT = "Dimension text
EXCEPTIONS
DIMENSION_NOT_FOUND = 1
IMPORTING Parameters details for DIMENSION_GET
AMOUNT_OF_SUBSTANCE - Mole quantity exponent
Data type:Optional: Yes
Call by Reference: No ( called with pass by value option)
ELECTRIC_CURRENT - Exponent for the electric current
Data type:Optional: Yes
Call by Reference: No ( called with pass by value option)
LANGUAGE - Language key (default: logon language)
Data type: SY-LANGUDefault: SY-LANGU
Optional: Yes
Call by Reference: No ( called with pass by value option)
LENGTH - Length exponent
Data type:Optional: Yes
Call by Reference: No ( called with pass by value option)
LUMINOUS_INTENSITY - Luminosity exponent
Data type:Optional: Yes
Call by Reference: No ( called with pass by value option)
MASS - Mass exponent
Data type:Optional: Yes
Call by Reference: No ( called with pass by value option)
TEMPERATURE - Temperature exponent
Data type:Optional: Yes
Call by Reference: No ( called with pass by value option)
TIME - Current exponent
Data type:Optional: Yes
Call by Reference: No ( called with pass by value option)
USE_BUFFER - Flag for buffer usage (default: with buffer)
Data type:Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for DIMENSION_GET
DIMID - Dimension key
Data type: T006D-DIMIDOptional: No
Call by Reference: No ( called with pass by value option)
TEXT - Dimension text
Data type: T006T-TXDIMOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
DIMENSION_NOT_FOUND - No dimension maintained for specified exponents
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for DIMENSION_GET 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_dimid | TYPE T006D-DIMID, " | |||
| lv_amount_of_substance | TYPE T006D, " 0 | |||
| lv_dimension_not_found | TYPE T006D, " | |||
| lv_text | TYPE T006T-TXDIM, " | |||
| lv_electric_current | TYPE T006T, " 0 | |||
| lv_language | TYPE SY-LANGU, " SY-LANGU | |||
| lv_length | TYPE SY, " 0 | |||
| lv_luminous_intensity | TYPE SY, " 0 | |||
| lv_mass | TYPE SY, " 0 | |||
| lv_temperature | TYPE SY, " 0 | |||
| lv_time | TYPE SY, " 0 | |||
| lv_use_buffer | TYPE SY. " 'X' |
|   CALL FUNCTION 'DIMENSION_GET' "Determine dimension indep. of basis unit exponents |
| EXPORTING | ||
| AMOUNT_OF_SUBSTANCE | = lv_amount_of_substance | |
| ELECTRIC_CURRENT | = lv_electric_current | |
| LANGUAGE | = lv_language | |
| LENGTH | = lv_length | |
| LUMINOUS_INTENSITY | = lv_luminous_intensity | |
| MASS | = lv_mass | |
| TEMPERATURE | = lv_temperature | |
| TIME | = lv_time | |
| USE_BUFFER | = lv_use_buffer | |
| IMPORTING | ||
| DIMID | = lv_dimid | |
| TEXT | = lv_text | |
| EXCEPTIONS | ||
| DIMENSION_NOT_FOUND = 1 | ||
| . " DIMENSION_GET | ||
ABAP code using 7.40 inline data declarations to call FM DIMENSION_GET
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 DIMID FROM T006D INTO @DATA(ld_dimid). | ||||
| "SELECT single TXDIM FROM T006T INTO @DATA(ld_text). | ||||
| "SELECT single LANGU FROM SY INTO @DATA(ld_language). | ||||
| DATA(ld_language) | = SY-LANGU. | |||
| DATA(ld_use_buffer) | = 'X'. | |||
Search for further information about these or an SAP related objects