Fonction SAP BAPI_MATERIAL_PLANNING - Material - Single-Item Planning Single/Multilevel

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
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
MRP_PLAN_PARAM BAPI_MRP_PLAN_PARAM u 18 X MRP: Planning Parameters
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

Paramètre Reférence Type Long. Description
MRP_STATISTIC BAPI_MRP_STATISTIC u 188 MRP: Planning Statistics
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_LISTS BAPI_MRP_LIST 675 X MRP: MRP List

Functionality
You can use this method to perform a requirements planning for amaterial.
Depending on the properties of the material and the control parametersof the method, the following planning functions are supported:

  • Single- and multi-level single-item planning for requirements planning
  • materials
    • Single- and multi-level single-item planning for master schedule items

    • Single- and multi-level single-item planning for materials in the
    • long-term planning
      The method executes the respective planning function in the system andreturns a list of all the planned materials. The list contains thefundamental basic planning parameters (exception messages, ranges ofcoverage, and so on) for each planned material.

      Notes

      Authorization check

      • Requirements and master schedule item planning: authorization object
      • M_MTDI_ORG
        Activity tyes of the requirements planning (MDAKT field)
        M - Requirements planning: Single-level single line itemplanning
        E - Requirements planning: Multi-level single line itemplanning
        Y - Master schedule line-item planning: Single-levelsingle line item planning
        Z - Master schedule line-item planning: Multi-levelsingle line item planning
        Plant
        MRP
        • Long-term planning: Authorization object M_LFPL_ORG

        • Activity types of the long-term planning (MDATL field)
          L2 - Long-term planning: Multi-level single line item planning
          L3 - Long-term planning: Single-level single line item planning
          Planning scenario
          Plant

          COMMIT control
          For the single- and multi-level planning, the planning results areposted by materials. The COMMIT WORK command is executed afterevery planned material.

          Parameter dependencies

          • In systems with inactive MRP areas, you must specify the plant
          • parameter as well as the material parameter.
            • In systems with active MRP areas, you can specify the plant and
            • MRP_Area parameters as you choose.
              • If only the Plant parameter is filled, then the material is
              • planned in the plant MRP area. If only the MRP_Area istransferred, then the planning is carried out in the specified MRP area.If both parameters are filled, then a compatibility test is performed,which can lead to a corresponding error message.

                Additional methods
                To select the detailed planning results of the planned materials, youcan use the following methods:

                • Material.GetMRPList

                • Material.GetStockRequirementsList

                • 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 structure contains specifications related to the databaseand runtime statistic of material planning.
                  The parameter NO_MATERIAL contains the number of plannedmaterials.
                  The parameters in the form NO_

                  _<(>
                  <<)>INS|UPD|DEL|LOG> contain information about the number oftimes the database was accessed.
                  The following tables may have been accessed:
                  • Table PLAF: Planned orders

                  • Table EBAN: Purchase requisitions

                  • Table RESB: Dependent requirements, dependent reservations,
                  • stock transfer reservations
                    • Tabelle MDSM: Simulated dependent requirements

                    • View MDLP: Scheduling agreement schedule line

                    • Tabelle KBED: Capacity requirements records

                    • Tabelle KBKO: Header records for capacity requirements

                    • Tabelle RQIT: Total requirement records

                    • The type of database access is indicated by the followingsuffixes:
                      • INS: Number of added data records

                      • UPD: Number of changed data records

                      • DEL: Number of deleted data records

                      • LOG: Number of logically deleted data objects (deletion flag)

                      • The parameters related to the runtime of Business Add-In methodswithin planning are related to the following planning steps orBusiness Add-Ins (BAdI):
                        • BADIT_LIST: BAdI for updating MRP list

                        • BADIT_READ: BAdIs for reading the initial situation for planning

                        • BADIT_BOM: BAdI for determination of the production version

                        • BADIT_SOURCE: BAdI for determination of the source of supply

                        • BADIT_PURPL: BAdIs for changing and updating planned orders
                        • and purchase requisitions
                          • BADIT_IPPE: BAdI for explosion of alternative BOM structures
                          • (IPPE)
                            • BADIT_CUOBJ: BAdI for determination of alternative
                            • configuration valuations
                              INCLUDE BAPI_DATAELEMENT OBJECT DOKU ID TX

                              Description
                              INCLUDE BAPI_RETURN OBJECT DOKU ID TX

                              Value range

                              Messages for authorizations
                              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 &

                              Messages for value checks
                              Type ID Number Messages
                              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 114 Planning scenario & has not been released
                              E 61 680 & & is a product group
                              E 61 403 Material & in plant & has been marked for deletion
                              E 61 077 The MRP type & is invalid
                              E 61 008 Material &1 &2 &3 is not planned automatically
                              E 61 276 Material status &1 does not exist for material &2
                              E 61 130 Material &1 &2. Status &3 does not allow any planning
                              E 61 080 Material &1 &2. Status &3 does not allow long-term planning

                              Other possible messages
                              Type ID Number Message
                              S 61 054 MRP carried out for & & &
                              E 61 245 Invalid date &1 for element &2 &3 &4
                              E 61 059 Please carry out forecast for material & in plant &
                              E MD 253 No instance exists for planned order &1 (see long text)
                              E 61 123 Error determining planning periods for calendar &
                              E 61 124 In-house production time calculated &1 is too long
                              E 61 307 Unit of measure conversion for material &1 of &2 terminated in

                              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

                              Description
                              These parameters are used to define the control parameters for planning a material and planning process.
                              INCLUDE BAPI_DATAELEMENT OBJECT DOKU ID TX

                              Default
                              If the individual planning parameters are not specified, the system usesthe following default parameters:

                              • Processing type of MPR run: Net Change in Entire
                              • Horizon
                                • Creation indicator for purchase requisitions: Purchase Requisitions
                                • in Opening Period
                                  • Creation indicator for automatic scheduling agreement delivery
                                  • schedule lines: Basic Scheduling Agreement Delivery Schedule Lines

                                    • Creation indicator for MRP lists: Basic MRP
                                    • List
                                      • Use creation indicator from MRP group: No

                                      • Planning mode: Adjust Planning Data (Normal Mode)

                                      • Schedule planned orders: Determine Basic Dates for Planned Orders


                                        • Planning date (basis of comparison for rhythm):
                                        • Current Date
                                          • Multilevel planning indicator: No

                                          • Plan all unchanged components: No

                                          • Long-term planning:
                                          • Include fixed planned order: Use Settings in PlanningScenario

                                            Description
                                            INCLUDE MD03_BAPI_PLANT OBJECT DOKU ID TX

                                            Description
                                            INCLUDE MD03_BAPI_PLAN_SCENARIO OBJECT DOKU ID TX

                                            Description
                                            INCLUDE BAPI_EXTOUT OBJECT DOKU ID TX

                                            Description
                                            This table contains a list of all materials planned in thecourse of the function.
                                            The table entries can be as follows:

                                            • For single-level planning, the table contains only one entry for the
                                            • material in question.
                                              • For multilevel planning, the table contains one entry for the header
                                              • material and entries for all planned assemblies and components.
                                                The transferred table contains the information from the header of theMRP list for each planned material.
                                                INCLUDE BAPI_DATAELEMENT OBJECT DOKU ID TX