I found on Victoria Yudin's site that I can use table IV10200 and condition PCHSRCTY = 8.
I created this SQL, but it works for some items, but for other items it doesn't work. Is it right table and field?
select TOP 1 QTYSOLD,
*
from IV10200
where ITEMNMBR = 'D3028'
and TRXLOCTN = 'TRANSIT'
and PCHSRCTY = 8
order by DATERECD desc
*This post is locked for comments