Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8667

Uncompressing the Address2 field in OINV

$
0
0

I thought I had seen a SQL script on the portal to do this but I can't find it now.  I am trying to create a query that will give me a list of AR invoices for a specific state (WA) within a date range.

 

How can I extract or search for just the state portion of the Address2 field?  Using the OCRD does not work because it will returnanyinvoice that has a shipping address state of WA.

 

(SELECT T0.[DocNum], T0.[DocDate], T0.[CardCode],

T0.[CardName], T0.[NumAtCard], T1.[WhsCode],

T1.[ItemCode], T1.[Dscription], T1.[Quantity],

T1.[LineTotal], T0.[Address2]

FROM OINV T0

INNER JOIN INV1 T1 ON T0.[DocEntry] = T1.[DocEntry]

INNER JOIN OCRD T2 ON T0.[CardCode] = T2.[CardCode]

WHERE T2.[State2] =[%0] AND  T0.[DocDate] >=[%1]

AND  T0.[DocDate] <=[%2])

 

Thank you for any help you can give me.

 

Jeff


Viewing all articles
Browse latest Browse all 8667

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>