BAPI_MATERIAL_STOCK_REQ_LIST is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below are the pattern details for this FM showing its interface including any import, export parameters etc and for your convenience any standard documentation available. All this information and more can be viewed if you enter the function module name BAPI_MATERIAL_STOCK_REQ_LIST into the relevant SAP transaction such as SE37 or SE80. Within the comments section below there is also an opportunity for you to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name BAPI_MATERIAL_STOCK_REQ_LIST or its description. Pattern for FM BAPI_MATERIAL_STOCK_REQ_LIST - BAPI MATERIAL STOCK REQ LIST Associated Function Group: MRP1001 Released Date: 13.02.2004 CALL FUNCTION 'BAPI_MATERIAL_STOCK_REQ_LIST' "Material - Current Requirements/Stock List EXPORTING material = " bapi_mrp_mat_param-material Material Number * plant = " bapi_mrp_mat_param-plant Plant * mrp_area = " bapi_mrp_mat_param-mrp_area MRP Area * plan_scenario = " bapi_mrp_mat_param-plan_scenario Planning Scenario of Long-Term Planning * selection_rule = " bapi_mrp_list_param-selection_rule Selection Rule * display_filter = " bapi_mrp_list_param-display_filter Name of Display Filter * period_indicator = " bapi_mrp_list_param-period_indicator Internal Period Indicator * get_item_details = " bapi_mrp_list_param-get_item_details Indicator: Determination of Detail Display for MRP Elements * get_ind_lines = 'X' " bapi_mrp_list_param-get_ind_lines Indicator: Determination of Single-Line Display * get_total_lines = " bapi_mrp_list_param-get_total_lines Indicator: Determination of Period Totals Display * ignore_buffer = " bapi_mrp_list_param-ignore_buffer Indicator: Data Determination of Database (Not from Buffer) IMPORTING mrp_list = " bapi_mrp_list MRP: MRP List mrp_control_param = " bapi_mrp_control_param Material Requirements Planning: Control Parameters for Material mrp_stock_detail = " bapi_mrp_stock_detail MRP: Statistics Fields for Stocks return = " bapiret2 Return Parameters * TABLES * mrp_items = " bapi_mrp_items MRP: MRP Document Item * mrp_ind_lines = " bapi_mrp_ind_lines MRP: Single Lines of MRP Elements * mrp_total_lines = " bapi_mrp_total_lines MRP: Totals Line MRP Elements * extensionout = " bapiparex Reference Structure for BAPI Parameters EXTENSIONIN/EXTENSIONOUT . " BAPI_MATERIAL_STOCK_REQ_LIST SAP Documentation for FM BAPI_MATERIAL_STOCK_REQ_LIST FUNCTIONALITY You use this method to select the current stock/requirements list of a material. Depending on the control parameters of this method, the stock, requirements and receipt information for the material can be determined from the following planning environments: Stock/requirements list from operative planning: Material requirements planning Master production scheduling Stock/requirements list from long-term planning The method selects all relevant stock, requirement, and receipt information for the material from the required planning environment. As a result, the following is output: A list header of the main planning parameters for the material. This header has the same structure as the MRP list header. Details on all relevant MRP elements in the required formats The following formats are supported for the detailed output: Detailed Dispay of the MRP Elements The detailed display contains the planning-relevant parameters of all MRP elements that must be taken into account in the current planning environment. Single Line Display of the Requirements/Stock List (Presetting) The single line display contains the information of the single line display of the corresponding dialog transactions for the display of requirements/stock lists. Period Totals Display of the Requirements/Stock List The period totals display contains the information of the period totals display of the corresponding dialog transactions for the display of requirements/stock lists for the requested period. INCLUDE BAPI_RET OBJECT DOKU ID TX EXAMPLE HINTS Authorization Check MRP: Authorization object M_MTDI_ORG Activity Types in MRP (Field MDAKT) A - MRP/Master Production Scheduling: Display Requirements/Stock List Plant MRP controller ong-Term Plannning: Authorization object M_LFPL_ORG Activity Types in Long-Term Planning (field MDATL) the system carries out an availability check which can lead to an error message. If only the parameter Plant is filled.L4 . If the parameters Plant and MRP_Area are filled.L . storage location or subcontractor MRP area). you can specify either the parameter Plant or MRP_Area. the parameter Plant must be specified in addition to the parameter Material In systems with active MRP areas. the system determines an aggregated plant view from the following information: Stock. requirements and receipt information of the plant MRP area All storage location and subcontractor MRP areas for the material in the specified plant If only the parameter MRP_Area is transferred.Long-Term Planning: Display Requirements/Stock List Planning scenario Plant Parameter Dependencies In systems with inactive MRP areas. this method returns the current requirement/stock list of the specified MRP area (plant.