Hi Jeyabalan,
You will have to create a UDF on OITM for the minimum GP percentage. Then you will have to create 2 UDFS in the document row. In the first you'll have to copy the minimum percentage from the OITM with a FMS like:
SELECT U_MinGP FROM OITM WHERE ItemCode = $[$38.1]
In the second UDF you will have to calculate the GP percentage with a FMS like this:
SELECT ($[$38.123.number] / $[$38.11.number] * $[$38.14.number])/100
Then you will have to create a query for the approval template.
SELECT Distinct 'True' FROM RDR1 WHERE $[RDR1.U_GP] < $[RDR1.U_MinGP]
Kind regards,
Andy Grootens
Asecom