Fonction SAP BAPI_KANBANCC_CREATE - BAPI: Create Control Cycle

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
CONTROLCYCLENEW BAPI1172_CREATE u 563 Data from New Control Cycle
TESTRUN BAPI0012_GEN-TESTRUN C 1 X Switch to Simulation Mode for Write BAPIs

Paramètre Reférence Long. Facultatif Description
EXTENSIONIN BAPIPAREX 990 X Reference Structure for BAPI Parameters ExtensionIn/ExtensionOut
RETURN BAPIRET2 548 Return Parameter(s)

Functionality
You can use this method to create control cycles with kanbans. The datafor the control cycles must be consistent and complete.
Prerequisite
Before you create a new control cycle with the BAPI, you must useBAPI_KANBANCC_EXISTCHECK to check whether there is already a controlcycle for the same plant, material, and production supply area. If thereis, the system issues an error message.
Checks
The system carries out various checks to see if the material isavailable and whether the material exists at the storage location of thespecified production supply area, for example.
Only one control cycle can be created each time the BAPI is called.
The number of the control cycle can only be assigned internally by thesystem. If you assign an external number, it is ignored by the system.
If superfluous data is specified (for example, if you enter a schedulingagreement for a replenishment strategy with in-house production), thesuperfluous data is reset. This means that in the case of in-houseproduction the number of the scheduling agreement is not saved for thecontrol cycle.
IF &[SWITCH]MAN_SFWS_KANBAN_02& = 'X'.
If the lifecycle has been activated for control cycles in Customizingand you have not assigned a lifecycle status, in the standard system thecontrol cycle is created in the status Released.
ENDIF.
Note:
The BAPIs for control cycles for the special solutions JIT (Just inTime) and S2L (Supply to Line) in SAP Automotive are created inthe relevant DIMP systems.

Description
The parameter contains the data required to create a control cycle.
INCLUDE BAPI_DATAELEMENT

