Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Unanswered

Tracing receipt and PO information after a lot has been transferred.

(0) ShareShare
ReportReport
Posted on by 460

I put together a query that from the lot number master would find the receipt and PO the lot came from, it worked well until they transferred the lot from one bin to another. The query below is what comes from smartlist builder to show what I put together so far. I can see the transfer info in IV30400 but unsure how to connect it all. The receipt line retains the first bin it was put into. Please tell me if the effort is futile, I can think of a few things to believe it is because they might not transfer all of it and I use qty etc OR if you may have a genius suggestion taking it out of smartlist builder and creating the sql view, thanks.

select
* from [FASTR]..IV00300 T1 with (nolock)
INNER JOIN [FASTR]..IV00101 T2 with (nolock)
on
T2.[ITEMNMBR] = T1.[ITEMNMBR]
LEFT JOIN (
select 0 as SLB_TYPE_3, POPRCTNM, RCPTLNNM, SLTSQNUM, ITEMNMBR, SERLTNUM, SERLTQTY, TRXSORCE, DATERECD, DTSEQNUM, UNITCOST, QTYTYPE, BIN, MFGDATE, EXPNDATE
from [FASTR]..POP10330 with (nolock)
union
select
1 as SLB_TYPE_3,
POPRCTNM as POPRCTNM,
RCPTLNNM as RCPTLNNM,
SLTSQNUM as SLTSQNUM,
ITEMNMBR as ITEMNMBR,
SERLTNUM as SERLTNUM,
SERLTQTY as SERLTQTY,
TRXSORCE as TRXSORCE,
DATERECD as DATERECD,
DTSEQNUM as DTSEQNUM,
UNITCOST as UNITCOST,
QTYTYPE as QTYTYPE,
BIN as BIN,
MFGDATE as MFGDATE,
EXPNDATE as EXPNDATE
from [FASTR]..POP30330 with (nolock)
) T3
on
T3.[ITEMNMBR] = T1.[ITEMNMBR] and T3.[SERLTNUM] = T1.[LOTNUMBR] and T3.[QTYTYPE] = T1.[QTYTYPE] and T3.[SERLTQTY] = T1.[QTYRECVD] and T3.[DATERECD] = T1.[DATERECD]
LEFT JOIN [FASTR]..POP10500 T4 with (nolock)
on
T4.[POPRCTNM] = T3.[POPRCTNM] and T4.[RCPTLNNM] = T3.[RCPTLNNM]

Categories:

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Jainam Kothari – Community Spotlight

We are honored to recognize Jainam Kothari as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 601 Most Valuable Professional

#2
Abhilash Warrier Profile Picture

Abhilash Warrier 416

#3
Adis Profile Picture

Adis 384 Super User 2025 Season 1

Product updates

Dynamics 365 release plans