Skip to Content
author's profile photo Former Member
Former Member

Production cycle !!!!!!

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

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Oct 13, 2010 at 06:47 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
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 13, 2010 at 06:47 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      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

  • author's profile photo Former Member
    Former Member
    Posted on Oct 13, 2010 at 06:12 PM

    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?

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.