Mandatory fields:

  • Control cycle number (KANBANCONTRLCYCLE)

  • The control cycle number is assigned internally by the system. Anexternally assigned number is ignored.
    • Material (MATERIAL)

    • The material must exist in the specified plant.
      • Plant (PLANT)

      • The plant must exist.
        • Production supply area (SUPPLYAREA)

        • The supply area must exist in the specified plant and be assigned to aperson responsible.
          The material must be created for the storage location that is assignedto the supply area.
          The storage location of the supply area must exist in the specifiedplant.
          • Control cycle category (CC_STATUS)

          • Replenishment strategy

          • The replenishment strategies are created in Customizing under Production-> Kanban -> Replenishment Strategies. A value must be specified for oneof the three fields for the replenishment strategy. Other fields becomemandatory depending on which replenishment strategy is defined.
            Replenishment by in-house production (STRATEGY_INHOUSE_PROD)
            The person responsible for the supply source (RESP_SUPPLY_SOURCE) mustbe specified.
            Replenishment by external procurement (STRATEGY_EXT_REPL)
            (or procurement in another plant)
            The agreement number (AGREEMENT) and agreement item (AGRMT_ITEM must bespecified.
            For summarized JIT calls, the vendor's
            partner role must bespecified in the header data of the scheduling agreement.
            Replenishment by stock transfer from another warehouse(STRATEGY_STOCK_TRANSF)
            The storage location (STGE_LOC) must be specified.
            • Mandatory fields for classic kanban:

            • Number of kanban containers (KANBAN_CT)
              (field is optional for event-driven kanban)
              Note:
              If you specify a packing instruction, the number of kanb containersshould not be specified since the number is calculated from the packinginstruction.
              Material quantity per kanban (KANBAN_QTY)
              (field is optional for event-driven kanban)
              • Maximum number of empty kanbans (MAX_EMPTY)

              • The number must be less than the total number of kanbans.
                • Mandatory fields for event-driven kanban:

                • Rounding quantity (ROUNDING_QTY)
                  Fixed kanban quantity (FIX_KANBAN_QTY)
                  • Mandatory fields for Kanban with Warehouse Management

                  • The system checks whether the specified combination of warehouse number/storage type/storage bin (WHSENUMBER/STGE_TYPE/STGE_BIN) is consistentand whether the warehouse number, storage type, and storage bin exist.
                    Dynamic destination bin (DYN_DESTINATION_BIN)
                    You can enter either X or no value (blank) for this field.

                    Further checks for the mandatory fields:

                    • The system checks whether the user is authorized to create control
                    • cycles.
                      • The system checks whether there is already a control cycle with this
                      • number.
                        A control cycle that already exists cannot be created again. The call isnot treated as a change in this case, but is rejected. These controlcycles can be processed by calling them again using the method to changecontrol cycles. No further checks are carried out for existing controlcycles.
                        • The system checks the number ranges for technical keys.

                        • So that a number can be assigned for the control cycle, the relevantnumber range must be available and the number assignment correctly setup (internal/external number assignment). The same applies for therelevant kanbans in classic kanban.

                          Optional fields
                          Replenishment strategy for in-house production

                          • Production version (VERSION)

                          • Replenishment strategy for external procurement
                            • Purchasing organization (PURCH_ORG)

                            • Vendor account number (VENDOR)

                            • Independent source (INDEP_REPL)

                            • Replenishment strategy for stock transfer
                              • Issuing plant (ISSUINGPLANT)

                              • Source supply area (SOURCE_SUPP_AREA)

                              • Base unit of measure (BASE_UOM)

                              • A value cannot be specified for the parameter. The value is taken fromthe material master record.
                                Independent source (INDEP_REPL)
                                • For control cycles with classic kanban, you can use this field to
                                • determine that replenishment takes place using an independent source.
                                  Cost center (COSTCENTER)
                                  • With replenishment strategies where the material is procured at cost
                                  • center, all agreement items ms of an account assignmentmust refer to a cost center.
                                    Packing instruction
                                    • Unique internal packing object number (INTERNAL_PACK_OBJ)

                                    • A GUID (Globally Unique Identifier) is stored in the database. Theconversion from the BAPI interface to the database must be made.
                                      • Number of load carriers (NUMBER_LOADCARRIER)

                                      • If a packing object number has been specified, a number greater than 0must be entered.
                                        Print parameters
                                        • Output device (OUTPUT_DEVICE)

                                        • Kanban card print control (KANBAN_PRINT_CONTROL)

                                        • You can enter one of the following values:
                                          0 = No kanban print
                                          1 = Kanban print upon replenishment
                                          2 = Kanban print upon goods receipt
                                          • Form for kanban print (CC_CARD)

                                          • Delivery address (DELIV_ADDR)
                                            A delivery address can be specified when a control cycle is created.
                                            You cannot use BAPI_KANBANCC_CREATE to create address data. You mustalready have created the addresses in the system. An internal referencenumber for the address is stored on the database.
                                            You can read the address data with the BAPIBAPI for Reading Company Addresses.With the BAPI for Changing CompanyAddresses, you can change address data if required.
                                            Kanban status change (STAT_SEQ)
                                            The standard status sequence is used (1, 2, 3, 5, 6, 9)
                                            If other statuses are specified, they must be defined in Customizing.
                                            Separate goods receipt if status change is full (SEPERATE_GR_IF_FULL)
                                            The value X or no value (blank) can be specified.
                                            Logic for setting the status of a kanban to empty (LOGIC_SET_EMPTY)
                                            If no value is specified, the replenishment is triggered if the statusis empty.
                                            If you want to specify a different logic for the control cycle, you mustuse one of the following entries:
                                            1 = Status In Use
                                            2 = Status Waiting
                                            3 = Trigger quantity reached or exceeded
                                            In this case, you must specify a trigger quantity (TRIGGER_QTY).
                                            Storing position (STORING_POS)
                                            You can enter a text of your choice.
                                            Kanban calculation
                                            Enter either the calculation parameters calculation type, safety factorand constant or a calculation profile. If you specify a profile, thecalculation parameters are taken from the profile.
                                            • Calculation type (CC_CALCU_INDEX)

                                            • If no value is specified, a kanban calculation is not carried
                                              out.
                                              1 = Calculation of the number of kanbans
                                              2 = Calculation of the quantity per kanban
                                              • Safety factor (SAFTYFACTOR)

                                              • You can enter values in a . format without special characters.
                                                • Constant (CONST_KANBAN_CALC)

                                                • You can enter a value from 0 - 999.
                                                  • Calculation profile (KANBAN_CALC_PROF)

                                                  • The profile must be created in Customizing.
                                                    • Replenishment lead time in days (RPL_LEADTIME_DAY)

                                                    • You can enter a value from 0 - 999.
                                                      • Replenishment lead time in hours:minutes (REPL_LEADTIME_MIN)

                                                      • You enter the values as 00:00. The accuracy of the times entered is notchecked, that is, an entry such as 25:61 is not rejected.
                                                        Kanban with SD delivery
                                                        If you use the special replenishment strategy kanban with SD delivery,you must specify the SD scheduling agreement (sales document) in kanbanprocessing (SD_SCHED_AGRMNT) and the SD scheduling agreement items inkanban processing (SD_SCHED_AGRMNT_ITEM).
                                                        JIT call profile (JIT_CALL_PROF)
                                                        You should only use this field for a replenishment strategy withsummarized JIT call. The JIT call profile must be created inCustomizing.
                                                        Staging indicator for production supply (MAT_STAG_INDICATOR)
                                                        Language-dependent texts
                                                        You can enter language-dependent texts for the material, plant, supplyarea, packing instruction, and kanban container.

                                                        Description
                                                        If this parameter is set, the system merely carries out a test run. Nochanges are written to the database.

                                                        Description
                                                        This parameter serves as a data container. In the parameter, additionaldata that was not taken into account at the interface can be passed onto the method.
                                                        The data is passed on in a table. The format of the individual datarecords of this table is determined by the structure BAPIPAREX. Thiscontains several data record fields (VALUEPART1, VALUEPART2, ...) plus afield for the name of an auxiliary structure created by the customer(STRUCTURE). Because the data is written piece-wise successively to thedata record fields available for the purpose, an auxiliary structure isneeded to interpret the data.
                                                        BAPI table extensions are especially suitable as auxiliary structures inthe event that the customer wishes to extend an SAP database table byadding further fields.
                                                        Further information on the various options for customer enhancement andon the auxiliary structures to be used in each case is available in thedocument "Customer Enhancements and Modification of BAPIs" in the SAPLibrary under CA-BFA: Further Developments, Modifications ...
                                                        You can implement the enhancement using the Business Add-In (BAdI)BAPI1172EXTENSION. In doing so, use the interfaceIF_EX_BAPI1172EXTENSION with the method GETLIST_CHECK_IN.

                                                        Description
                                                        This table contains the return messages from the method call.