SAP DIMENSIONCHECK_CONVERTABLE Function Module for NOTRANSL: Prüfung, ob Mengeneinheit aus anderer Mengeneinheit ableitbar is
DIMENSIONCHECK_CONVERTABLE is a standard dimensioncheck convertable SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for NOTRANSL: Prüfung, ob Mengeneinheit aus anderer Mengeneinheit ableitbar is 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 dimensioncheck convertable FM, simply by entering the name DIMENSIONCHECK_CONVERTABLE into the relevant SAP transaction such as SE37 or SE38.
Function Group: MG20
Program Name: SAPLMG20
Main Program: SAPLMG20
Appliation area: M
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function DIMENSIONCHECK_CONVERTABLE 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 'DIMENSIONCHECK_CONVERTABLE'"NOTRANSL: Prüfung, ob Mengeneinheit aus anderer Mengeneinheit ableitbar is.
EXPORTING
P_BAS_MEINH = "Base Unit of Measure
P_ALT_MEINH = "Unit of Measurement
P_ZAEHLER = "ABAP System Field: Row Index of Internal Tables
* P_DIMENSIONCHECK_FOR_PUOM = 'X' "Checkbox
IMPORTING
P_ADDKO = "Additive constant for conversion to SI unit
P_UMREZ = "Counter
P_UMREN = "Denominator
P_SAVMEINH = "Unit of Measurement
TABLES
MEINH = "Structure of Table MEINH (Created for Update Program)
EXCEPTIONS
NOT_CONVERTABLE = 1 OVERFLOW = 2 UNIT_NOT_ALLOWED = 3
IMPORTING Parameters details for DIMENSIONCHECK_CONVERTABLE
P_BAS_MEINH - Base Unit of Measure
Data type: T006-MSEHIOptional: No
Call by Reference: No ( called with pass by value option)
P_ALT_MEINH - Unit of Measurement
Data type: T006-MSEHIOptional: No
Call by Reference: No ( called with pass by value option)
P_ZAEHLER - ABAP System Field: Row Index of Internal Tables
Data type: SY-TABIXOptional: No
Call by Reference: No ( called with pass by value option)
P_DIMENSIONCHECK_FOR_PUOM - Checkbox
Data type: XFELDDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for DIMENSIONCHECK_CONVERTABLE
P_ADDKO - Additive constant for conversion to SI unit
Data type: T006-ADDKOOptional: No
Call by Reference: No ( called with pass by value option)
P_UMREZ - Counter
Data type: MARM-UMREZOptional: No
Call by Reference: No ( called with pass by value option)
P_UMREN - Denominator
Data type: MARM-UMRENOptional: No
Call by Reference: No ( called with pass by value option)
P_SAVMEINH - Unit of Measurement
Data type: T006-MSEHIOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for DIMENSIONCHECK_CONVERTABLE
MEINH - Structure of Table MEINH (Created for Update Program)
Data type: SMEINHOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
NOT_CONVERTABLE - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
OVERFLOW - Overflow
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
UNIT_NOT_ALLOWED - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for DIMENSIONCHECK_CONVERTABLE 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: | ||||
| lt_meinh | TYPE STANDARD TABLE OF SMEINH, " | |||
| lv_p_addko | TYPE T006-ADDKO, " | |||
| lv_p_bas_meinh | TYPE T006-MSEHI, " | |||
| lv_not_convertable | TYPE T006, " | |||
| lv_p_umrez | TYPE MARM-UMREZ, " | |||
| lv_overflow | TYPE MARM, " | |||
| lv_p_alt_meinh | TYPE T006-MSEHI, " | |||
| lv_p_umren | TYPE MARM-UMREN, " | |||
| lv_p_zaehler | TYPE SY-TABIX, " | |||
| lv_unit_not_allowed | TYPE SY, " | |||
| lv_p_savmeinh | TYPE T006-MSEHI, " | |||
| lv_p_dimensioncheck_for_puom | TYPE XFELD. " 'X' |
|   CALL FUNCTION 'DIMENSIONCHECK_CONVERTABLE' "NOTRANSL: Prüfung, ob Mengeneinheit aus anderer Mengeneinheit ableitbar is |
| EXPORTING | ||
| P_BAS_MEINH | = lv_p_bas_meinh | |
| P_ALT_MEINH | = lv_p_alt_meinh | |
| P_ZAEHLER | = lv_p_zaehler | |
| P_DIMENSIONCHECK_FOR_PUOM | = lv_p_dimensioncheck_for_puom | |
| IMPORTING | ||
| P_ADDKO | = lv_p_addko | |
| P_UMREZ | = lv_p_umrez | |
| P_UMREN | = lv_p_umren | |
| P_SAVMEINH | = lv_p_savmeinh | |
| TABLES | ||
| MEINH | = lt_meinh | |
| EXCEPTIONS | ||
| NOT_CONVERTABLE = 1 | ||
| OVERFLOW = 2 | ||
| UNIT_NOT_ALLOWED = 3 | ||
| . " DIMENSIONCHECK_CONVERTABLE | ||
ABAP code using 7.40 inline data declarations to call FM DIMENSIONCHECK_CONVERTABLE
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 ADDKO FROM T006 INTO @DATA(ld_p_addko). | ||||
| "SELECT single MSEHI FROM T006 INTO @DATA(ld_p_bas_meinh). | ||||
| "SELECT single UMREZ FROM MARM INTO @DATA(ld_p_umrez). | ||||
| "SELECT single MSEHI FROM T006 INTO @DATA(ld_p_alt_meinh). | ||||
| "SELECT single UMREN FROM MARM INTO @DATA(ld_p_umren). | ||||
| "SELECT single TABIX FROM SY INTO @DATA(ld_p_zaehler). | ||||
| "SELECT single MSEHI FROM T006 INTO @DATA(ld_p_savmeinh). | ||||
| DATA(ld_p_dimensioncheck_for_puom) | = 'X'. | |||
Search for further information about these or an SAP related objects