on 03-21-2019 10:53 PM
Dear All,
If a customer has any past dues, then an approval process should trigger while creating new Sales order for that customer. I need a query that I can use to setup my approval process in SAP Business One on HANA...
Thanks,
RV
Hi,
Please check the below:
SELECT DISTINCT 'TRUE'
FROM OINV
WHERE "CardCode" = $[ORDR.CardCode] AND DAYS_BETWEEN(CURRENT_DATE,"DocDueDate") < 0 AND "DocStatus" = 'O'
Regards,
Bala
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Bala,
Thanks for the solution..I am getting syntax error, incorrect syntax near $. I am running this query in HANA db.
Thanks for the help!
RV
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
95 | |
11 | |
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.