SAP VBWS_VALUE_CHECK Function Module for NOTRANSL: Ermitteln Zähler/Nenner für die Umrechnung Anteils-/Produkt-ME i
VBWS_VALUE_CHECK is a standard vbws value check 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: Ermitteln Zähler/Nenner für die Umrechnung Anteils-/Produkt-ME i 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 vbws value check FM, simply by entering the name VBWS_VALUE_CHECK into the relevant SAP transaction such as SE37 or SE38.
Function Group: MWSO
Program Name: SAPLMWSO
Main Program:
Appliation area: M
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function VBWS_VALUE_CHECK 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 'VBWS_VALUE_CHECK'"NOTRANSL: Ermitteln Zähler/Nenner für die Umrechnung Anteils-/Produkt-ME i.
EXPORTING
I_VALUE = "DE-EN-LANG-SWITCH-NO-TRANSLATION
* I_MATNR = "Material Number
* I_ATINN = "DE-EN-LANG-SWITCH-NO-TRANSLATION
* I_MSEHI = "DE-EN-LANG-SWITCH-NO-TRANSLATION
* I_MEINH = "Proportion/Product Unit
* I_MEINS = "Base Unit of Measure
* I_ATWRT = "DE-EN-LANG-SWITCH-NO-TRANSLATION
* I_CHECK_UNIT_EXIST = "DE-EN-LANG-SWITCH-NO-TRANSLATION
* I_CHECK_USE_OF_UOM = 'X' "DE-EN-LANG-SWITCH-NO-TRANSLATION
IMPORTING
O_ZAEHLER = "DE-EN-LANG-SWITCH-NO-TRANSLATION
O_NENNER = "DE-EN-LANG-SWITCH-NO-TRANSLATION
O_CONV_NOT_LOGICAL = "DE-EN-LANG-SWITCH-NO-TRANSLATION
EXCEPTIONS
VALUE_NOT_VALID = 1 IMPROPER_INPUT_PARAMETERS = 2 NO_UNIT = 3 MATERIAL_NOT_FOUND = 4 CONVERSION_NOT_FOUND = 5 INPUT_LE_ZERO = 6 MSEHI_NOT_DEFINED = 7 MEINH_NOT_DEFINED = 8 CONVERSION_NOT_ALLOWED = 9
IMPORTING Parameters details for VBWS_VALUE_CHECK
I_VALUE - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type: FOptional: No
Call by Reference: No ( called with pass by value option)
I_MATNR - Material Number
Data type: MARA-MATNROptional: Yes
Call by Reference: No ( called with pass by value option)
I_ATINN - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type: MARM-ATINNOptional: Yes
Call by Reference: No ( called with pass by value option)
I_MSEHI - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type: MARM-MSEHIOptional: Yes
Call by Reference: No ( called with pass by value option)
I_MEINH - Proportion/Product Unit
Data type: MARM-MEINHOptional: Yes
Call by Reference: No ( called with pass by value option)
I_MEINS - Base Unit of Measure
Data type: MARA1-MEINSOptional: Yes
Call by Reference: No ( called with pass by value option)
I_ATWRT - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type: CONF_OUT-ATWRTOptional: Yes
Call by Reference: No ( called with pass by value option)
I_CHECK_UNIT_EXIST - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type: MWS_CHAR-XUSEDOptional: Yes
Call by Reference: No ( called with pass by value option)
I_CHECK_USE_OF_UOM - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type: MWS_CHAR-XUSEDDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for VBWS_VALUE_CHECK
O_ZAEHLER - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type: MARM-UMREZOptional: No
Call by Reference: Yes
O_NENNER - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type: MARM-UMRENOptional: No
Call by Reference: Yes
O_CONV_NOT_LOGICAL - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type: COptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
VALUE_NOT_VALID - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
IMPROPER_INPUT_PARAMETERS - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_UNIT - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
MATERIAL_NOT_FOUND - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
CONVERSION_NOT_FOUND - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
INPUT_LE_ZERO - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
MSEHI_NOT_DEFINED - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
MEINH_NOT_DEFINED - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
CONVERSION_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 VBWS_VALUE_CHECK 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_i_value | TYPE F, " | |||
| lv_o_zaehler | TYPE MARM-UMREZ, " | |||
| lv_value_not_valid | TYPE MARM, " | |||
| lv_i_matnr | TYPE MARA-MATNR, " | |||
| lv_o_nenner | TYPE MARM-UMREN, " | |||
| lv_improper_input_parameters | TYPE MARM, " | |||
| lv_i_atinn | TYPE MARM-ATINN, " | |||
| lv_no_unit | TYPE MARM, " | |||
| lv_o_conv_not_logical | TYPE C, " | |||
| lv_i_msehi | TYPE MARM-MSEHI, " | |||
| lv_material_not_found | TYPE MARM, " | |||
| lv_i_meinh | TYPE MARM-MEINH, " | |||
| lv_conversion_not_found | TYPE MARM, " | |||
| lv_i_meins | TYPE MARA1-MEINS, " | |||
| lv_input_le_zero | TYPE MARA1, " | |||
| lv_i_atwrt | TYPE CONF_OUT-ATWRT, " | |||
| lv_msehi_not_defined | TYPE CONF_OUT, " | |||
| lv_meinh_not_defined | TYPE CONF_OUT, " | |||
| lv_i_check_unit_exist | TYPE MWS_CHAR-XUSED, " | |||
| lv_i_check_use_of_uom | TYPE MWS_CHAR-XUSED, " 'X' | |||
| lv_conversion_not_allowed | TYPE MWS_CHAR. " |
|   CALL FUNCTION 'VBWS_VALUE_CHECK' "NOTRANSL: Ermitteln Zähler/Nenner für die Umrechnung Anteils-/Produkt-ME i |
| EXPORTING | ||
| I_VALUE | = lv_i_value | |
| I_MATNR | = lv_i_matnr | |
| I_ATINN | = lv_i_atinn | |
| I_MSEHI | = lv_i_msehi | |
| I_MEINH | = lv_i_meinh | |
| I_MEINS | = lv_i_meins | |
| I_ATWRT | = lv_i_atwrt | |
| I_CHECK_UNIT_EXIST | = lv_i_check_unit_exist | |
| I_CHECK_USE_OF_UOM | = lv_i_check_use_of_uom | |
| IMPORTING | ||
| O_ZAEHLER | = lv_o_zaehler | |
| O_NENNER | = lv_o_nenner | |
| O_CONV_NOT_LOGICAL | = lv_o_conv_not_logical | |
| EXCEPTIONS | ||
| VALUE_NOT_VALID = 1 | ||
| IMPROPER_INPUT_PARAMETERS = 2 | ||
| NO_UNIT = 3 | ||
| MATERIAL_NOT_FOUND = 4 | ||
| CONVERSION_NOT_FOUND = 5 | ||
| INPUT_LE_ZERO = 6 | ||
| MSEHI_NOT_DEFINED = 7 | ||
| MEINH_NOT_DEFINED = 8 | ||
| CONVERSION_NOT_ALLOWED = 9 | ||
| . " VBWS_VALUE_CHECK | ||
ABAP code using 7.40 inline data declarations to call FM VBWS_VALUE_CHECK
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 UMREZ FROM MARM INTO @DATA(ld_o_zaehler). | ||||
| "SELECT single MATNR FROM MARA INTO @DATA(ld_i_matnr). | ||||
| "SELECT single UMREN FROM MARM INTO @DATA(ld_o_nenner). | ||||
| "SELECT single ATINN FROM MARM INTO @DATA(ld_i_atinn). | ||||
| "SELECT single MSEHI FROM MARM INTO @DATA(ld_i_msehi). | ||||
| "SELECT single MEINH FROM MARM INTO @DATA(ld_i_meinh). | ||||
| "SELECT single MEINS FROM MARA1 INTO @DATA(ld_i_meins). | ||||
| "SELECT single ATWRT FROM CONF_OUT INTO @DATA(ld_i_atwrt). | ||||
| "SELECT single XUSED FROM MWS_CHAR INTO @DATA(ld_i_check_unit_exist). | ||||
| "SELECT single XUSED FROM MWS_CHAR INTO @DATA(ld_i_check_use_of_uom). | ||||
| DATA(ld_i_check_use_of_uom) | = 'X'. | |||
Search for further information about these or an SAP related objects