Fonction SAP BAPI_KANBAN_SETINPROCESS - Set Kanban Status to "In Process"

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
EXCLUDE_STATUS_RESTRICTION BAPI1075_GEN-EXCLUDE_STATUS_RESTRICTION C 1 SPACE X Exclude Authorization Check at Time of Kanban Status Change

Paramètre Reférence Type Long. Description
RETURN BAPIRETURN u 452 Return Code

Paramètre Reférence Long. Facultatif Description
KANBANS BAPI1075_1 61 Kanbans to Be Set to Status "In Process"
KANBANS_NOT_UPDATED BAPI1075_1 61 X Kanbans that Were Not Set to Status "In Process"
KANBANS_UPDATED BAPI1075_1 61 X Kanbans that Were Set to Status "In Process"

Functionality
This method sets the Kanbans in the KANBANS table to the "In Process"status.
Kanbans that were successfully processed are returned in theKANBANS_UPDATED table.
Kanbans that were not able to be processed are returned in theKANBANS_NOT_UPDATED table.
The reasons a Kanban could not be processed include:

  • The Kanban did not have the "empty" status. (Only "empty" Kanbans can be
  • set to "in process".)
    • The Kanban was locked because it was being processed by another user.

    • The Kanban does not exist.

    • The Kanban Enhancements for Lean Manufacturing business function
    • (LOG_PP_LMAN_02) is activated and there is no authorization for settingthe Kanban status to In Process.
      Normally, Kanbans that should be set to in process are first read usingthe "BAPI_KANBAN_GETLISTFORSUPPLIER" function module.

      Notes
      For the transfer parameter in this function module, the rows in theKANBANS table do not have to be completely filled. It is sufficient ifthe KANBAN_ID, CTRLCYC_NO, and KANBAN_NO fields are filled.
      This BAPI executes a commit work and can therefore not be combined withother BAPIs in a an LUW.

      Description
      The return code displays whether all records could be posted.

      Value range
      Initial All records were posted
      Table KANBANS_NOT_UPDATED is empty
      W Not all records could be posted
      Table KANBANS_NOT_UPDATED contains at least one record

      Description
      Exclude authorization check for Kanban status change
      This parameter determines if the authorization check is run for theKanban status change. This checks if the user is allowed to set theKanban status for the control cycle, plant, and production supply area.The default setting is that the authorization check is always run. Ifthe parameter is set to 'X', the authorization check is excluded. Youcan only use the authorization check for the Kanban status change if the
      Kanban Enhancements for Lean Manufacturing business function(LOG_PP_LMAN_02) has been activated.

      Description
      This table must be filled when accessing the function module.
      It contains the kanbans that are to be set from status EMPTY to statusIN PROCESS.
      The lines of the KANBANS table do not have to be complete. It issufficient if the fields, KANBAN_ID, CTRLCYC_NO and KANBAN_NO arecomplete.

      Description
      This table is filled by the function module. It contains all entriesfrom the table KANBANS that were not set to status IN PROCESS.

      Description
      This table is filled by the function module. It contains all entriesfrom the table KANBANS that were successfully set to the status INPROCESS.