cancel
Showing results for 
Search instead for 
Did you mean: 

Production cycle !!!!!!

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

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?

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

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