Postman collection
Stock Read

pixiReadItemBinLog

Returns entries of the bin location item log (InvBinItemLog), optionally filtered by date ranges and paged by log key.

Reads rows from the bin location item log InvBinItemLog. Each row describes a quantity booking of an Artikel on a Lagerplatz.

Paging

  • ItemBinLogKey is an exclusive lower bound. Only rows with IBILkey greater than this value are returned. If it is omitted or NULL, 0 is used, so the call starts at the beginning of the log.
  • RowCount limits the number of rows. The default is 1000; NULL is also treated as 1000.
  • Rows are always sorted by IBILkey ascending. To read the next page, pass the highest IBILkey of the previous page as ItemBinLogKey.

Date filters

Only one group of date filters is used. The groups are checked in this order, and the first group with at least one value set wins:

  1. CreateAndUpdateDateFrom / CreateAndUpdateDateTo: the lower bound matches if UpdateDate or ReportedDate is >= From. The upper bound matches if UpdateDate or ReportedDate is < To.
  2. CreateDateFrom / CreateDateTo: filters on the column UpdateDate (>= From, < To).
  3. UpdateDateFrom / UpdateDateTo: filters on the column ReportedDate (>= From, < To).

In each group, either bound can be omitted. Upper bounds are exclusive. If no date parameter is set, the call returns the next RowCount rows after ItemBinLogKey.

Notes

  • The table is read WITH (NOLOCK). Rows that are not yet committed can appear, and rows can be missing or appear twice.
  • ItemBinLogKey cannot fetch a single entry. Passing a key returns the rows after that key, never the row with that key. The code contains branches for an exact key lookup and for an empty result, but they are never reached, because ItemBinLogKey and RowCount are replaced with non-NULL values at the start.
  • The parameter names do not match the column names. CreateDate* filters on UpdateDate, and UpdateDate* filters on ReportedDate.
  • In the combined filter, the From and To conditions are evaluated independently. A row can match the lower bound through one column and the upper bound through the other.
  • Date parameters of a lower-priority group are ignored as soon as a higher-priority group has a value.
  • The column data types are not visible in the code, except IBILkey (compared with an int) and the date columns (compared with datetime values).

Tables used

InvBinItemLog · Read
SQL object:
dbo.pipiReadItemBinLog
Updated at 2026-10-30