on 09-20-2017 9:28 PM
Is there any way to link opkl with any of the table ordr, oinv, oldn? i need a query which tells me pick list number against delivery or sales order.
Hi Shahzad,
You can link OPKL with PKL1 and then link with the order(ORDR).
On PKL1 you are able to see the doc line (OrderLine), doc entry (OrderEntry) and document type (BaseObject)
SELECT
T0.AbsEntry,
T1.PickEntry,
T1.OrderEntry,
T1.OrderLine,
T1.BaseObject
FROM
OPKL T0
INNER JOIN PKL1 T1 ON T0.AbsEntry = T1.AbsEntry
On result below, the line 0(PickEntry) of Pick list 15 (AbsEntry) is linked with Order (BaseObject = 17) with DocEntry 199 (OrderEntry) line 0 (OrderLine)
Then the link with ORDR
SELECT
T0.AbsEntry,
T1.PickEntry,
T1.OrderEntry,
T1.OrderLine,
T1.BaseObject
FROM
OPKL T0
INNER JOIN PKL1 T1 ON T0.AbsEntry = T1.AbsEntry
INNER JOIN RDR1 T2 ON T2.LineNum = T1.OrderLine AND T1.OrderEntry = T2.DocEntry AND T1.BaseObject = 17
INNER JOIN ORDR T3 ON T3.DocEntry = T2.DocEntry
P.S: If you create your deliveries from pick lists you are able to see on line of delivery(DLN1) the picklist number used and then link DLN1.PickIdNo with OPKL.AbsEntry.
Hope it helps.
Kind Regards,
Diego Lother
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
101 | |
14 | |
10 | |
5 | |
4 | |
3 | |
3 | |
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.