SAP META_MATERIAL_AVAILABILITY_BUF Function Module for Capsulate the buffering









META_MATERIAL_AVAILABILITY_BUF is a standard meta material availability buf SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Capsulate the buffering 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 meta material availability buf FM, simply by entering the name META_MATERIAL_AVAILABILITY_BUF into the relevant SAP transaction such as SE37 or SE38.

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



Function META_MATERIAL_AVAILABILITY_BUF 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 'META_MATERIAL_AVAILABILITY_BUF'"Capsulate the buffering
EXPORTING
PLANT = "Plant
MATERIAL = "Material number
UNIT = "Unit of measure for display
* CHECK_RULE = "Checking rule for the availability check
* STGE_LOC = "Storage location
* BATCH = "Batch number
* CUSTOMER = "Customer number
* LOGICAL_SYSTEM = "Logical system

IMPORTING
ENDLEADTME = "End of replenishment lead time
AV_QTY_PLT = "Quantity received or quantity required
DIALOGFLAG = "Single-character flag
RETURN = "Returnparameter

TABLES
WMDVSX = "Struktur für simulierte Bedarfe - ATP-Auskunft Internet
WMDVEX = "Ergebnis der Verfügbarkeitsprüfung - ATP-Auskunft Internet
* CONTROL_RECORD = "Steuersatz für META-BAPI-Steuerung
.



IMPORTING Parameters details for META_MATERIAL_AVAILABILITY_BUF

PLANT - Plant

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

MATERIAL - Material number

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

UNIT - Unit of measure for display

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

CHECK_RULE - Checking rule for the availability check

Data type: BAPIT441V-PRREG
Optional: Yes
Call by Reference: No ( called with pass by value option)

STGE_LOC - Storage location

Data type: BAPICM61V-LGORT
Optional: Yes
Call by Reference: No ( called with pass by value option)

BATCH - Batch number

Data type: BAPICM61V-CHARG
Optional: Yes
Call by Reference: No ( called with pass by value option)

CUSTOMER - Customer number

Data type: BAPIKNVVKY-CUSTOMER
Optional: Yes
Call by Reference: No ( called with pass by value option)

LOGICAL_SYSTEM - Logical system

Data type: BBP_BACKEND_DEST-LOG_SYS
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for META_MATERIAL_AVAILABILITY_BUF

ENDLEADTME - End of replenishment lead time

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

AV_QTY_PLT - Quantity received or quantity required

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

DIALOGFLAG - Single-character flag

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

RETURN - Returnparameter

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

TABLES Parameters details for META_MATERIAL_AVAILABILITY_BUF

WMDVSX - Struktur für simulierte Bedarfe - ATP-Auskunft Internet

Data type: BAPIWMDVS
Optional: No
Call by Reference: Yes

WMDVEX - Ergebnis der Verfügbarkeitsprüfung - ATP-Auskunft Internet

Data type: BAPIWMDVE
Optional: No
Call by Reference: Yes

CONTROL_RECORD - Steuersatz für META-BAPI-Steuerung

Data type: BBP_CONTROL_RECORD
Optional: Yes
Call by Reference: Yes

Copy and paste ABAP code example for META_MATERIAL_AVAILABILITY_BUF 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_plant  TYPE BAPIMATVP-WERKS, "   
lt_wmdvsx  TYPE STANDARD TABLE OF BAPIWMDVS, "   
lv_endleadtme  TYPE BAPICM61M-WZTER, "   
lt_wmdvex  TYPE STANDARD TABLE OF BAPIWMDVE, "   
lv_material  TYPE BAPIMATVP-MATNR, "   
lv_av_qty_plt  TYPE BAPICM61V-WKBST, "   
lv_unit  TYPE BAPIADMM-UNIT, "   
lv_dialogflag  TYPE BAPICM61V-DIAFL, "   
lt_control_record  TYPE STANDARD TABLE OF BBP_CONTROL_RECORD, "   
lv_return  TYPE BAPIRETURN, "   
lv_check_rule  TYPE BAPIT441V-PRREG, "   
lv_stge_loc  TYPE BAPICM61V-LGORT, "   
lv_batch  TYPE BAPICM61V-CHARG, "   
lv_customer  TYPE BAPIKNVVKY-CUSTOMER, "   
lv_logical_system  TYPE BBP_BACKEND_DEST-LOG_SYS. "   

  CALL FUNCTION 'META_MATERIAL_AVAILABILITY_BUF'  "Capsulate the buffering
    EXPORTING
         PLANT = lv_plant
         MATERIAL = lv_material
         UNIT = lv_unit
         CHECK_RULE = lv_check_rule
         STGE_LOC = lv_stge_loc
         BATCH = lv_batch
         CUSTOMER = lv_customer
         LOGICAL_SYSTEM = lv_logical_system
    IMPORTING
         ENDLEADTME = lv_endleadtme
         AV_QTY_PLT = lv_av_qty_plt
         DIALOGFLAG = lv_dialogflag
         RETURN = lv_return
    TABLES
         WMDVSX = lt_wmdvsx
         WMDVEX = lt_wmdvex
         CONTROL_RECORD = lt_control_record
. " META_MATERIAL_AVAILABILITY_BUF




ABAP code using 7.40 inline data declarations to call FM META_MATERIAL_AVAILABILITY_BUF

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 WERKS FROM BAPIMATVP INTO @DATA(ld_plant).
 
 
"SELECT single WZTER FROM BAPICM61M INTO @DATA(ld_endleadtme).
 
 
"SELECT single MATNR FROM BAPIMATVP INTO @DATA(ld_material).
 
"SELECT single WKBST FROM BAPICM61V INTO @DATA(ld_av_qty_plt).
 
"SELECT single UNIT FROM BAPIADMM INTO @DATA(ld_unit).
 
"SELECT single DIAFL FROM BAPICM61V INTO @DATA(ld_dialogflag).
 
 
 
"SELECT single PRREG FROM BAPIT441V INTO @DATA(ld_check_rule).
 
"SELECT single LGORT FROM BAPICM61V INTO @DATA(ld_stge_loc).
 
"SELECT single CHARG FROM BAPICM61V INTO @DATA(ld_batch).
 
"SELECT single CUSTOMER FROM BAPIKNVVKY INTO @DATA(ld_customer).
 
"SELECT single LOG_SYS FROM BBP_BACKEND_DEST INTO @DATA(ld_logical_system).
 


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!