Hi,
This is my customization form wip query
select m1.docnum 'WIP NO', d.U_RejQty 'WIPRej',d.U_RewQty 'WIP re-work' ,d2.U_RejQty 'QCRej',d2.u_rewqty'QC Re-Work',d2.U_Opename 'Operation',
m1.u_qchname as PreparedBy,m1.u_shift,m1.u_remarks,m1.u_remrej,m1.u_Remscrp,m.docnum 'FO NO',m.plannedqty,m.rlsdate,m.itemcode,m.u_tdrawno,m.CardCode,n.cardname,
(select itemname from oitm where itemcode=m.itemcode) 'Description'
from OWOR m
left outer join [@SHJ_WIP_UPD1] d on m.DocNum =d.U_OrderNo
left outer join [@SHJ_WIP_OUPD] m1 on m1.DocEntry =d.DocEntry
left outer join [@SHJ_QC_INS5] d2 on m.DocNum =d2.U_OrderNo and m1.DocNum =d2.U_WIP
left outer join OCRD n on
m.CardCode=n.CardCode
where m.rlsdate between {?FromDate} and {?ToDate}
and (d.U_RejQty>0 or d.U_RewQty>0) and ( d2.U_RejQty>0 or d2.U_RewQty>0)
In ths query am displaying the rejection items and rework items alone but for me its showing all the items rejection and rework items zeros also showing.
am getting output like this
I need output only highlighted item because there only rejection items
Regards
Vinoth