SAP VBXU_APO_UOM_CONVERT Function Module for NOTRANSL: Konvertierung Basismenge in Anteils-/Produkt-Menge
VBXU_APO_UOM_CONVERT is a standard vbxu apo uom convert 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: Konvertierung Basismenge in Anteils-/Produkt-Menge 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 apo uom convert FM, simply by entering the name VBXU_APO_UOM_CONVERT 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_APO_UOM_CONVERT 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_APO_UOM_CONVERT'"NOTRANSL: Konvertierung Basismenge in Anteils-/Produkt-Menge.
EXPORTING
I_MATNR = "Material Number
* I_CHARG = "Batch Number
* I_WERKS = "Plant
I_R3_2_APO = "Checkbox
I_APO_2_R3 = "Checkbox
CHANGING
* C_MEINS = "Base Unit of Measure
* C_QUAN13_8 = "Converted Quantity - Proportion/Product Unit Planning in APO
* C_QUAN13_9 = "Converted Quantity - Proportion/Product Unit Planning in APO
* C_QUAN13_10 = "Converted Quantity - Proportion/Product Unit Planning in APO
* C_QUAN13_11 = "Converted Quantity - Proportion/Product Unit Planning in APO
* C_QUAN13_12 = "Converted Quantity - Proportion/Product Unit Planning in APO
* C_QUAN13_13 = "Converted Quantity - Proportion/Product Unit Planning in APO
* C_QUAN13_14 = "Converted Quantity - Proportion/Product Unit Planning in APO
* C_QUAN13_15 = "Converted Quantity - Proportion/Product Unit Planning in APO
* C_QUAN13_16 = "Converted Quantity - Proportion/Product Unit Planning in APO
* C_QUAN13_17 = "Converted Quantity - Proportion/Product Unit Planning in APO
* C_MEINS_ISO = "ISO Code for Unit
* C_QUAN13_18 = "Converted Quantity - Proportion/Product Unit Planning in APO
* C_QUAN13_19 = "Converted Quantity - Proportion/Product Unit Planning in APO
* C_QUAN13_20 = "Converted Quantity - Proportion/Product Unit Planning in APO
* C_QUAN13_21 = "Converted Quantity - Proportion/Product Unit Planning in APO
* C_QUAN13_22 = "Converted Quantity - Proportion/Product Unit Planning in APO
* C_QUAN13_23 = "Converted Quantity - Proportion/Product Unit Planning in APO
* C_QUAN13_24 = "Converted Quantity - Proportion/Product Unit Planning in APO
* C_QUAN13_25 = "Converted Quantity - Proportion/Product Unit Planning in APO
* C_QUAN15_1 = "Converted Quantity - Proportion/Product Unit Planning in APO
* C_QUAN15_2 = "Converted Quantity - Proportion/Product Unit Planning in APO
* C_QUAN13_1 = "Converted Quantity - Proportion/Product Unit Planning in APO
* C_QUAN15_3 = "Converted Quantity - Proportion/Product Unit Planning in APO
* C_QUAN15_4 = "Converted Quantity - Proportion/Product Unit Planning in APO
* C_QUAN15_5 = "Converted Quantity - Proportion/Product Unit Planning in APO
* C_QUAN15_6 = "Converted Quantity - Proportion/Product Unit Planning in APO
* C_QUAN15_7 = "Converted Quantity - Proportion/Product Unit Planning in APO
* C_QUAN15_8 = "Converted Quantity - Proportion/Product Unit Planning in APO
* C_QUAN15_9 = "Converted Quantity - Proportion/Product Unit Planning in APO
* C_QUAN15_10 = "Converted Quantity - Proportion/Product Unit Planning in APO
* C_QUAN15_11 = "Converted Quantity - Proportion/Product Unit Planning in APO
* C_QUAN15_12 = "Converted Quantity - Proportion/Product Unit Planning in APO
* C_QUAN13_2 = "Converted Quantity - Proportion/Product Unit Planning in APO
* C_QUAN13_3 = "Converted Quantity - Proportion/Product Unit Planning in APO
* C_QUAN13_4 = "Converted Quantity - Proportion/Product Unit Planning in APO
* C_QUAN13_5 = "Converted Quantity - Proportion/Product Unit Planning in APO
* C_QUAN13_6 = "Converted Quantity - Proportion/Product Unit Planning in APO
* C_QUAN13_7 = "Converted Quantity - Proportion/Product Unit Planning in APO
EXCEPTIONS
BATCH_SPEC_UOM_NOT_ACTIVE = 1
IMPORTING Parameters details for VBXU_APO_UOM_CONVERT
I_MATNR - Material Number
Data type: TCUWS_MAT_APO-MATNROptional: No
Call by Reference: No ( called with pass by value option)
I_CHARG - Batch Number
Data type: MCHA-CHARGOptional: Yes
Call by Reference: No ( called with pass by value option)
I_WERKS - Plant
Data type: MCHA-WERKSOptional: Yes
Call by Reference: No ( called with pass by value option)
I_R3_2_APO - Checkbox
Data type: XFELDOptional: No
Call by Reference: No ( called with pass by value option)
I_APO_2_R3 - Checkbox
Data type: XFELDOptional: No
Call by Reference: No ( called with pass by value option)
CHANGING Parameters details for VBXU_APO_UOM_CONVERT
C_MEINS - Base Unit of Measure
Data type: MARA-MEINSOptional: Yes
Call by Reference: Yes
C_QUAN13_8 - Converted Quantity - Proportion/Product Unit Planning in APO
Data type: VBWS_APO_QUAN13Optional: Yes
Call by Reference: Yes
C_QUAN13_9 - Converted Quantity - Proportion/Product Unit Planning in APO
Data type: VBWS_APO_QUAN13Optional: Yes
Call by Reference: Yes
C_QUAN13_10 - Converted Quantity - Proportion/Product Unit Planning in APO
Data type: VBWS_APO_QUAN13Optional: Yes
Call by Reference: Yes
C_QUAN13_11 - Converted Quantity - Proportion/Product Unit Planning in APO
Data type: VBWS_APO_QUAN13Optional: Yes
Call by Reference: Yes
C_QUAN13_12 - Converted Quantity - Proportion/Product Unit Planning in APO
Data type: VBWS_APO_QUAN13Optional: Yes
Call by Reference: Yes
C_QUAN13_13 - Converted Quantity - Proportion/Product Unit Planning in APO
Data type: VBWS_APO_QUAN13Optional: Yes
Call by Reference: Yes
C_QUAN13_14 - Converted Quantity - Proportion/Product Unit Planning in APO
Data type: VBWS_APO_QUAN13Optional: Yes
Call by Reference: Yes
C_QUAN13_15 - Converted Quantity - Proportion/Product Unit Planning in APO
Data type: VBWS_APO_QUAN13Optional: Yes
Call by Reference: Yes
C_QUAN13_16 - Converted Quantity - Proportion/Product Unit Planning in APO
Data type: VBWS_APO_QUAN13Optional: Yes
Call by Reference: Yes
C_QUAN13_17 - Converted Quantity - Proportion/Product Unit Planning in APO
Data type: VBWS_APO_QUAN13Optional: Yes
Call by Reference: Yes
C_MEINS_ISO - ISO Code for Unit
Data type: ISOCD_UNITOptional: Yes
Call by Reference: Yes
C_QUAN13_18 - Converted Quantity - Proportion/Product Unit Planning in APO
Data type: VBWS_APO_QUAN13Optional: Yes
Call by Reference: Yes
C_QUAN13_19 - Converted Quantity - Proportion/Product Unit Planning in APO
Data type: VBWS_APO_QUAN13Optional: Yes
Call by Reference: Yes
C_QUAN13_20 - Converted Quantity - Proportion/Product Unit Planning in APO
Data type: VBWS_APO_QUAN13Optional: Yes
Call by Reference: Yes
C_QUAN13_21 - Converted Quantity - Proportion/Product Unit Planning in APO
Data type: VBWS_APO_QUAN13Optional: Yes
Call by Reference: Yes
C_QUAN13_22 - Converted Quantity - Proportion/Product Unit Planning in APO
Data type: VBWS_APO_QUAN13Optional: Yes
Call by Reference: Yes
C_QUAN13_23 - Converted Quantity - Proportion/Product Unit Planning in APO
Data type: VBWS_APO_QUAN13Optional: Yes
Call by Reference: Yes
C_QUAN13_24 - Converted Quantity - Proportion/Product Unit Planning in APO
Data type: VBWS_APO_QUAN13Optional: Yes
Call by Reference: Yes
C_QUAN13_25 - Converted Quantity - Proportion/Product Unit Planning in APO
Data type: VBWS_APO_QUAN13Optional: Yes
Call by Reference: Yes
C_QUAN15_1 - Converted Quantity - Proportion/Product Unit Planning in APO
Data type: VBWS_APO_QUAN15Optional: Yes
Call by Reference: Yes
C_QUAN15_2 - Converted Quantity - Proportion/Product Unit Planning in APO
Data type: VBWS_APO_QUAN15Optional: Yes
Call by Reference: Yes
C_QUAN13_1 - Converted Quantity - Proportion/Product Unit Planning in APO
Data type: VBWS_APO_QUAN13Optional: Yes
Call by Reference: Yes
C_QUAN15_3 - Converted Quantity - Proportion/Product Unit Planning in APO
Data type: VBWS_APO_QUAN15Optional: Yes
Call by Reference: Yes
C_QUAN15_4 - Converted Quantity - Proportion/Product Unit Planning in APO
Data type: VBWS_APO_QUAN15Optional: Yes
Call by Reference: Yes
C_QUAN15_5 - Converted Quantity - Proportion/Product Unit Planning in APO
Data type: VBWS_APO_QUAN15Optional: Yes
Call by Reference: Yes
C_QUAN15_6 - Converted Quantity - Proportion/Product Unit Planning in APO
Data type: VBWS_APO_QUAN15Optional: Yes
Call by Reference: Yes
C_QUAN15_7 - Converted Quantity - Proportion/Product Unit Planning in APO
Data type: VBWS_APO_QUAN15Optional: Yes
Call by Reference: Yes
C_QUAN15_8 - Converted Quantity - Proportion/Product Unit Planning in APO
Data type: VBWS_APO_QUAN15Optional: Yes
Call by Reference: Yes
C_QUAN15_9 - Converted Quantity - Proportion/Product Unit Planning in APO
Data type: VBWS_APO_QUAN15Optional: Yes
Call by Reference: Yes
C_QUAN15_10 - Converted Quantity - Proportion/Product Unit Planning in APO
Data type: VBWS_APO_QUAN15Optional: Yes
Call by Reference: Yes
C_QUAN15_11 - Converted Quantity - Proportion/Product Unit Planning in APO
Data type: VBWS_APO_QUAN15Optional: Yes
Call by Reference: Yes
C_QUAN15_12 - Converted Quantity - Proportion/Product Unit Planning in APO
Data type: VBWS_APO_QUAN15Optional: Yes
Call by Reference: Yes
C_QUAN13_2 - Converted Quantity - Proportion/Product Unit Planning in APO
Data type: VBWS_APO_QUAN13Optional: Yes
Call by Reference: Yes
C_QUAN13_3 - Converted Quantity - Proportion/Product Unit Planning in APO
Data type: VBWS_APO_QUAN13Optional: Yes
Call by Reference: Yes
C_QUAN13_4 - Converted Quantity - Proportion/Product Unit Planning in APO
Data type: VBWS_APO_QUAN13Optional: Yes
Call by Reference: Yes
C_QUAN13_5 - Converted Quantity - Proportion/Product Unit Planning in APO
Data type: VBWS_APO_QUAN13Optional: Yes
Call by Reference: Yes
C_QUAN13_6 - Converted Quantity - Proportion/Product Unit Planning in APO
Data type: VBWS_APO_QUAN13Optional: Yes
Call by Reference: Yes
C_QUAN13_7 - Converted Quantity - Proportion/Product Unit Planning in APO
Data type: VBWS_APO_QUAN13Optional: Yes
Call by Reference: Yes
EXCEPTIONS details
BATCH_SPEC_UOM_NOT_ACTIVE -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for VBXU_APO_UOM_CONVERT 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_c_meins | TYPE MARA-MEINS, " | |||
| lv_i_matnr | TYPE TCUWS_MAT_APO-MATNR, " | |||
| lv_batch_spec_uom_not_active | TYPE TCUWS_MAT_APO, " | |||
| lv_c_quan13_8 | TYPE VBWS_APO_QUAN13, " | |||
| lv_c_quan13_9 | TYPE VBWS_APO_QUAN13, " | |||
| lv_c_quan13_10 | TYPE VBWS_APO_QUAN13, " | |||
| lv_c_quan13_11 | TYPE VBWS_APO_QUAN13, " | |||
| lv_c_quan13_12 | TYPE VBWS_APO_QUAN13, " | |||
| lv_c_quan13_13 | TYPE VBWS_APO_QUAN13, " | |||
| lv_c_quan13_14 | TYPE VBWS_APO_QUAN13, " | |||
| lv_c_quan13_15 | TYPE VBWS_APO_QUAN13, " | |||
| lv_c_quan13_16 | TYPE VBWS_APO_QUAN13, " | |||
| lv_c_quan13_17 | TYPE VBWS_APO_QUAN13, " | |||
| lv_i_charg | TYPE MCHA-CHARG, " | |||
| lv_c_meins_iso | TYPE ISOCD_UNIT, " | |||
| lv_c_quan13_18 | TYPE VBWS_APO_QUAN13, " | |||
| lv_c_quan13_19 | TYPE VBWS_APO_QUAN13, " | |||
| lv_c_quan13_20 | TYPE VBWS_APO_QUAN13, " | |||
| lv_c_quan13_21 | TYPE VBWS_APO_QUAN13, " | |||
| lv_c_quan13_22 | TYPE VBWS_APO_QUAN13, " | |||
| lv_c_quan13_23 | TYPE VBWS_APO_QUAN13, " | |||
| lv_c_quan13_24 | TYPE VBWS_APO_QUAN13, " | |||
| lv_c_quan13_25 | TYPE VBWS_APO_QUAN13, " | |||
| lv_c_quan15_1 | TYPE VBWS_APO_QUAN15, " | |||
| lv_c_quan15_2 | TYPE VBWS_APO_QUAN15, " | |||
| lv_i_werks | TYPE MCHA-WERKS, " | |||
| lv_c_quan13_1 | TYPE VBWS_APO_QUAN13, " | |||
| lv_c_quan15_3 | TYPE VBWS_APO_QUAN15, " | |||
| lv_c_quan15_4 | TYPE VBWS_APO_QUAN15, " | |||
| lv_c_quan15_5 | TYPE VBWS_APO_QUAN15, " | |||
| lv_c_quan15_6 | TYPE VBWS_APO_QUAN15, " | |||
| lv_c_quan15_7 | TYPE VBWS_APO_QUAN15, " | |||
| lv_c_quan15_8 | TYPE VBWS_APO_QUAN15, " | |||
| lv_c_quan15_9 | TYPE VBWS_APO_QUAN15, " | |||
| lv_c_quan15_10 | TYPE VBWS_APO_QUAN15, " | |||
| lv_c_quan15_11 | TYPE VBWS_APO_QUAN15, " | |||
| lv_c_quan15_12 | TYPE VBWS_APO_QUAN15, " | |||
| lv_c_quan13_2 | TYPE VBWS_APO_QUAN13, " | |||
| lv_i_r3_2_apo | TYPE XFELD, " | |||
| lv_c_quan13_3 | TYPE VBWS_APO_QUAN13, " | |||
| lv_i_apo_2_r3 | TYPE XFELD, " | |||
| lv_c_quan13_4 | TYPE VBWS_APO_QUAN13, " | |||
| lv_c_quan13_5 | TYPE VBWS_APO_QUAN13, " | |||
| lv_c_quan13_6 | TYPE VBWS_APO_QUAN13, " | |||
| lv_c_quan13_7 | TYPE VBWS_APO_QUAN13. " |
|   CALL FUNCTION 'VBXU_APO_UOM_CONVERT' "NOTRANSL: Konvertierung Basismenge in Anteils-/Produkt-Menge |
| EXPORTING | ||
| I_MATNR | = lv_i_matnr | |
| I_CHARG | = lv_i_charg | |
| I_WERKS | = lv_i_werks | |
| I_R3_2_APO | = lv_i_r3_2_apo | |
| I_APO_2_R3 | = lv_i_apo_2_r3 | |
| CHANGING | ||
| C_MEINS | = lv_c_meins | |
| C_QUAN13_8 | = lv_c_quan13_8 | |
| C_QUAN13_9 | = lv_c_quan13_9 | |
| C_QUAN13_10 | = lv_c_quan13_10 | |
| C_QUAN13_11 | = lv_c_quan13_11 | |
| C_QUAN13_12 | = lv_c_quan13_12 | |
| C_QUAN13_13 | = lv_c_quan13_13 | |
| C_QUAN13_14 | = lv_c_quan13_14 | |
| C_QUAN13_15 | = lv_c_quan13_15 | |
| C_QUAN13_16 | = lv_c_quan13_16 | |
| C_QUAN13_17 | = lv_c_quan13_17 | |
| C_MEINS_ISO | = lv_c_meins_iso | |
| C_QUAN13_18 | = lv_c_quan13_18 | |
| C_QUAN13_19 | = lv_c_quan13_19 | |
| C_QUAN13_20 | = lv_c_quan13_20 | |
| C_QUAN13_21 | = lv_c_quan13_21 | |
| C_QUAN13_22 | = lv_c_quan13_22 | |
| C_QUAN13_23 | = lv_c_quan13_23 | |
| C_QUAN13_24 | = lv_c_quan13_24 | |
| C_QUAN13_25 | = lv_c_quan13_25 | |
| C_QUAN15_1 | = lv_c_quan15_1 | |
| C_QUAN15_2 | = lv_c_quan15_2 | |
| C_QUAN13_1 | = lv_c_quan13_1 | |
| C_QUAN15_3 | = lv_c_quan15_3 | |
| C_QUAN15_4 | = lv_c_quan15_4 | |
| C_QUAN15_5 | = lv_c_quan15_5 | |
| C_QUAN15_6 | = lv_c_quan15_6 | |
| C_QUAN15_7 | = lv_c_quan15_7 | |
| C_QUAN15_8 | = lv_c_quan15_8 | |
| C_QUAN15_9 | = lv_c_quan15_9 | |
| C_QUAN15_10 | = lv_c_quan15_10 | |
| C_QUAN15_11 | = lv_c_quan15_11 | |
| C_QUAN15_12 | = lv_c_quan15_12 | |
| C_QUAN13_2 | = lv_c_quan13_2 | |
| C_QUAN13_3 | = lv_c_quan13_3 | |
| C_QUAN13_4 | = lv_c_quan13_4 | |
| C_QUAN13_5 | = lv_c_quan13_5 | |
| C_QUAN13_6 | = lv_c_quan13_6 | |
| C_QUAN13_7 | = lv_c_quan13_7 | |
| EXCEPTIONS | ||
| BATCH_SPEC_UOM_NOT_ACTIVE = 1 | ||
| . " VBXU_APO_UOM_CONVERT | ||
ABAP code using 7.40 inline data declarations to call FM VBXU_APO_UOM_CONVERT
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 MARA INTO @DATA(ld_c_meins). | ||||
| "SELECT single MATNR FROM TCUWS_MAT_APO INTO @DATA(ld_i_matnr). | ||||
| "SELECT single CHARG FROM MCHA INTO @DATA(ld_i_charg). | ||||
| "SELECT single WERKS FROM MCHA INTO @DATA(ld_i_werks). | ||||
Search for further information about these or an SAP related objects