cancel
Showing results for 
Search instead for 
Did you mean: 

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

jbrotto
Active Contributor
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

Answers (1)

Answers (1)

kothandaraman_nagarajan
Active Contributor
0 Kudos

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