on 07-09-2015 11:39 AM
Hi Experts,
i have created an approval stage and approval template for A/P Downpayment request.
I will like to have a query that will be used for A/P down payment request that will show the names of the authorizers for the document. The number of approval required is two and i want to see both names of the users approving the document.
Just as shown below;
Hi Justice,
Please try below query and give your feedback
SELECT T5.U_NAME "RequestedBy"
,T6."U_NAME" "Originator"
, T0."DocNum", T0."DocStatus", T0."DocDate"
,T13.U_Name [Authorized By]
FROM ODPO T0
Left Outer Join ODRF T4 ON T0.[draftKey] = T4.[DocEntry] and T4.ObjType = 204
Left Outer Join OUSR T5 on T4.UserSign = T5.USERID
LEFT oUTER jOIN OUSR T6 on T0.UserSign = T6.USERID
Left Outer Join OWDD T11 on T11.ObjType = 204and T11.DocEntry = T0.DocEntry
Left Outer join WDD1 T12 on T12.WddCode= T11.WddCode and T12.Status='Y'
LEFT oUTER jOIN OUSR T13 on T12.UserID = T13.USERID
WHERE T0."CANCELED"='N'
Order By T0."DocDate", T0."DocNum"
Thanks
Unnikrishnan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
100 | |
12 | |
11 | |
6 | |
6 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.