AME Approval Query
Hi ,
We are on R12 and using Iproc and AME.
For Requisition Approval, currently we have defined Rules with Header Item class to generate a list of approvers using an Approval group.
So, if a Requisition has 10 lines, then the req is sent for approval to the relevant approval groups once based on Rules defined.
eg: Req1-> Approval Group1 -> Approval Group2 -> Approval Group3 -> End
Say, a Requisition is approved by approver Group1 and then if someone changes one of the lines, and resubmits the Requisition, it then goes for re-approval to ALL the approval groups again.
Is there a way to prevent this and make it go to the remaining approvers ONLY(Group 2 and Group3) ?
I know this is not an ideal approach, but for now just need to know in theory if this is possible using the setups in AME.
Thanks
SG
Hi,
You could look into AME attributes if there is one that allows this desired functionality. May be repeated approvers or something like it.
In worst case you can write the approval group queries to avoid re-approvals. Use ame_temp_old_approver_lists table to identify the approvals that are already done. The item ID in this table is transacttion_id (requisition_id).
Although i am not very certain if ame_temp_old_approval_lists will have data while approval group 2 query is run but its worth a try.
~Amol
Similar Messages
-
Approval Query for a specific customer group
Dear Experts,
Following is the scenario, customer deals with whole sale and retail customers group. The client wishes to ensure that If the whole sales customer group account balance greater than zero then while making a sales order or invoice it should trigger approval.
SaravananHi Saravnan......
Thy this Approval Query and just put the Group Code for your customer in this group code's inverted comma....
SELECT Distinct 'TRUE' From OCRD T0 Where T0.Balance>0 and GroupCode=' '
And T0.CardCode=$[ORDR.CardCode.0]
If above does not work then use below...
SELECT Distinct 'TRUE' From OCRD T0 Where T0.Balance>0 and GroupCode=' '
And T0.CardCode=$[$4.0.0]
Regards,
Rahul -
Error while opening AME Approval Function
Hi All
I am trying to open the AME "Approvals" Function in R12 Vision Instance and I am getting the following Error.
The requested URL /pls/VIS/OracleSSWA.Execute was not found on this server.
Seeded approval functionality for iRec is working fine.
I am logging in with a vision instance user only with a seeded responsibility "FED AME Application Administrator".
I checked the function details but could not make out any thing. Here are the function details
Function: AME_WEB_APPROVALS
User Function Name: Approvals Management
Properties:
Type: SSWA plsql function that opens a new window (Kiosk Mode)
Maintenance Support Mode: None
Context Dependence: Responsibility
Web HTML
HTML Call: ame_rules_ui.listRulesForm1
Web Host:
Encrypt Parameters: Checked
Have you got any of these issues.
Thanks
GauravIn R12 old AME functionality will not work. Old AME pages as in 11.5.10, AME.A are built using mod PL/SQL. But in R12 mod PL/SQL is not supported. In R12 all the AME pages are build using OA Framework now and using RBAC mechanism for assigning responsibilities.
For setting up AME Rules in R12 one can follow the following note
Approvals Management Responsibilities and Setups in AME.B
https://metalink.oracle.com/metalink/plsql/showdoc?db=NOT&id=434567.1&blackframe=1
Following are the error you might get while opening the AME Approval function from old responsibility.
1.
The requested URL /pls/VIS/OracleSSWA.Execute was not found on this server.
OR
2.
Can not access function AME_WEB_APPROVALS. This installation does not manage mode pl/sql. Please contact your System Administrator.
Regards
Gaurav -
Problem with user defined approval query
Hi
Sorry me for my english
I have a problem with approval query
DECLARE @DocDate DATETIME
SET @DocDate = (SELECT $[OINV.DocDate])
IF (DATEDIFF(DAY,@DocDate,GETDATE())) != 0
BEGIN
SELECT DISTINCT 'TRUE'
END
the query works with the previous invoices, but today's invoices show me a error colud not commit transaction
Can Help me?
Thanks
Felipe LoyolaHi Felipe Loyola,
Try this:
SELECT DISTINCT 'TRUE' FROM OINV T0
WHERE DATEDIFF(DD,T0.DocDate,GETDATE()) != 0 AND T0.DocNum = '$[$8.0.0\]'
Thanks,
Gordon -
Rounding data on an approval query
Hello everyone...
As You know, taxes have increased in Mexico so we created new tax codes and accounts, and since I can't block any of the old taxcodes/acounts until all previous documents have ben closed/paid the only option I could think of was creating an approval process for all documents using the previous tax codes, since I can't create an approval query based on document lines/rows, I created it comparing the document's tax vs the document's total ($$). The old taxes were 10% and 15% these are the percentages I want to "block" using the approval process.
Here's the query I created
IF (($($27.0.number) = $($22.0.number).15) OR ($($27.0.number) = $($22.0.number).1) ) SELECT 'TRUE'
The query/approval works, but there is a problem: SBO rounds to 2 decimals, so for a $ 124.15 sale the 15% tas would be 18.6225 but the tax ammount field would show 18.62 only which by being different in 0.0025 passes the criteria...
How can I make this query work with rounded data?, I tried using round($($22.0.number)) but when then I always get a "Cannot comit transaction" error..
Thanks in advance
HugoHugo,
I am glad my suggested solution worked. I try to answer only questions that I know will work.
It does not help in answering on a trail and error basis which unfortunately happens a lot of times as the enthusiasm in answering keeps away the focus.
Depending on your decimal places definition in General Setting the numbers would be rounded.
Using CAST to Varchar will also preserve the decimals but the numeric value will get converted.
Best wishes
Suda -
Approval Query to skip for one Vendor Group - Not working
Dear All,
I am trying to create an approval query wherein when a user creates a Purchase Order for a Particular Vendor Group then the approval check is not required and for other Vendor Group approval check is required. The query is as under :
SELECT distinct 'true' FROM OPOR T0 INNER JOIN OCRD T1 ON T0.CardCode = T1.CardCode INNER JOIN OCRG T2 ON T1.GroupCode = T2.GroupCode WHERE T2.GroupName <> 'Supplier Own Group'
I don't want that which vendors are in Supplier Own Group check go for an approval process. Means all vendors in this group should get skipped for approval.
How to achieve this because this query seems not to be working in the approval process because when a user creates a PO whose Vendor group is under Supplier Own Group then also the approval checking is happening.
Please help how to resolve this issue.
Regards,
DepikaHi,
Try this
SELECT distinct 'true' FROM OPOR T0 INNER JOIN OCRD T1 ON T0.CardCode = T1.CardCode INNER JOIN OCRG T2 ON T1.GroupCode = T2.GroupCode
AND T2.GroupName <> 'Supplier Own Group' where T0.CardCode = $[$4.1.0]
Hope this helps,
Son. -
Approval Query when a Sales Return Document is Created.
Hi all,
When i post a Sale Return Document , the following Approval Query is not working when i try to work out for Approval of a New Sales Return document is Created.
Select 'TRUE' From ORDN T0 Where T0.DocStatus='O' And Datediff(dd,T0.DocDate,Getdate())=0
Is there any wrong with this Query?Just Opened the Recently Added Return Document with all the other window closed.
Then, Tools -->Queries --> User Queries --> Approval Procedure (Category where my above sales return query is placed in the Query Manager) --> Sales Return (Return Query)
When clicking on it...the query Generator window opens with TRUE as the result.
But When adding the Return Document the REMARKS Window which always Opens for all the Approval Documents isn't Opening -
Approval Query for AP Invoices Containing Budget Related GL Account
Hi Experts,
I would like to create a approval template for all AP invoices that include a GL account that is related to the budget. Can you please help me with the approval query?
Thank you!
JaneHello Gordon Du,
"B1 approval will only apply to document level. If you want to check line level, only the first line can be subjected to."
I was thinking to trigger the approval process based on a document (AP invoice) containing relevant cost centres on a line by line basis as entered via one of the enabled dim fields.
Writing a trigger query for each cost centre effected? This does not appear to be a good solution, what is a better direction. Is there another way? (PO are not yet used via SAPB1)
Currently my invoices add, but do not trigger the approval process based on my attempts thus far.
Can the originator manually choose an approval pathway?
If this is against posting etiquette delete and advise.
I am a relative newbie to SAP B1, so am happy to be pointed to relevant help files. I arrived via google searching and arrived here.
Thankyou. -
AME Approval Group is FND USER, but it is giving error
Hi,
I have developed an AME Rule, it is a pretty simple rule , and has one of the approval Group which is static and has FND User as the approval type.
The approval group and the rules are created , but as the user submits a transaction , they receive an error "AME Approval list could not be generated, please contact your System Admin". As soon as we remove the static Approval group (FND USER based group) the transaction is submitted successfully and the AME approval list is also generated.
The FND user , we are using in this scenario is not an HR User, but is a valid User Account.
Am I missing something , please any help will be appreciated.
Instance details :
Application Version 12.1.2
DB 11.0.3Approvals Management Business Analyst Dash Board,
Select your Transaction Type --> Click on the Approval Group --> Create New Group
Name XXX
* Description XXX
* Order Number : 1
Voting Method : Serial
Usage Type Static
Approver Type :
Add another Row
fnd_user --> Select the user , click on apply.
Attach this approval group to your rule
Hope this helps.
Thanks,
Ranga -
Dear Gurus
Iam facing a issue in SSHR absence approval flow.
Whats happening is that if an employee applies for leave or absence , his request does not only goes to his immediate senior but also to people above his senior. I only want the request to only go to his senior. Basically can you plz tell me how to put a cut in approval hierarchy so that his request only goes to his immediate supervisor and not to anybody above then that.
Thank you
Regards,
Muhammad Noman ShafiqueHi,
In the AME transaction for SSHR, you will need to change the rule for the workflow in question to one level of supervisor only. You can do this from the Approvals Management Business Analyst or equivalent responsibility in your implementation.
1. Query the transaction.
2. Check and identify the rule for absences within your setup. (typically by the workflow name but could be different in your setup)
3. Create a new rule on similar lines but with an approval group of Require approvals up to the first superior
Regards,
Vinayaka -
Dear all,
I want to set an approval for purchase order document. but there is one condition, the purchase order should only go for approval when they are belonging two item groups (kitchen and crockery item groups).
Please help me in writing the query.
Thanks & Reagrds
Tavargeri GaneshDear Tavargeri Ganesh,
Unfortunately, your required query can not be created because that info is not on the header but in the row level. The possibility could be if your approval depend only the first line item.
Thanks,
Gordon -
Approval Query on multi-level line discounts
Hi Experts,
I have this query that is attached in the A/R Reserve Invoice> free text field that triggers different values corresponding to the to approval levels of the management. The query is triggered when a discount is manually change. Also, the free text returns a null value, if the item chosen is defined in period & volume discounts table (OSPP & SPP1).
However, the issue arises when the client creates first a Sales Quotation which has an item defined in OSPP (promo item), upon copying to RI, the FMS returns a value instead of null, especially if the item copied is a promo item.
I need help to modify this query to consider also if the item (promo) is copied from a base document.
Thanks,
Don
If CONVERT(real,$[$38.15.11]) > 0.00 AND
NOT EXISTS (
SELECT DISTINCT ItemCode FROM OSPP WHERE ItemCode = $[$38.1.11] AND ListNum=1
AND Discount <> 0.00)
OR
NOT EXISTS (
SELECT DISTINCT ItemCode FROM SPP1 WHERE ItemCode = $[$38.1.11] AND ListNum=1
AND Discount <> 0.00 AND (CONVERT(smalldatetime,$[$10.0.Date],101) >= CONVERT(smalldatetime,FromDate,101))
AND (ToDate IS NULL OR CONVERT(smalldatetime,$[$10.0.Date],101) <= CONVERT(smalldatetime,ToDate,101)))
Begin
DECLARE @discprct1 as real, @discprct2 as real
SELECT @discprct1 = 0.00, @discprct2 = 0.00
SELECT @discprct1 = ISNULL(OITM.U_DiscLimit1,0.00) FROM OITM WHERE OITM.ItemCode = $[$38.1.11]
SELECT @discprct2 = ISNULL(OITM.U_DiscLimit2,0.00) FROM OITM WHERE OITM.ItemCode = $[$38.1.11]
If @discprct2 <> 0
Begin
If CONVERT(real,$[$38.15.11]) > @discprct2 SELECT 'Level3 Approval'
ELSE
SELECT CASE WHEN (CONVERT(real,$[$38.15.11]) <= @discprct2) AND
((@discprct1 = 0.00) OR (CONVERT(real,$[$38.15.11]) > @discprct1))
THEN 'Level2 Approval' ELSE
(SELECT CASE WHEN (CONVERT(real,$[$38.15.11]) <= @discprct1) AND @discprct1 <> 0.00 THEN 'Level1 Approval' ELSE '' END)
END
End
Else
If @discprct1 <> 0
SELECT CASE WHEN CONVERT(real,$[$38.15.11]) > @discprct1 THEN 'Level2 Approval' ELSE 'Level1Approval' END
ELSE SELECT 'Level1 Approval'
End
ELSE SELECT ''Hi Ravi,
The users don't want to restrict the whole report on a specific customer or material. The only user input variable that will be available is the customer order date.
The restriction has to be on the value of caracteristics coming from each individual sales orders that appear on the report.
Exemple: I ask for sales order for a specific date and it gives me 2 sales orders with different customers and materials:
Customer order list:
- Ord# 1000241, Cust#100, Mat #A01, $100, <b>128$, 95$</b>
- Ord# 1000244, Cust#115, Mat #B02, $100, <b>119$, 118$</b>
The amount 128$ is restricted by date, and customer #100
The amount 95$ is restricted by date, and material #A01
The amount 119$ is restricted by date, and customer #115
The amount 118$ is restricted by date, and material #B02
Thanks in advance,
Regards, -
AME Approval - Requisition Line Level. Oracle R12.2.4
We are trying to configure business scenario where approval work for req/ po at line level
For example:
We are configuring AME in such a way that Approval must first go to Task manager and then to project manager
1 requisition has 4 lines, 3 lines cater to project X and 1 line cater to Project Y
Now, in above scenario, if I submit Req. for approval,3 lines should go to Project Manager of proj.X and 1 line to Project manager of Proj Y
There will be cases where a requisition with multiple lines be submitted for approval. In the event that 2 of the three lines get approved, the rejection notification will only be send to the requestor with the rejected line. When the document is resubmitted for approval only the rejected line approver is notified.
Please let us know the feasibility of this in AMEHello,
Primarily the job of AME is to provide you with a list of approvers based the way you have configured the same.
Now, it is possible that you can check the requisition lines and check whether a line is project based or Task based
and you will also be able to pull the approver list.
But, the question is (as mentioned earlier PranitSaha), how do you break the requisition into different lines and send them for different approvals?
I mean, how do you generate different transaction_id for each of the requisition lines if the requisition is at the header level.
Though you can get the list of approvers, the requisition may be going for approval only once.
For Eg, in Payables the workflow is designed to send the invoice for approval at the line level.
So, how do you handle it if the requisition is submitted for approval at the header level. You may have to check if the Product allows you to do that.
What is possible in AME is you can review the requisition lines whether they are Project based or Task based and you can bring in all the approvers
in the approver list.
Thanks and Regards
Niru -
Payables Invoice line/distribution limit for AME approval
Hello,
We have some AP invoices with 3000 lines and more sometimes.
We are using AME.
I can see Invoice Approval Workflow is running forever when the document has more than 1000/1500 lines.
Is there any limit in AME for the number of lines for a given transaction document.
Many Thanks,
VinodFollow the following steps to do the personlization:
Open the AP Invoice window. Go to Help --> Diagnostics --> Custom Code --> Personalize
Enter a sequence and description as desired.
Condition tab:
Trigger Event: WHEN-VALIDATE-RECORD
Trigger Object: INV_SUM_FOLDER
Condition: :INV_SUM_FOLDER.REQUESTER_ID is null
Actions Tab:
Seq: 1
Type: Property
Object_type: Item
Target Object: INV_SUM_FOLDER.REQUESTER_NAME
Property Name: Value
Value: =select full_name from per_all_people_f
where person_id = (select employee_id from FND_USER
where user_id = :INV_SUM_FOLDER.CREATED_BY)
and sysdate between effective_start_date and effective_end_date
Seq: 2
Type: Property
Object_type: Item
Target Object: INV_SUM_FOLDER.REQUESTER_ID
Property Name: Value
Value: =select to_char(person_id) from per_all_people_f
where person_id = (select employee_id from FND_USER
where user_id = :INV_SUM_FOLDER.CREATED_BY)
and sysdate between effective_start_date and effective_end_date
Save and validate the personalization. Close all window, open the invoice window again and enter the invoice details. Upon saving the invoice header, the person name and id will be populated automatically.
Ensure that an employee is attached to the person entering the transaction (in the user definition screen).
Hope this helps
Vinit -
AME approval on different person
Hello all,
I have an requirement in AP Invoice approval.
While create an invoice that has to approved by CFO and Audit person(who is verify with manual invoice).
CFO is supervisor to the Accountant but Auditor is not a supervisor to the accountant.
How to do this approval process in AME..
Please guide to achieve this process.
Thanks and Regards,
MuthuPlease can I have any update
Maybe you are looking for
-
Can i add an internal hard disk in Satellite A300-20P
Satellite a300 20p has 2 places for hard disk Can i add another one beside the existing one?
-
How do I create tabs for pdf documents?
I need to create tabs for documents I am saving as a single pdf file.
-
Can I buy more storage space for my IPAD2
I have a 16G IPAD2. Is it possible to buy more memory for it?
-
HT4859 Can I delete all pictures off my iPhone once they are backed up on ICloud
Just wondering before I delete photos and videos off my 4s phone to free up room (almost 4gb) on a 16gb phone? Thanks
-
I recently purchased Lightroom 5 dvd. I'm wondering if it is possible to return it and subscribe to Lightroom 6? I've loaded it my computer, but instructor said I should switch.