Patrick659
New Member
Hello -
Our inventory management system (IMS) stores items in "trays". When an item is requested, a "history" record is created for that item. What we're trying to do is identify trays whose items have never been requested. Since the IMS doesn't have any such reporting, we're trying various one-off scripts in the dev environment. While this initially seemed relatively simple, the scripts so far have been doing the exact opposite - showing only trays with related requests or all trays of a given category.
The relevant code looks more or less like this:
(As I often say, - what am I missing?)
Any ideas would be much appreciated ....
- pat O'B
Our inventory management system (IMS) stores items in "trays". When an item is requested, a "history" record is created for that item. What we're trying to do is identify trays whose items have never been requested. Since the IMS doesn't have any such reporting, we're trying various one-off scripts in the dev environment. While this initially seemed relatively simple, the scripts so far have been doing the exact opposite - showing only trays with related requests or all trays of a given category.
The relevant code looks more or less like this:
Code:
for each tray no-lock where tf-own = l-cus and tf-type >= l-type1 and
tf-type <= l-type2 and tf-delete-date = ?,
each item no-lock where if-tray = tf-tray and if-delete-date = ?
break by tf-tray:
if last-of (tf-tray) then
find first hist no-lock where hi-itm = if-item-no no-error.
if not available (hist) then
if last-of (tf-tray) then
disp tf-tray.
end.
Any ideas would be much appreciated ....
- pat O'B
Last edited by a moderator: