Fonction SAP BAPI_MATERIAL_MRP_LIST - Material - MRP List

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
DISPLAY_FILTER BAPI_MRP_LIST_PARAM-DISPLAY_FILTER C 8 X Name of Display Filter
DISPLAY_TO BAPI_MRP_LIST_PARAM-DISPLAY_TO I 4 X Period After Today's Date
GET_IND_LINES BAPI_MRP_LIST_PARAM-GET_IND_LINES C 1 'X' X Indicator: Determination of Single-Line Display
GET_ITEM_DETAILS BAPI_MRP_LIST_PARAM-GET_ITEM_DETAILS C 1 X Indicator: Determination of Detail Display for MRP Elements
GET_TOTAL_LINES BAPI_MRP_LIST_PARAM-GET_TOTAL_LINES C 1 X Indicator: Determination of Period Totals Display
MATERIAL BAPI_MRP_MAT_PARAM-MATERIAL C 18 Material Number
MATERIAL_EVG BAPIMGVMATNR u 82 X
MRP_AREA BAPI_MRP_MAT_PARAM-MRP_AREA C 10 X MRP Area
PERIOD_INDICATOR BAPI_MRP_LIST_PARAM-PERIOD_INDICATOR C 1 X Internal Period Indicator
PLANT BAPI_MRP_MAT_PARAM-PLANT C 4 X Plant
PLAN_SCENARIO BAPI_MRP_MAT_PARAM-PLAN_SCENARIO N 3 X Planning Scenario of Long-Term Planning
VENDOR_NO BAPI_MRP_LIST_PARAM-VENDOR_NO C 10 X Vendor Key

Paramètre Reférence Type Long. Description
MRP_LIST BAPI_MRP_LIST u 675 MRP: MRP List
RETURN BAPIRET2 u 548 Return Parameters

Paramètre Reférence Long. Facultatif Description
EXTENSIONOUT BAPIPAREX 990 X Reference Structure for BAPI Parameters EXTENSIONIN/EXTENSIONOUT
MRP_IND_LINES BAPI_MRP_IND_LINES 588 X MRP: Single Lines of MRP Elements
MRP_ITEMS BAPI_MRP_ITEMS 952 X MRP: MRP Document Item
MRP_TOTAL_LINES BAPI_MRP_TOTAL_LINES 372 X MRP: Totals Line MRP Elements

