Skip to Content

need sale order docnum in query?????

SELECT distinct T0.Docentry,t0.docnum,T0.docdate,T1.ItemCode, T1.Dscription, T1.U_jobno, t0.filler,T1.WhsCode, T1.Quantity,T0.Jrnlmemo FROM OWTR T0 INNER JOIN WTR1 T1 ON T0.DocEntry = T1.DocEntry INNER JOIN OITM T2 ON T1.ItemCode = T2.ItemCode INNER JOIN OWHS T3 ON T0.Filler = T3.WhsCode INNER JOIN OITW T4 ON T2.ItemCode = T4.ItemCode where T1.U_jobno like N'%[%0]%'

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    Posted on Aug 16, 2012 at 11:01 AM

    Vinayak,

    SELECT distinct T0.Docentry,t0.docnum,T0.docdate,T1.ItemCode, T1.Dscription, T1.U_jobno,

    t0.filler,T1.WhsCode, T1.Quantity,T0.Jrnlmemo ,Salesorder=t5.docentry FROM OWTR T0

    INNER JOIN WTR1 T1 ON T0.DocEntry = T1.DocEntry

    INNER JOIN OITM T2 ON T1.ItemCode = T2.ItemCode

    INNER JOIN OWHS T3 ON T0.Filler = T3.WhsCode

    INNER JOIN OITW T4 ON T2.ItemCode = T4.ItemCode

    inner join ORDR t5 on t5.CardCode=t0.CardCode

    inner join RDR1 t6 on t6.DocEntry=t5.DocEntry and t6.ItemCode=t1.ItemCode

    where T1.U_jobno like N'%[%0]%'

    Regards

    Kennedy

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 16, 2012 at 01:32 PM

    Hi,

    Could you post your original query result?

    Thanks,

    Gordon

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Aug 24, 2012 at 02:45 PM

    Hi,

    Is not Posible.

    need then Create the Udf in inventery transfer and Enter the Sales order Number

    Thanks,

    Nithi

    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.