on 09-11-2014 6:03 PM
Expert,
We are using SAP 9.0 PL4
We need Query for PR to PO days taken
Example
I make Purchase Request on 05/09/14 than make Purchase Quotation on 07/09/14 finally made Purchase Order on 10/09/14 with line item 5
We need report
From PR date to PO date. How many days taken?
My problem is how to join with PR to PO directly because PR to PO not tag directly in between we made Purchase Quotation.
Please advise
Thanks in advance
Mukesh Singh
Hi Mukesh,
Try this query. It connects the 3 tables that you need. You need to add the fields that you want to see on the report.
SELECT T0.[DocNum], T1.LineNum, T0.[DocDate], T1.[ItemCode], T1.[Dscription], T1.WhsCode, T1.[Quantity], T3.CardCode, T3.Cardname, T2.BaseType , T2.[BaseRef] , T2.[BaseLine], T2.DocENtry , T2.[Quantity] , T4.DocEntry, T5.DocNum, T4.Quantity, t4.price, t4.basetype
FROM OPRQ T0 INNER JOIN PRQ1 T1 ON T0.DocEntry = T1.DocEntry
left outer join PQT1 T2 on T1.DocENtry = T2.BaseEntry and T1.LineNum = T2.BaseLine and T2.BaseType = '1470000113'
left outer join OPQT T3 on T3.DocEntry = T2.DocEntry
left outer join POR1 T4 on T2.DocENtry = T4.BaseEntry and T2.LineNum = T4.BaseLine and T4.BaseType = '540000006'
left outer join OPOR T5 on T5.DocEntry = T4.DocEntry
order by t0.docnum, T1.LineNum
Regards,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Not sure below link works for you or not.
Try:
Link PRQ1 linevendor with OCRD cardcode and line OCRD cardcode with OPOR cardcode
Thanks & Regards,
Nagarajan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Mukesh,
Because PO may only have direct link to PQ, you could create a query for this relation instead.
In my option, no matter how early you have the request, it may only count if you raised a quotation.
Thanks,
Gordon
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
99 | |
11 | |
11 | |
6 | |
6 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.