on 11-16-2009 11:03 AM
Hi Experts,
We place approval procedure for 2 users in SAP B1 2007B pl15.
Some SO does not pass approval procedure and we cannot trace why. The are 2 set up for approval procedure 1 for within on below credit limit. The other one beyond credit limit.
Does anyone have the same problem with Approval procedure?
What do I need to check to isolate the problem?
Regards,
Amy
Hi,
I think you are dealing with Multicurrency,try to include the currency also in the approval query's condition,
Now check whether it is triggering accordingly.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The error is because of the two queries' logic. Whenever a draft submitted, 2 contrary checking must be processed in the same time.
The first query might be changed from < limit to a range from a small value to the limit.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Gordon,
We tried to disable the SO query beyond credit limit in a test database to check if the approval procedure will run if there are no other queries checking the credit limit. Now we only have one query running- the SO within credit limit.
We eliminated another possibility for the error. The error occurs for a newly created BP. The approval procedure will not work in SO is the first SO ever created in the system. All subsequent SO will go thru the approval procedure even if the SO, DN and Account balance is zero
1)We also tried this query and diabled the SO Beyond Credit Limit
SELECT DISTINCT 'TRUE' from DBO.ORDR T0 INNER JOIN DBO.OCRD T1 ON T0.CardCode=T1.CardCode Where T0.CardCode=$[$4.0.string] and T1.CreditLine >=(
(case when T1.Balance = 0.00 then 0.00 else T1.Balance end) +
(case when T1.OrdersBal = 0.00 then 0.00 else T1.OrdersBal end) +
(case when T1.DNotesBal = 0.00 then 0.00 else T1.DNotesBal end) +
+$[$29.0.number])
2) We also tried the Deviation from credlit limit is less than .01. Still error.
Is this a system error or error in the query?.
Regards,
Amy
I don't understand your logic to check those 3 balances. However, technically, you may try this simplified query:
SELECT DISTINCT 'TRUE' from DBO.OCRD T1 Where T0.CardCode=$[$4.0.0\] and
T1.CreditLine >= ISNULL(T1.Balance, 0) + ISNULL(T1.OrdersBal,0) +
ISNULL(T1.DNotesBal,0) + $[$29.0.number\]
Hi Gordon,
I also tried the query below. The approval procedure is now working for new customer upon testing. We will still observe if the query below will really solve the problem.
SELECT DISTINCT 'TRUE' from DBO.OCRD T1 Where T1.CardCode=$[$4.0.0] and T1.CreditLine < ISNULL(T1.Balance, 0) + ISNULL(T1.OrdersBal,0) +
ISNULL(T1.DNotesBal,0) + $[$29.0.number]
Thank you!
Regards,
Amy
Edited by: Amy D. Ricohermoso on Feb 23, 2010 6:20 AM
You may post your queries here for others to check.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Gordon
Here are teh 2 query for the SO Approval Procedure
Credit limit check beyond credit limit
SELECT DISTINCT 'TRUE' from DBO.ORDR T0 INNER JOIN DBO.OCRD T1 ON T0.CardCode=T1.CardCode Where T0.CardCode=$[$4.0.string] and T1.CreditLine<(T1.BalanceT1.OrdersBalT1.DNotesBal+$[$29.0.number])
and
Credit limit check within credit limit
SELECT DISTINCT 'TRUE' from DBO.ORDR T0 INNER JOIN DBO.OCRD T1 ON T0.CardCode=T1.CardCode Where T0.CardCode=$[$4.0.string] and T1.CreditLine >=(T1.BalanceT1.OrdersBalT1.DNotesBal+$[$29.0.number])
Regards,
Amy
Hi!
Can you please tell me in which Document you are firing the Approval Procedure.
According to your Query, Approval will be triggerd only for those BP for whom you have entered Sales Order.
Can you pl check the document which is not going fr approval has SO or not.
Edited by: Thanga Raj.K on Jan 25, 2010 11:19 AM
Hi Amy,
Try this,
Credit limit check beyond credit limit
SELECT DISTINCT 'TRUE' FROM ORDR T0 INNER JOIN OCRD T1 ON T0.CardCode=T1.CardCode
Where T0.CardCode=$[4.0.0]
AND
T1.CreditLine<(SELECT $[$29.0.Number]+T1.Balance+T1.OrdersBal+T1.DNotesBal)
Credit limit check within credit limit
SELECT DISTINCT 'TRUE' FROM ORDR T0 INNER JOIN OCRD T1 ON T0.CardCode=T1.CardCode
WHERE T0.CardCode=$[$4.0.0]
AND
T1.CreditLine >=(SELECT $[$29.0.Number]+T1.Balance+T1.OrdersBal+T1.DNotesBal)
HI,
Please dont question the requirement. This is still an issue. Anyway the reason for 2 separate query is that the approver for SO within the credit limit is up to supervisor level only while approval for beyond credit limit will go to another set of approver up to VP for finance.
We are still testing the query you have provided since as I've said this is still a random issue. We still cannot isolate the cause of the error.
Thank you for the query.
Regards,
Amy
Hi Gordon,
Since we have 2 separate query we set up 2 separate approval template for each query. Below is the current set up.
1)Within credit Limit = 2 approver/stages
originator
Approver1
Approver2
2)Beyond credit limit 3 approver/stages
originator
Approver1
Approver2
Approver3
I did not undertand why did you mention the different stages since the different stages is the only way to meet our requirement. Is there another way uing SAP B1 approval template?
We did not think this is an error on the approval template set up. Right now we are concentrating on the 2 query.
Regards,
Amy
Hi Gordon,
We have 2 different approval templates for each query and each template has stages of approval just like below
Beyond credit limit approval
Stage 1 Supervisor1
Stage 2 manager1
Stage 3 CFO
Within credit limit approval
Stage 1 Supervisor1
Stage 2 manager1
Based on this set up please clarify your suggestion.
Regards,
Amy
Hi Gordon,
If we will set up the approval this way then the CFO will have to check manually if manager has approved the document before he can also approve the SO. The 3 stages of approval is a requirement. The CFO cannot approve without prior approval of the manager.
Back to the issue, is the error cause by the wrong query?
Regards,
Amy
When you say "The are 2 set up for approval procedure 1 for within on below credit limit. The other one beyond credit limit." it seems that every document would have approval's required.
Have you used you own query to determine the credit limit deviations or are you using the parameters which come with the system?
Suda Sampath
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Amy,
Do you mean you have selected standard Deviation from Credit Limit term for two approval templates? If it is true, what is your exact Ratio selected?
Thanks,
Gordon
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
98 | |
12 | |
10 | |
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.