SAP FIND_BASE_DIMENSION Function Module for Ermittlung Basisdimension
FIND_BASE_DIMENSION is a standard find base dimension SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Ermittlung Basisdimension 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 find base dimension FM, simply by entering the name FIND_BASE_DIMENSION into the relevant SAP transaction such as SE37 or SE38.
Function Group: IWO0
Program Name: SAPLIWO0
Main Program: SAPLIWO0
Appliation area: I
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:
![](https://www.se80.co.uk/training-education/wp-content/uploads/2019/07/normal-function-module.png)
Function FIND_BASE_DIMENSION 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 'FIND_BASE_DIMENSION'"Ermittlung Basisdimension.
EXPORTING
* ECURR = "Exponent for the voltage
* LENG = "Exponent for the length
* LIGHT = "Exponent for the brightness
* MASS = "Exponent for the earthing
* MOLQU = "Exponent for the mole quantity
* MSSIE = "SI unit
* TEMP = "Exponent for the temperature
* TIMEX = "Exponent for the time
IMPORTING
DIMID = "
EXCEPTIONS
DIMENSION_NOT_FOUND = 1
IMPORTING Parameters details for FIND_BASE_DIMENSION
ECURR - Exponent for the voltage
Data type: T006D-ECURROptional: Yes
Call by Reference: No ( called with pass by value option)
LENG - Exponent for the length
Data type: T006D-LENGOptional: Yes
Call by Reference: No ( called with pass by value option)
LIGHT - Exponent for the brightness
Data type: T006D-LIGHTOptional: Yes
Call by Reference: No ( called with pass by value option)
MASS - Exponent for the earthing
Data type: T006D-MASSOptional: Yes
Call by Reference: No ( called with pass by value option)
MOLQU - Exponent for the mole quantity
Data type: T006D-MOLQUOptional: Yes
Call by Reference: No ( called with pass by value option)
MSSIE - SI unit
Data type: T006D-MSSIEOptional: Yes
Call by Reference: No ( called with pass by value option)
TEMP - Exponent for the temperature
Data type: T006D-TEMPOptional: Yes
Call by Reference: No ( called with pass by value option)
TIMEX - Exponent for the time
Data type: T006D-TIMEXOptional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for FIND_BASE_DIMENSION
DIMID -
Data type: T006D-DIMIDOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
DIMENSION_NOT_FOUND -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for FIND_BASE_DIMENSION 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_ecurr | TYPE T006D-ECURR, " | |||
lv_dimension_not_found | TYPE T006D, " | |||
lv_leng | TYPE T006D-LENG, " | |||
lv_light | TYPE T006D-LIGHT, " | |||
lv_mass | TYPE T006D-MASS, " | |||
lv_molqu | TYPE T006D-MOLQU, " | |||
lv_mssie | TYPE T006D-MSSIE, " | |||
lv_temp | TYPE T006D-TEMP, " | |||
lv_timex | TYPE T006D-TIMEX. " |
  CALL FUNCTION 'FIND_BASE_DIMENSION' "Ermittlung Basisdimension |
EXPORTING | ||
ECURR | = lv_ecurr | |
LENG | = lv_leng | |
LIGHT | = lv_light | |
MASS | = lv_mass | |
MOLQU | = lv_molqu | |
MSSIE | = lv_mssie | |
TEMP | = lv_temp | |
TIMEX | = lv_timex | |
IMPORTING | ||
DIMID | = lv_dimid | |
EXCEPTIONS | ||
DIMENSION_NOT_FOUND = 1 | ||
. " FIND_BASE_DIMENSION |
ABAP code using 7.40 inline data declarations to call FM FIND_BASE_DIMENSION
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 ECURR FROM T006D INTO @DATA(ld_ecurr). | ||||
"SELECT single LENG FROM T006D INTO @DATA(ld_leng). | ||||
"SELECT single LIGHT FROM T006D INTO @DATA(ld_light). | ||||
"SELECT single MASS FROM T006D INTO @DATA(ld_mass). | ||||
"SELECT single MOLQU FROM T006D INTO @DATA(ld_molqu). | ||||
"SELECT single MSSIE FROM T006D INTO @DATA(ld_mssie). | ||||
"SELECT single TEMP FROM T006D INTO @DATA(ld_temp). | ||||
"SELECT single TIMEX FROM T006D INTO @DATA(ld_timex). | ||||
Search for further information about these or an SAP related objects