SAP VBXU_MATERIAL_UOM_APO_CHECK Function Module for NOTRANSL: Prüfung ob Material im APO in Anteils-/Produkt-ME geplant wird
VBXU_MATERIAL_UOM_APO_CHECK is a standard vbxu material uom apo 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: Prüfung ob Material im APO in Anteils-/Produkt-ME geplant wird 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 vbxu material uom apo check FM, simply by entering the name VBXU_MATERIAL_UOM_APO_CHECK into the relevant SAP transaction such as SE37 or SE38.
Function Group: VBXU
Program Name: SAPLVBXU
Main Program:
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function VBXU_MATERIAL_UOM_APO_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 'VBXU_MATERIAL_UOM_APO_CHECK'"NOTRANSL: Prüfung ob Material im APO in Anteils-/Produkt-ME geplant wird.
EXPORTING
I_MATNR = "Material number, without search help
IMPORTING
E_BATCH_SPEC_UOM_ACTIVE = "Checkbox
E_MEINS = "Base Unit of Measure
E_MEINS_ISO = "ISO Code for Unit
E_WSMEI = "Batch-specific matl unit of measure (proportion/prod. unit)
E_WSMEI_ISO = "ISO Code for Unit
EXCEPTIONS
NO_MATERIAL = 1 BATCH_SPEC_UOM_NOT_ACTIVE = 2
IMPORTING Parameters details for VBXU_MATERIAL_UOM_APO_CHECK
I_MATNR - Material number, without search help
Data type: MATNR_DOptional: No
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for VBXU_MATERIAL_UOM_APO_CHECK
E_BATCH_SPEC_UOM_ACTIVE - Checkbox
Data type: XFELDOptional: No
Call by Reference: No ( called with pass by value option)
E_MEINS - Base Unit of Measure
Data type: TCUWS_MAT_APO-MEINSOptional: No
Call by Reference: No ( called with pass by value option)
E_MEINS_ISO - ISO Code for Unit
Data type: TCUWS_MAT_APO-MEINS_ISOOptional: No
Call by Reference: No ( called with pass by value option)
E_WSMEI - Batch-specific matl unit of measure (proportion/prod. unit)
Data type: TCUWS_MAT_APO-WSMEIOptional: No
Call by Reference: No ( called with pass by value option)
E_WSMEI_ISO - ISO Code for Unit
Data type: TCUWS_MAT_APO-WSMEI_ISOOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
NO_MATERIAL -
Data type:Optional: No
Call by Reference: Yes
BATCH_SPEC_UOM_NOT_ACTIVE -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for VBXU_MATERIAL_UOM_APO_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_matnr | TYPE MATNR_D, " | |||
| lv_no_material | TYPE MATNR_D, " | |||
| lv_e_batch_spec_uom_active | TYPE XFELD, " | |||
| lv_e_meins | TYPE TCUWS_MAT_APO-MEINS, " | |||
| lv_batch_spec_uom_not_active | TYPE TCUWS_MAT_APO, " | |||
| lv_e_meins_iso | TYPE TCUWS_MAT_APO-MEINS_ISO, " | |||
| lv_e_wsmei | TYPE TCUWS_MAT_APO-WSMEI, " | |||
| lv_e_wsmei_iso | TYPE TCUWS_MAT_APO-WSMEI_ISO. " |
|   CALL FUNCTION 'VBXU_MATERIAL_UOM_APO_CHECK' "NOTRANSL: Prüfung ob Material im APO in Anteils-/Produkt-ME geplant wird |
| EXPORTING | ||
| I_MATNR | = lv_i_matnr | |
| IMPORTING | ||
| E_BATCH_SPEC_UOM_ACTIVE | = lv_e_batch_spec_uom_active | |
| E_MEINS | = lv_e_meins | |
| E_MEINS_ISO | = lv_e_meins_iso | |
| E_WSMEI | = lv_e_wsmei | |
| E_WSMEI_ISO | = lv_e_wsmei_iso | |
| EXCEPTIONS | ||
| NO_MATERIAL = 1 | ||
| BATCH_SPEC_UOM_NOT_ACTIVE = 2 | ||
| . " VBXU_MATERIAL_UOM_APO_CHECK | ||
ABAP code using 7.40 inline data declarations to call FM VBXU_MATERIAL_UOM_APO_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 MEINS FROM TCUWS_MAT_APO INTO @DATA(ld_e_meins). | ||||
| "SELECT single MEINS_ISO FROM TCUWS_MAT_APO INTO @DATA(ld_e_meins_iso). | ||||
| "SELECT single WSMEI FROM TCUWS_MAT_APO INTO @DATA(ld_e_wsmei). | ||||
| "SELECT single WSMEI_ISO FROM TCUWS_MAT_APO INTO @DATA(ld_e_wsmei_iso). | ||||
Search for further information about these or an SAP related objects