SAP VBXC_MATERIAL_APO_UOM_MAINTAIN Function Module for NOTRANSL: Für Material chargenspezifische ME Planung für APO pflegen









VBXC_MATERIAL_APO_UOM_MAINTAIN is a standard vbxc material apo uom maintain 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: Für Material chargenspezifische ME Planung für APO pflegen 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 vbxc material apo uom maintain FM, simply by entering the name VBXC_MATERIAL_APO_UOM_MAINTAIN into the relevant SAP transaction such as SE37 or SE38.

Function Group: VBXC
Program Name: SAPLVBXC
Main Program:
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function VBXC_MATERIAL_APO_UOM_MAINTAIN 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 'VBXC_MATERIAL_APO_UOM_MAINTAIN'"NOTRANSL: Für Material chargenspezifische ME Planung für APO pflegen
EXPORTING
I_MATNR = "View
I_KZDWS_MAT_APO = "Material for Batch-Specific UoM Planning in APO Is Active
I_DB_UPDATE = "Checkbox
I_MAT_UPDATE = "Checkbox

IMPORTING
E_NO_CHANGES = "Checkbox
E_INSERTED = "Checkbox
E_UPDATED = "Checkbox
E_UPD_NOT_ALLOWED = "Checkbox
ES_APO_MAT = "Maintenance-Relev. Fields for Active Ingrd. Planned Mats APO

EXCEPTIONS
NO_MATERIAL = 1 BASEUOM_MISSING = 2 WRONG_KZDWS = 3 MATERIAL_NOT_FOUND = 4 MATERIAL_NO_BATCH_SPECIFIC_UOM = 5 MATERIAL_NO_LEADING_UOM = 6 ISO_CODE_MISSING = 7 ERROR_DURING_DB_UPDATE = 8
.



IMPORTING Parameters details for VBXC_MATERIAL_APO_UOM_MAINTAIN

I_MATNR - View

Data type: MARA-MATNR
Optional: No
Call by Reference: No ( called with pass by value option)

I_KZDWS_MAT_APO - Material for Batch-Specific UoM Planning in APO Is Active

Data type: TCUWS_MAT_APO-KZDWS_MAT_APO
Optional: No
Call by Reference: No ( called with pass by value option)

I_DB_UPDATE - Checkbox

Data type: XFELD
Optional: No
Call by Reference: No ( called with pass by value option)

I_MAT_UPDATE - Checkbox

Data type: XFELD
Optional: No
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for VBXC_MATERIAL_APO_UOM_MAINTAIN

E_NO_CHANGES - Checkbox

Data type: XFELD
Optional: No
Call by Reference: No ( called with pass by value option)

E_INSERTED - Checkbox

Data type: XFELD
Optional: No
Call by Reference: No ( called with pass by value option)

E_UPDATED - Checkbox

Data type: XFELD
Optional: No
Call by Reference: No ( called with pass by value option)

E_UPD_NOT_ALLOWED - Checkbox

Data type: XFELD
Optional: No
Call by Reference: No ( called with pass by value option)

ES_APO_MAT - Maintenance-Relev. Fields for Active Ingrd. Planned Mats APO

Data type: VBWS_APO_MAT
Optional: No
Call by Reference: No ( called with pass by value option)

EXCEPTIONS details

NO_MATERIAL -

Data type:
Optional: No
Call by Reference: Yes

BASEUOM_MISSING -

Data type:
Optional: No
Call by Reference: Yes

WRONG_KZDWS -

Data type:
Optional: No
Call by Reference: Yes

MATERIAL_NOT_FOUND -

Data type:
Optional: No
Call by Reference: Yes

MATERIAL_NO_BATCH_SPECIFIC_UOM -

Data type:
Optional: No
Call by Reference: Yes

MATERIAL_NO_LEADING_UOM -

Data type:
Optional: No
Call by Reference: Yes

ISO_CODE_MISSING -

Data type:
Optional: No
Call by Reference: Yes

ERROR_DURING_DB_UPDATE -

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for VBXC_MATERIAL_APO_UOM_MAINTAIN 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 MARA-MATNR, "   
lv_no_material  TYPE MARA, "   
lv_e_no_changes  TYPE XFELD, "   
lv_e_inserted  TYPE XFELD, "   
lv_baseuom_missing  TYPE XFELD, "   
lv_i_kzdws_mat_apo  TYPE TCUWS_MAT_APO-KZDWS_MAT_APO, "   
lv_e_updated  TYPE XFELD, "   
lv_i_db_update  TYPE XFELD, "   
lv_wrong_kzdws  TYPE XFELD, "   
lv_i_mat_update  TYPE XFELD, "   
lv_e_upd_not_allowed  TYPE XFELD, "   
lv_material_not_found  TYPE XFELD, "   
lv_es_apo_mat  TYPE VBWS_APO_MAT, "   
lv_material_no_batch_specific_uom  TYPE VBWS_APO_MAT, "   
lv_material_no_leading_uom  TYPE VBWS_APO_MAT, "   
lv_iso_code_missing  TYPE VBWS_APO_MAT, "   
lv_error_during_db_update  TYPE VBWS_APO_MAT. "   

  CALL FUNCTION 'VBXC_MATERIAL_APO_UOM_MAINTAIN'  "NOTRANSL: Für Material chargenspezifische ME Planung für APO pflegen
    EXPORTING
         I_MATNR = lv_i_matnr
         I_KZDWS_MAT_APO = lv_i_kzdws_mat_apo
         I_DB_UPDATE = lv_i_db_update
         I_MAT_UPDATE = lv_i_mat_update
    IMPORTING
         E_NO_CHANGES = lv_e_no_changes
         E_INSERTED = lv_e_inserted
         E_UPDATED = lv_e_updated
         E_UPD_NOT_ALLOWED = lv_e_upd_not_allowed
         ES_APO_MAT = lv_es_apo_mat
    EXCEPTIONS
        NO_MATERIAL = 1
        BASEUOM_MISSING = 2
        WRONG_KZDWS = 3
        MATERIAL_NOT_FOUND = 4
        MATERIAL_NO_BATCH_SPECIFIC_UOM = 5
        MATERIAL_NO_LEADING_UOM = 6
        ISO_CODE_MISSING = 7
        ERROR_DURING_DB_UPDATE = 8
. " VBXC_MATERIAL_APO_UOM_MAINTAIN




ABAP code using 7.40 inline data declarations to call FM VBXC_MATERIAL_APO_UOM_MAINTAIN

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 MATNR FROM MARA INTO @DATA(ld_i_matnr).
 
 
 
 
 
"SELECT single KZDWS_MAT_APO FROM TCUWS_MAT_APO INTO @DATA(ld_i_kzdws_mat_apo).
 
 
 
 
 
 
 
 
 
 
 
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!