Sapass

 Simplify SAP R/3 development with Excel VBA/VB RFC  
Home> Bapi>Kanban



Index

Kanban

Kanban


The business object Kanban (card) is a message within a kanban
control cycle. The kanban is used to transfer consumption information and the delivery of a material in the kanban control cycle.


Integration
The relationship between the point of consumption and the point of
procurement of a plant material and the quantity to be replenished are defined in the kanban control cycle.


Depending on the replenishment strategy of the kanban control cycle,
material replenishment can be carried out using a planned order, a scheduling agreement or a purchase order, for example.


11-Dec-2005


Methods

Available Methods


  • ChangeStatus : Change status of a kanban [ BAPI_KANBAN_CHANGESTATUS ]
  • GetList : Determining kanbans for selection criteria [ BAPI_KANBAN_GETLIST ]
  • Getlistforsupplie1 : Provide KANBAN data for vendors 2nd version (new address fields) [ BAPI_KANBAN_GETLISTFORSUPPLIE1 ]
  • GetListForSupplier : Provide Kanban data for vendors [ BAPI_KANBAN_GETLISTFORSUPPLIER ] (Obsolete in 40A)
  • SetInProcess : Set kanban status to IN PROCESS [ BAPI_KANBAN_SETINPROCESS ]

11-Dec-2005


ChangeStatus

ChangeStatus


In this method a kanban status change is carried out. With such astatus change replenishment is triggered for a kanban or goods receipt is posted for a kanban.

The main entry parameter is the kanban identification number. Thestatus to which the kanban is to be set, can be provided or determined
by the system. The kanban ID number and status can be encoded in a barcode and determined this way.

COMMIT and ROLLBACK WORK: the function module does not carry out anyCOMMIT work. Command off. The initiator must make sure of this afterending the function module. Each time after the FM is called up, a
COMMIT WORK must take place. It is not permissible to call up this FMseveral times and to post the result with a COMMIT WORK. If the FM finds an error during processing, then in some cases the commandROLLBACK WORK is executed. In these cases the kanban is either set to
status ERROR or an error message is issued in the parameter RETURN.


11-Dec-2005


GetList

GetList


This method provides a list of kanbans for one or more selectioncriteria. Make sure that the individual selection parameters in the data selection are linked with a logical AND.


11-Dec-2005


Getlistforsupplie1

Getlistforsupplie1


This method reads the relevant kanban information from the customer'ssystem for a vendor who delivers material to his customers using KANBAN methods.

Input parameter is the vendor number.

The kanban information is returned in the form of three tables:


  • A table with all control cycles to which the vendor delivers.
  • A table with all supply areas to which the material is delivered.
  • A table with all the individual kanbans that belong to the control cycles.

  • 11-Dec-2005


    GetListForSupplier

    GetListForSupplier


    This method reads the relevant KANBAN information from the customer'ssystem for a supplier who delivers goods to his/her customer using KANBAN product control.

    Input parameters depenend on the supplier number.

    The KANBAN information is displayed in the form of three tables:


  • One table with all control cycles for which the supplier makes deliveries.
  • One table with all the supply areas to which the material is delivered.
  • One table with all the individual kanbans that belong to the control cycles.


  • 11-Dec-2005


    SetInProcess

    SetInProcess


    This method sets the kanbans in the KANBAN table to the status IN PROCESS.

    Kanbans that were processed successfully are displayed in table KANBANS_UPDATE.

    Kanbans, that could not processed successfully are displayed in table KANBANS_NOT_UPDATED.

    It may not have been possible to process a kanban for one of the following reasons, for example:

  • The kanban was not set to the status EMPTY. (A kanban can only be given the status IN PROCESS if it is set to EMPTY.)
  • The kanban has just been processed by another user and was therefore locked.

  • The kanban does not exist.
  • Usually, kanbans that are to be gived the status IN PROCESS are firstread by the function module, "BAPI_KANBAN_GETLISTFORSUPPLIER".

    Notes

    As transfer parameters in this function module, you do not have to fill
    the lines of the table KANBAN completely. It is sufficient if the fields KANBAN_ID CTRLCYC_NO and KANBAN_NO are filled.

    This BAPI executes a Commit Work and cannot, therefore, by combined with other BAPIs in a LUW.


    11-Dec-2005