SAP MB_SELECT_MAT_CREATE_DOC_STD Function Module for NOTRANSL: Selektion von Materialien und Anlage von Inventurbelegen









MB_SELECT_MAT_CREATE_DOC_STD is a standard mb select mat create doc std 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: Selektion von Materialien und Anlage von Inventurbelegen 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 mb select mat create doc std FM, simply by entering the name MB_SELECT_MAT_CREATE_DOC_STD into the relevant SAP transaction such as SE37 or SE38.

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



Function MB_SELECT_MAT_CREATE_DOC_STD 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 'MB_SELECT_MAT_CREATE_DOC_STD'"NOTRANSL: Selektion von Materialien und Anlage von Inventurbelegen
EXPORTING
* P_S_MBIF_CONTROL = "Control Structure for Function Module for Simulation MI31

TABLES
P_T_PLANT_RA = "BAPI Communication Structure: Range for Plant
* P_T_VBELN_RA = "Communication Structure Range for Sales Document Number
* P_T_LIFNR_RA = "Communication Structure Range for Vendors
* P_T_KUNNR_RA = "Communication Structure Range for Customer/Debtor Number
* P_T_PSPNR_RA = "Communication Structure Range for WBS Element
* P_T_STGE_LOC_RA = "BAPI Communication Structure: Range for Storage Location
* P_T_MATERIAL_RA = "BAPI Communication Structure: Range for Material
* P_T_MATKL_RA = "BAPI Communication Structure: Range for Material Group
* P_T_MBIF_ITEM = "Item Structure for Function Modules Simulation MI31
* P_T_EISEG = "Import ISEG for FM physical inventory
* P_T_MBIF_SUMMARY = "Result of Simulation MI31
* P_T_LGPBE_RA = "Communication Structure Range for Storage Bin Description
* P_T_MTART_RA = "Communication Structure Range for Material Type

EXCEPTIONS
PARAMETER_ERROR = 1 SELECTION_ERROR = 2 NO_RECORD_FOUND = 3
.



IMPORTING Parameters details for MB_SELECT_MAT_CREATE_DOC_STD

P_S_MBIF_CONTROL - Control Structure for Function Module for Simulation MI31

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

TABLES Parameters details for MB_SELECT_MAT_CREATE_DOC_STD

P_T_PLANT_RA - BAPI Communication Structure: Range for Plant

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

P_T_VBELN_RA - Communication Structure Range for Sales Document Number

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

P_T_LIFNR_RA - Communication Structure Range for Vendors

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

P_T_KUNNR_RA - Communication Structure Range for Customer/Debtor Number

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

P_T_PSPNR_RA - Communication Structure Range for WBS Element

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

P_T_STGE_LOC_RA - BAPI Communication Structure: Range for Storage Location

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

P_T_MATERIAL_RA - BAPI Communication Structure: Range for Material

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

P_T_MATKL_RA - BAPI Communication Structure: Range for Material Group

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

P_T_MBIF_ITEM - Item Structure for Function Modules Simulation MI31

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

P_T_EISEG - Import ISEG for FM physical inventory

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

P_T_MBIF_SUMMARY - Result of Simulation MI31

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

P_T_LGPBE_RA - Communication Structure Range for Storage Bin Description

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

P_T_MTART_RA - Communication Structure Range for Material Type

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

EXCEPTIONS details

PARAMETER_ERROR -

Data type:
Optional: No
Call by Reference: Yes

SELECTION_ERROR - Error during data selection

Data type:
Optional: No
Call by Reference: Yes

NO_RECORD_FOUND - No Data Found

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for MB_SELECT_MAT_CREATE_DOC_STD 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:
lt_p_t_plant_ra  TYPE STANDARD TABLE OF BAPI_PHYSINV_PLANT_RA, "   
lv_parameter_error  TYPE BAPI_PHYSINV_PLANT_RA, "   
lv_p_s_mbif_control  TYPE MBIF_CONTROL, "   
lt_p_t_vbeln_ra  TYPE STANDARD TABLE OF MBIF_VBELN_RA, "   
lt_p_t_lifnr_ra  TYPE STANDARD TABLE OF MBIF_LIFNR_RA, "   
lt_p_t_kunnr_ra  TYPE STANDARD TABLE OF MBIF_KUNNR_RA, "   
lt_p_t_pspnr_ra  TYPE STANDARD TABLE OF MBIF_PSPNR_RA, "   
lt_p_t_stge_loc_ra  TYPE STANDARD TABLE OF BAPI_PHYSINV_STGE_LOC_RA, "   
lv_selection_error  TYPE BAPI_PHYSINV_STGE_LOC_RA, "   
lv_no_record_found  TYPE BAPI_PHYSINV_STGE_LOC_RA, "   
lt_p_t_material_ra  TYPE STANDARD TABLE OF BAPI_PHYSINV_MATERIAL_RA, "   
lt_p_t_matkl_ra  TYPE STANDARD TABLE OF BAPI_PHYSINV_MATL_GROUP_RA, "   
lt_p_t_mbif_item  TYPE STANDARD TABLE OF MBIF_ITEM, "   
lt_p_t_eiseg  TYPE STANDARD TABLE OF EISEG, "   
lt_p_t_mbif_summary  TYPE STANDARD TABLE OF MBIF_SUMMARY, "   
lt_p_t_lgpbe_ra  TYPE STANDARD TABLE OF MBIF_LGPBE_RA, "   
lt_p_t_mtart_ra  TYPE STANDARD TABLE OF MBIF_MTART_RA. "   

  CALL FUNCTION 'MB_SELECT_MAT_CREATE_DOC_STD'  "NOTRANSL: Selektion von Materialien und Anlage von Inventurbelegen
    EXPORTING
         P_S_MBIF_CONTROL = lv_p_s_mbif_control
    TABLES
         P_T_PLANT_RA = lt_p_t_plant_ra
         P_T_VBELN_RA = lt_p_t_vbeln_ra
         P_T_LIFNR_RA = lt_p_t_lifnr_ra
         P_T_KUNNR_RA = lt_p_t_kunnr_ra
         P_T_PSPNR_RA = lt_p_t_pspnr_ra
         P_T_STGE_LOC_RA = lt_p_t_stge_loc_ra
         P_T_MATERIAL_RA = lt_p_t_material_ra
         P_T_MATKL_RA = lt_p_t_matkl_ra
         P_T_MBIF_ITEM = lt_p_t_mbif_item
         P_T_EISEG = lt_p_t_eiseg
         P_T_MBIF_SUMMARY = lt_p_t_mbif_summary
         P_T_LGPBE_RA = lt_p_t_lgpbe_ra
         P_T_MTART_RA = lt_p_t_mtart_ra
    EXCEPTIONS
        PARAMETER_ERROR = 1
        SELECTION_ERROR = 2
        NO_RECORD_FOUND = 3
. " MB_SELECT_MAT_CREATE_DOC_STD




ABAP code using 7.40 inline data declarations to call FM MB_SELECT_MAT_CREATE_DOC_STD

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.

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 


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!