on 01-23-2017 8:20 AM
Hi,
I have two requirement on the approval query, basically the concept is the same just that it apply in different document. So there will be two different query.
Requirement A:
A/P Invoice need approval if Doctotal > 1000 AND CardCode NOT IN ('A001', 'A002')
Which mean A/P Invoice can be created directly if Doctotal < 1000 or Doctotal > 1000 and CardCode is A001/A002
Requirement B:
Outgoing Payment need approval if Doctotal > 1000 AND CardCode NOT IN ('A001', 'A002')
Which mean Outgoing Payment can be created directly if Doctotal < 1000 or Doctotal > 1000 and CardCode is A001/A002
Thank you
Hi Olga,
If I understood correct. Use this queries:
A/P Invoice
SELECT CASE WHEN $[$4.0.0] NOT IN ('A001', 'A002') AND $[$29.0.NUMBER] > 1000 THEN 'TRUE' ELSE 'FALSE' END
Outgoing Payment
SELECT CASE WHEN $[$5.0.0] NOT IN ('A001', 'A002') AND $[$45.0.NUMBER] > 1000 THEN 'TRUE' ELSE 'FALSE' END
Hope it helps.
Kind Regards,
Diego Lother
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Diego,
Sorry to bother you again, can you help me on this post?
https://answers.sap.com/questions/290267/sp-tn-to-check-the-value-of-a-column-field-in-oins.html
Thanks
Try this,
SELECT Distinct 'True' FROM OPCH T0 WHERE $[-$4.0.0] NOT IN ('V20000','V30000') and $[OPCH.Doctotal.Number] >1000
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Try this query,
SELECT Distinct 'True' FROM OPCH T0 WHERE $[-$4.0.0] NOT IN ('V20000','V30000') and $[$29.0.Number] >1000
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Try for AP Invoice,
SELECT Distinct 'True' FROM OPCH T0 WHERE $[$4.0.0] IN ('V20000','V30000') and $[$29.0.Number] >1000
Note: Change card code in above query.
Regards,
Nagarajan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
107 | |
12 | |
11 | |
6 | |
5 | |
4 | |
4 | |
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.