Skip to Content

Query Based Approval Probelm

Hello Expert,

I was working on Query based Approval for Delivery Document

I want Approval When value in one UDF at Document Level Deviates at Delivery Level with respect to base SO then it should go for Approval

I have made Query like this but none of my Document is going for Approval

Select Distinct 'True'
from ODLN T0 Inner Join DLN1 T1 On T0.DocEntry = T1.DocEntry 
Inner Join ORDR T2 On T1.BaseEntry = T2.DocEntry
Where T0.U_UDF1 <> T2.U_UDF1 AND T0.DocNum = $[ODLN.DocNum]

Please help me out.

Regards,

Bhavank

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Feb 18, 2011 at 01:46 PM

    Hi Bhavank......

    Try this.......

    Select Distinct 'True'
    from ODLN T0 Inner Join DLN1 T1 On T0.DocEntry = T1.DocEntry 
    Inner Join ORDR T2 On T1.BaseEntry = T2.DocEntry
    Where T0.U_UDF1 != T2.U_UDF1 AND T0.DocNum = $[$8.0.0]

    Or

    Select Distinct 'True'
    from ODLN T0 Inner Join DLN1 T1 On T0.DocEntry = T1.DocEntry 
    Inner Join ORDR T2 On T1.BaseEntry = T2.DocEntry
    Where T0.U_UDF1 != T2.U_UDF1 AND T0.DocNum = $[ODLN.DocNum.0]

    Regards,

    Rahul

    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.