on 10-13-2010 7:32 AM
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
You mentioned: in one production order against multiple items, Similarly in multiple items there have been multiple ItemNames , I need multiple ItemName.
Is that not the case?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
Try this:
Select T2.ItemName,T1.*
from OWOR T0
Inner Join WOR1 T1 ON T0.DocEntry = T1.DocEntry
Inner Join OITM T2 On T1.ItemCode = T2.itemCode
Where T0.DocNum = '[%1\]'
ORDER BY T1.Linenum
Thanks,
Gordon
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
There is a problem in this Query
Select T2.ItemName,T1.*
from OWOR T0
Inner Join WOR1 T1 ON T0.DocEntry = T1.DocEntry
Inner Join OITM T2 On T1.ItemCode = T2.itemCode
Where T0.DocNum = '[%1]'
ORDER BY T1.Linenum
it will give me All the itemName which is in the OITM table.
but i need specific item Name which belong to one Production order..
please Help me...... waiting for your reply
Edited by: Rizzikhan on Oct 13, 2010 9:07 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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
95 | |
11 | |
11 | |
6 | |
6 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.