Hello Everyone !!!!!!1
My Client required an interface which can combine the production cycle. In which single Interface shows all the Production cycle like Bills of material, Production Order, Issue from Production and received from Production.
Similarly i have developed single interface for now i have 1 problem ,
when i show all the the production order number in a matrix i got Prodcution order number, DocNo,and Status .
as u know in one production order against multiple items, Similarly in multiple items there have been multiple ItemNames , I need multiple ItemName .
For this i have developed a Query but unfortunately my query doesn't show all the ItemName.
*
Select Distinct B.* from OWOR
Inner Join WOR1 B ON OWOR.DocEntry = B.DocEntry
Inner Join OITM C On OWOR.ItemCode = C.itemCode
Where OWOR.ItemCode = '16.0LF2060WGD'
And OWOR.Status = 'R'
AND DocNum = 708680
*
Here 16.0LF2060WGD= Production order Number
R = Status of that production Order number which is in the Release Mode
Could anybody help me out and update my Query according to my Client request ...
Please ..............
Thanx
Edited by: Rizzikhan on Oct 13, 2010 8:34 AM
Hi,
if you want ItemName for Components, your second join is wrong. Try this one:
Select Distinct B.*, C.ItemName from OWOR Inner Join WOR1 B ON OWOR.DocEntry = B.DocEntry Inner Join OITM C On B.ItemCode = C.itemCode Where OWOR.ItemCode = '16.0LF2060WGD' And OWOR.Status = 'R' AND DocNum = 708680
Regards
Sebastian
Add a comment