on 09-16-2016 8:39 AM
Hello Experts!
I need some help with creating a query for my approval procedures.
I would like to set up a query based approval template that creates an approval prompt whenever the quantity entered for a GRPO (PDN1.Quantity) is greater than the quantity from the referenced PO (POR1.Quantity).
Thank you!
Hi Nikka,
The last time i check, approval does not support document lines.
It check for the header only.
You may need to do work around, with the combination of sp notification.
Regards
Edy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Edy and Nikka,
First of all my SAP is 9.1 PL 12, maybe doesn't work in older versions.
About the Approval template in my version, is not possible do queries in line level looking information of the header level or queries in header level looking information on line level, but in the situation that Nikka describe, only look on line level then it is possible.
I did a lot of tests now, and I checked that the sintax $[Table.Field] doesn't work correctly for approval template, I don't know why. But if you look the screen field using the following sintax $[$Item.col] the approval template works correctly.
The new query:
SELECT
CASE WHEN CAST(REPLACE($[$38.11], ',', '.') AS Numeric) > Quantity THEN 'TRUE' ELSE 'FALSE' END
FROM
POR1
WHERE
DocEntry = $[$38.45] AND LineNum = $[$38.46] AND $[$38.43] = 22
$[$38.11] -> Column quantity
$[$38.45] -> Column BaseEntry
$[$38.46] -> Column Base LineNum
$[$38.43] -> Column BaseType
Hope it helps.
Best 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.
User | Count |
---|---|
95 | |
11 | |
11 | |
6 | |
6 | |
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.