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.
|