on 03-13-2019 5:16 AM
dathulworkssap-community13-3-19.jpgHi All,
I want a query report of tracking No. Please find the attached image.dathulworkssap-community13-3-19-1.jpg
Hi,
Try the below
declare @From date
set @From= /* select min(T0.[F_refdate]) from [dbo].[OFPR] T0 where T0.[F_refdate]=*/ [%0]
declare @To Date
set @To= /*select max(T0.[T_refdate]) from [dbo].[OFPR] T0 where T0.[T_refdate]=*/ [%1]
declare @name VarcHar(150)
set @name =/* Select max(a.CardName) from OCRD a where a.CardName= */'[%2]'
SELECT T0.docnum , 'Delivery' as 'DocType' , t0.cardcode , t0.cardname ,
t1.U_part_no , t1.itemcode, t1.Dscription , t1.Quantity , t1.price as 'Purchase Price',t0.Doctotal,t0.TrackNo
FROM ODLN T0
JOIN DLN1 T1 ON T1.DocENtry=T0.DocEntry
Where T0.DocDate >= @from and T0.DocDate <= @to and T0.CardName = @name
Union all
SELECT T0.docnum , 'Invoice' as 'DocType' , t0.cardcode , t0.cardname , t1.U_part_no , t1.itemcode, t1.Dscription , t1.Quantity , t1.price as 'Purchase Price',t0.Doctotal,t0.TrackNo FROM OINV T0 JOIN INV1 T1 ON T1.DocENtry=T0.DocEntry Where T0.DocDate >= @from and T0.DocDate <= @to and T0.CardName = @name
Regards,
Bala
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for the query, faced some errors
dathulworkssap-community13-3-192.jpg - Image 2 - Mentioned date & BP name, buts cant find out
dathulworkssap-community13-3-191.jpg
This is default behaviour of SAP B1, if you have more than one object then the Link arrow won't work!
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.