Quantcast
Channel: SCN: Message List - SAP SQL Anywhere
Viewing all articles
Browse latest Browse all 2182

Problem in query how to set the data in crystalreport according user entry ???

$
0
0

Dear all,

 

 

Please give the suggestion  of problem in  sql query for the report

 

SELECT IBT1.ItemCode, WTR1.Dscription, WTR1.WhsCode,OBTN.DistNumber, OBTN.MnfDate, OBTN.ExpDate, WTR1.Quantity, OWTR.Filler

FROM      

  OBTN INNER JOIN

                      IBT1 ON OBTN.DistNumber = IBT1.BatchNum AND OBTN.ItemCode = IBT1.ItemCode INNER JOIN

                      OWTR ON IBT1.BaseNum = OWTR.DocNum AND IBT1.BaseType = OWTR.ObjType INNER JOIN

                      WTR1 ON IBT1.WhsCode = WTR1.WhsCode AND IBT1.ItemCode = WTR1.ItemCode AND OWTR.DocEntry = WTR1.DocEntry and IBT1.BaseLinNum=wtr1.LineNum

                     

WHERE OBTN.U_Packing_Date_04 IS NOT NULL and IBT1.ItemCode like 'FIVF%'  and WTR1.WHSCODE = 'PACK_REJ'

and

(OWTR .DocDate >='20151101') and 

(OWTR.DocDate <='20151130') and  wtr1.Quantity  >=10000

   and Direction  = 0

  and isnull (U_Disp_Fg_Gq,'NA') <> 'No'

 

in the query there one problem is it catch  only  first entry of datawarehouse if there another entry done by user then it will not update in report it show only first entry.

 

 

Regards,

Varun Pandya


Viewing all articles
Browse latest Browse all 2182

Trending Articles



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