Fonction SAP BAPI_KANBANCC_CHANGE - BAPI: Change Control Cycle

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
CONTROLCYCLE_NUMBER BAPI1172_LIST_ALL-KANBANCONTROLCYCLE C 7 X Control Cycle No.
CONTROL_CYCLE_CHANGE BAPI1172_CONTROLCYCLE_CHANGE u 451 Change in Control Cycle (BAPI)
CONTROL_CYCLE_CHANGEX BAPI1172_CONTROLCYCLE_CHANGEX u 65 Transfer Structure for Change in Control Cycle (BAPI)
MATERIAL BAPI1172_LIST_ALL-MATERIAL C 18 X Material Number
MATERIAL_EVG BAPIMGVMATNR u 82 X BAPI Structure for Transfer of External Material No, Ver.,
PLANT BAPI1172_LIST_ALL-PLANT C 4 X Plant
SUPPLYAREA BAPI1172_LIST_ALL-SUPPLYAREA C 10 X Production Supply Area
TESTRUN BAPI0012_GEN-TESTRUN C 1 X Switch to Simulation Mode for Write BAPIs

Paramètre Reférence Long. Facultatif Description
CONTROLCYCLE_IN_TRIGGER_GROUP BAPI1172_LIST_ALL 800 X BAPI: Control Cycle
EXTENSIONIN BAPIPAREX 990 X Reference Structure for BAPI Parameters EXTENSIONIN/EXTENSIONOUT
EXTENSIONOUT BAPIPAREX 990 X Reference Structure for BAPI Parameters EXTENSIONIN/EXTENSIONOUT
RETURN BAPIRET2 548 Return Parameter(s)

Functionality
You can use this method to change control cycles.
Enter either the control cylce number or the plant, material, and supplyarea to call the control cycle.
The following fields cannot be changed:

  • Control cycle number

  • Plant

  • Material

  • Supply area

  • Control cycle category

  • If you change the replenishment strategy, you must make sure that thefields that are not required for the new replenishment strategy are notvaluated.
    Checks
    • Before you change a control cycle, you should first call
    • BAPI_KANBANCC_EXISTCHECK to check that the control cycle exists. If itdoes not exist, the system outputs an error message.
      • The system carries out an authorization check.
      • Further information

        Description
        To change a control cycle, you must enter either the control cyclenumber or the material, plant, and supply area.
        Information on the meaning of the individual parameter fields isavailable in the corresponding data element documentation in the ABAPDictionary.

        Description
        This parameter contains the control cycle fields that you can changeusing the method BAPI_KANBANCC_CHANGE. Transfer the new values for thefields. Also select the fields in parameter CONTROL_CYCLE_CHANGEX forwhich you want changes to be transferred.
        Note the following features when changing data:
        The replenishment strategy
        If you want to change the replenishment strategy, you must enter a valuefor one of the three replenishment strategies (in-house production,external procurement, stock transfer).
        If the replenishment strategy is changed, the system carries out thesame checks as when creating a control cycle.
        Cancel the values for the fields that are not required for the newreplenishment strategy.
        Changing the number of kanbans in a control cycle
        The number of active kanbans can only be reduced in classic kanban ifyou have previously set the deletion indicator for the kanbans in thecontrol cycle. You can set the deletion indicator for kanbans using themethod BAPI_KANBAN_CHANGE. You can then use the methodBAPI_KANBANCC_CHANGE to reduce the number of BAPIs.
        INCLUDE BAPI_DATAELEMENT

        Description
        This parameter contains the same fields as the CONTROL_CYCLE_CHANGEparameter. Enter X for the fields for which you want the BAPI to takechanges into account.
        Information on the meaning of the individual parameter fields isavailable in the corresponding data element documentation in the ABAPDictionary.

        Description
        To change a control cycle, you must enter either the control cyclenumber or the material, plant, and supply area.
        Information on the meaning of the individual parameter fields isavailable in the corresponding data element documentation in the ABAPDictionary.

        Description
        To change a control cycle, you must enter either the control cyclenumber or the material, plant, and supply area.
        Information on the meaning of the individual parameter fields isavailable in the corresponding data element documentation in the ABAPDictionary.

        Description
        To change a control cycle, you must enter either the control cyclenumber or the material, plant, and supply area.
        Information on the meaning of the individual parameter fields isavailable in the corresponding data element documentation in the ABAPDictionary.

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

        Description
        If a trigger point of a control cycle is changed, the trigger point ofall control cycles belonging to the same trigger group must be adjustedin the same way. All control cycles whose trigger points have beenadjusted are listed in this table.

        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 parameter serves as a data container. With this parameter,additional data that was not taken into account at the interface can bereturned.
        The data is transferred 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 (STRUCTURE). Because thedata is written piece-wise successively to the data record fieldsavailable for the purpose for each data record, an auxiliary structureis needed 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. Use the interface IF_EX_BAPI1172EXTENSION with themethod GETLIST_CHECK_OUT for the purpose.

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