Functionality
You can use this method to select the MRP list of a material.
Depending on the control parameters of this method, the followingMRP lists for the material can be determined:

  • MRP list for operative planning:

  • Requirements planning
    Master production scheduling
    • MRP lists for long-term planning

    • The method selects the specified MRP list and displays the details(lines in the MRP list) beside theheader of the MRP list in the desired display type.
      The following display types are supported for the detailed output:
      • Detailed display of the MRP elements

      • The detailed display includes all planning-relevant parametersfor all MRP elements that were considered during the last planning.
        • Individual line display for the MRP list (default setting)

        • The individual line display contains the information related to theindividual line display of the corresponding dialog transactions forthe display of MRP lists.
          • Period totals display for the MRP list

          • The period totals display contains the information related to theperiod totals display of the corresponding dialog transactionsfor the display of MRP lists for the required periodization.
            INCLUDE BAPI_RET OBJECT DOKU ID TX

            Notes

            Authorization checks

            • Requirements planning: Authorization object

            • M_MTDI_ORG
              Activity types in requirements planning (field MDAKT)
              L - Requirements Planning/Master Production Scheduling: DisplayMRP list
              Plant
              MRP controller
              • Long-term planning: Authorization object
              • M_LFPL_ORG
                Activity types in long-term planning (field MDATL)
                L5 - Long-Term Planning: Display MRP List
                Planning scenario
                Plant

                Parameter dependencies

                • In systems with MRP areas that are not active, the parameter
                • Plant must be entered in addition to the parameterMaterial.
                  • In systems with active MRP areas, the parameters
                  • Plant and MRP_Area can be entered as required.
                    • If only the parameter Plant is filled, the MRP list of the
                    • plant MRP area for the material is selected.
                      • If only the parameter MRP_Area is transferred, this method
                      • delivers the MRP list of the specified MRP area.
                        • If the parameters Plant and MRP_Area are filled, a
                        • compatability check is performed, which means that a correspondingerror message may be output, if necessary.
                          • The parameter Vendor_No should only be used in conjunction with
                          • a display filter Display_Filter. By filling both parameters, theresults of the MRP list can be restricted to the MRP elements of asingle vendor.
                            • The parameter Display_To should only be used in conjunction
                            • with a display filter Display_Filter. By filling both parameters,the results of the MRP list can be restricted to the MRP elementswithin a specified display horizon.

                              Other methods:

                              • Selection of current requirements list/stock list for a material:
                              • Material.GetStockRequirementsList
                                • Planning for a material:
                                • Material.MaterialRequirementsPlanning
                                  INCLUDE BAPI_CUST1 OBJECT DOKU ID TX
                                  INCLUDE BAPI_CUST_OUT OBJECT DOKU ID TX
                                  INCLUDE BAPI_INFO1 OBJECT DOKU ID TX
                                  INCLUDE BAPI_INFO2 OBJECT DOKU ID TX

                                  Description
                                  This parameter contains the information from the MRP ListHeader of the material.
                                  INCLUDE BAPI_DATAELEMENT OBJECT DOKU ID TX

                                  Description
                                  INCLUDE BAPI_RETURN OBJECT DOKU ID TX

                                  Value range
                                  Type ID Number Message
                                  E 61 400 No authorization for & in plant & and MRP controller &
                                  E 61 405 No authorization for & and planning scenario & in plant &
                                  Type ID Number Message
                                  E 61 509 Please enter a material
                                  E 61 275 Material & does not exist
                                  E MD 327 Enter a plant
                                  E 61 272 Plant '&1' does not exist
                                  E MD 320 Enter plant or MRP area
                                  E MD 318 MRP area &1 has not been defined
                                  E MD 317 MRP area &1 is not defined in plant &2
                                  E MD 109 Planning scenario & does not exist
                                  E MD 051 Display filter & does not exist
                                  E 06 101 Vendor & not created
                                  Type ID Number Message
                                  S MD 052 MRP list for material & & & has been created
                                  E 61 088 No MRP list exists

                                  Description
                                  INCLUDE MD03_BAPI_DISPLAY_FILTER OBJECT DOKU ID TX

                                  Description
                                  For information on the selection period see the data elementdocumentation: Time period after today's date
                                  INCLUDE MD03_BAPI_GET_IND_LINES OBJECT DOKU ID TX
                                  INCLUDE MD03_BAPI_GET_ITEM_DETAILS OBJECT DOKU ID TX
                                  INCLUDE MD03_BAPI_GET_TOTAL_LINES OBJECT DOKU ID TX

                                  Description
                                  INCLUDE MD03_BAPI_MATERIAL OBJECT DOKU ID TX

                                  Description
                                  Parameter for the long material number
                                  This parameter can be used to transfer long material numbers. Thesenumbers can be up to 40 characters long.
                                  To be able to use this parameter you must activate the switch for thebusiness function LAMA (long material number) in the system.
                                  The business function LAMA is available as a component of the businessfunction set for DIMP.

                                  Value range
                                  None

                                  Default
                                  None

                                  Description
                                  INCLUDE MD03_BAPI_MRP_AREA OBJECT DOKU ID TX
                                  INCLUDE MD03_BAPI_PERIOD_INDICATOR OBJECT DOKU ID TX

                                  Description
                                  INCLUDE MD03_BAPI_PLANT OBJECT DOKU ID TX

                                  Description
                                  INCLUDE MD03_BAPI_PLAN_SCENARIO OBJECT DOKU ID TX

                                  Description
                                  For information on the vendor key, see the data element documentation:Vendor Key

                                  Description
                                  INCLUDE BAPI_EXTOUT OBJECT DOKU ID TX
                                  INCLUDE MD03_BAPI_IND_LINES OBJECT DOKU ID TX
                                  INCLUDE MD03_BAPI_MRP_ITEMS OBJECT DOKU ID TX
                                  INCLUDE MD03_BAPI_TOTAL_LINES OBJECT DOKU ID TX