We are trying to get a transaction history on bin locations. The need came about because we accidentally duplicated some production orders and we needed to work out which bins the stock came from in order to move them back to where they came without physically having to check all of the related bins.
We managed to work around using the following queries but we'd like to know how to build a query with the following information :
Item Code
Date
Quantity
Bin Location Taken From / Added to
Transaction Type (Ie picked for order, picked for production, goods receipt, credit note, invoice etc etc)
We used :
SELECT * FROM OBTL T0
which gave useful fields :
Internal Number
Bin Internal Number
Quantity
SELECT T0."BinCode", T0."AbsEntry", T0."Descr" FROM OBIN T0
Bin Location Code
As a complete beginner to SQL and queries in general i'm not sure how to link everything together to get what we need. Could someone please give some guidance as i'm sure this would be a useful query not just to us but other users as well.