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

SAP B1 Query Generator- Text Line on Sales Order

$
0
0

Hi,

 

I am trying to run a query on sales order entry to include any text lines. I have the following:

 

SELECT T0.[DocDate], T0.[DocNum], T2.[SlpName], T0.[CardCode], T0.[CardName], T0.[NumAtCard], T1.[U_CreditType], T1.[U_ClaimCategory], T0.[U_RSWTotalCost], T1.[ItemCode], T1.[Dscription], T1.[Quantity], T1.[Price], T3.[LineText], T0.[Comments]

FROM ORDR T0 INNER JOIN RDR1  T1 ON T0.DocEntry = T1.DocEntry INNER JOIN OSLP T2 ON T0.SlpCode = T2.SlpCode INNER JOIN RDR10 T3 ON T0.DocEntry = T3.DocEntry

WHERE T0.[DocDate] >= [%1] AND T0.[DocDate] <= [%2] AND T1.[U_CreditType] Like '%%_%%'

ORDER BY T0.[DocDate]

 

But if there are 3 item lines on the order, and 2 additional text lines- the report prints 6 lines for the sales order (i.e. each item line twice- refer attached). Is there anyway of getting the query to pick up the text lines only once per sales order?

Query Preview 07.03.16.jpg


Viewing all articles
Browse latest Browse all 2161

Trending Articles