Hi everyone
Ive recently started diving into SAP queries. I currently have access to my company’s data lake for SAP data (meaning I don’t have access to meaningful column headers). I am using xlean website to figure out tables and column names.
I have been asked to compare goods received vs inspection start and end dates. I am not sure the best approach but from searching around this forum i’ve come up with the following, but the PO_Posting_date seems to update whenever a new part gets received on that PO. Do you have any suggestions on how to look this information up?
Thanks in advance!
from prod_l1.mbp.ekbe
left join prod_l1.mbp.qals on qals.ebeln = ekbe.ebeln and qals.ebelp = ekbe.ebelp
–join prod_l1.mbp.QAMB on QAMB.mblnr = prod_l1.mbp.ekbe.belnr and QAMB.mjahr = prod_l1.mbp.ekbe.gjahr and QAMB.zeile = ekbe.buzei
where ekbe.werks = ‘US9L’ and ekbe.bewtp = ‘E’
order by ekbe.src_commit_time desc