Ansicht
Dokumentation

/SCWM/BAPI_PI_DOCUMENT_BOOK - LOCAL:Change of Book Inventory Documents

/SCWM/BAPI_PI_DOCUMENT_BOOK - LOCAL:Change of Book Inventory Documents

BAL_S_LOG - Application Log: Log header data   BAL Application Log Documentation  
This documentation is copyright by SAP AG.
SAP E-Book

Functionality

You can use the Bookmethod to enter book inventory information for one or more physical inventory document items within a warehouse number.

You enter the warehouse number in the BookHeaderparameter.

You enter the individual physical inventory document items in the BookItemparameter.

Messages are returned in the Returnparameter. This parameter documentation contains the return values and a description of their meanings.

Example

Example 1

In book inventory, a quantity of 10 pieces of product P1 is contained in handling unit H1 in storage bin BIN1.

You are working with a storage-bin-specific physical inventory procedure (such as HL).

To enter information you must make two entries in the BookItemparameter:

  • First entry (item header data)
  • DOC_NUMBER, DOC_YEAR, ITEM_NO: physical inventory document item

  • PARENT_WHSENUMBER, PARENT_STGE_BIN: warehouse number and storage bin BIN1

  • ITEM_TYPE: row type of physical inventory document item L (storage-bin-specific)

  • Second entry (handling unit H1 in storage bin BIN1)
  • DOC_NUMBER, DOC_YEAR, ITEM_NO: physical inventory document item

  • PARENT_WHSENUMBER, PARENT_STGE_BIN: warehouse number, storage bin BIN1

  • ITEM_TYPE: row type of physical inventory document item B (book inventory line)

  • ITEM_HUIDENT: handling unit H1

  • Third entry (product P1 in handling unit H1)
  • DOC_NUMBER, DOC_YEAR, ITEM_NO: physical inventory document item

  • PARENT_HUIDENT: handling unit H1

  • ITEM_TYPE: row type of physical inventory document item B (book inventory line)

  • ITEM_MATERIAL: product P1

  • ITEM_BATCH: batch, if the product is subject to batch management requirement

  • ITEM_STOCK_TYPE: stock type

  • ITEM_EN_TODISP: party entitled to dispose

  • ITEM_OWNER: owner

  • ENTRY_QTY: quantity of 10

  • ENTRY_UOM: unit of measure PC

Variant of example 1:

You are working with a product-based physical inventory procedure (such as HS).

In this case, you can reuse the BookItemparameter mentioned in Example 1, the first entry in the BookHeaderparameter must be changed as follows:

  • First entry (item header data)
  • DOC_NUMBER, DOC_YEAR, ITEM_NO: physical inventory document item

  • PARENT_WHSENUMBER, PARENT_STGE_BIN: warehouse number, storage bin BIN1

  • ITEM_TYPE: row type of physical inventory document item O (product-based)

  • ITEM_MATERIAL: product P1

  • ITEM_BATCH: batch, if the product is subject to batch management requirement

  • ITEM_STOCK_TYPE: stock type

  • ITEM_EN_TODISP: party entitled to dispose

  • ITEM_OWNER: owner

Example 2

Storage bin BIN1 is empty.

To enter information, you must make two entries in the BookItemparameter:

  • First entry (item header data)
  • DOC_NUMBER, DOC_YEAR, ITEM_NO: physical inventory document item

  • PARENT_WHSENUMBER, PARENT_STGE_BIN: warehouse number, storage bin BIN1

  • ITEM_TYPE: row type of physical inventory document item L (storage-bin-specific)

  • Second entry (set an empty indicator for storage bin BIN1)
  • DOC_NUMBER, DOC_YEAR, ITEM_NO: physical inventory document item

  • PARENT_WHSENUMBER, PARENT_STGE_BIN: warehouse number, storage bin BIN1

  • ITEM_TYPE: row type of physical inventory document item B (book inventory line)

  • IND_LOC_PAR_EMPT: storage bin is counted as empty X

Notes

It's possible to change book inventory for an item only if the item has been counted and not yet been posted, recounted, or deleted.

It's not possible to set the statuses of handling units for book inventory because the system needs specific product quantity.

Further information

The method can only execute the function if the system has not generated any error messages in the Return table. This is the case if you were able to edit the header data, and all items, without errors.

No transaction control is implemented. This means that after this method has been called successfully (no errors have been notified to the caller in the Return parameter), the caller must execute the Commit Work themselves.





Parameters

BOOK_HEADER
BOOK_ITEM
RETURN
TESTRUN

Exceptions

Function Group

M/SAPLPI_BAPI

Fill RESBD Structure from EBP Component Structure   BAL Application Log Documentation  
This documentation is copyright by SAP AG.

Length: 6744 Date: 20240420 Time: 004746     sap01-206 ( 83 ms )