Skip to Content

Make a approval that when a property is true for a BP that sales orders has to be approved

How would I write a query to make a sales order goes through an approval based on business partner property.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Sep 06, 2013 at 12:16 AM

    Hi Jonathan,

    Try this:

    SELECT DISTINCT 'TRUE' FROM OCRD A

    Where A.QryGroup1='Y' and A.CardCode=$[ORDR.CardCode.0]

    Just change the A.QryGroup1 if this is not the BP Property you're after.

    Regards,

    JP

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Sep 06, 2013 at 12:24 AM

    Hi,

    Try this:

    SELECT distinct 'true' FROM OCRD T0 WHERE T0.[CardCode] = $[ORDR.cardcode] and T0.[QryGroup1] = 'Y'

    Assign above query in approval template under terms tab.

    Thanks & Regards,

    Nagarajan

    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.