Академический Документы
Профессиональный Документы
Культура Документы
Page 1 of 12
AME : How to Diagnose Issues With the Default Approver List in Purchasing When Using
Modified: 29-Oct-2012
Type: TROUBLESHOOTING
Status: PUBLISHED
Priority: 3
In this Document
Purpose
Troubleshooting Steps
AME Setup
1. Test Workbench
4. Approval Workflow
5. PO_WF_DEBUG messages
2. Define conditions
References
Applies to:
Oracle Purchasing - Version 12.0.0 to 12.1.3 [Release 12 to 12.1]
Oracle iProcurement - Version 12.0.0 to 12.1.3 [Release 12 to 12.1]
Information in this document applies to any platform.
Purpose
Oracle Approvals Management, also known as the Approvals Management Engine (AME) lets you define approval rules ba
Oracle Purchasing handles the approval. AME is designed to generate the approval list according to the conditions and
and help users find solutions for scenarios where the approval list fails to be generated.
Troubleshooting Steps
How to Enable AME
For Requisitions
In order to enable AME for requisitions, follow these steps:
https://support.oracle.com/epmos/faces/ui/km/SearchDocDisplay.jspx?_adf.ctrl-state=... 26/11/2012
Document Display
Page 2 of 12
1. Navigate to Purchasing responsibility > Setup > Purchasing > Document Types
2. Select Purchase Requisition (or Internal Requisition) as the document type
3. Specify Approval Transaction Type = PURCHASE_REQ (or INTERNAL_REQ) to enable AME approvals for Purchase
enabled for purchase requisitions:
AME Setup
Reference Note 434143.1 How To Setup And Use AME For Purchase Requisition Approvals to learn about AME setup and
Use the Setup report to view and print the approval setup details for your transaction type. To run the setup
1.
2.
3.
4.
https://support.oracle.com/epmos/faces/ui/km/SearchDocDisplay.jspx?_adf.ctrl-state=... 26/11/2012
Document Display
Page 3 of 12
Here is a fragment of the setup report. Notice it has different sections for each one of the setup categories including
Document total
Category in subassemblies
Up to $10000
Category in subassemblies
Category in subassemblies
Over $100000
Requisition total
Over $100000
Approvals matrix
This table represents a simple business case and includes the possible approval actions based on the category and amoun
1.
2.
3.
4.
User creates a requisition with product category Subassemblies and amount > $100000
AME validates the conditions against the requisition data
For each condition, AME performs the action associated to the condition in the rule
The document meets two conditions as the category is subassemblies and amount is over $100000. The
'Special audit' approval group. This will be the approval list that AME will communicate to the calling application (P
The most common reason AME raises an exception (which typically results in the related application's stopping a
in the hierarchy is indeterminate. For example, in the case of the HRMS supervisory hierarchy, an approver may have a n
offending transaction's workflow.
https://support.oracle.com/epmos/faces/ui/km/SearchDocDisplay.jspx?_adf.ctrl-state=... 26/11/2012
Document Display
Page 4 of 12
Purchasing communicates with AME when a requisition is submitted for approval and also each time an approver respond
transaction and recalculates the approval list for the requisition based on the approver's response. This ensures that any
that the application follows when managing a transaction's approval process with AME:
1.
2.
3.
4.
5.
6.
7.
8.
9.
7. For purchase orders, type the transaction id (ame_approval_id) and click on Go to see the attributes and
SQL > select hr.name, poh.segment1, poh.org_id, poh.ame_approval_id
from po_headers_all poh,
hr_all_organization_units hr
where poh.org_id = hr.organization_id and
poh.segment1 = '&Enter_PO_Number';
8. Click on Run Test Case (2) to review the applicable rules and default approval list.
Here is an example of the default approval list for one requisition in the Test workbench for the business case of our app
https://support.oracle.com/epmos/faces/ui/km/SearchDocDisplay.jspx?_adf.ctrl-state=... 26/11/2012
Document Display
Page 5 of 12
The first region represents the rules that are applicable for the document or simulated test. You can expand on the rules
that the approvers will be notified.
Note: AME does not have any test functionality that would let you update an approver's approval status such as a forwar
generated by the approval workflow and then test with the transaction id using the run real transaction test.
Note: To access the test workbench tab, you must grant individual permission sets to your application user. See
Diagnostic Steps
1. Test Workbench
Use the test workbench functionality to confirm that the default approval list is correctly generated. The screen will displa
attributes. In many of the cases, errors are self-explanatory and indicate the action to be taken. Examples of some messa
No rules are applicable to this transaction. At least one rule must apply to this transaction when the value of the attribute
The action for this error is to define additional rules to ensure that there is at least one rule for all the possible business
The transaction ID specified returned an incorrect number of rows for NON_DEFAULT_POSITION_STRUCTURE_ID. Ensur
The action for this error is to ensure that the script associated to this attribute NON_DEFAULT_POSITION_STRUCTURE_I
the parameters with the appropriate values of the transaction.
Here is an example of the result of running a test in the workbench against one requisition:
https://support.oracle.com/epmos/faces/ui/km/SearchDocDisplay.jspx?_adf.ctrl-state=... 26/11/2012
Document Display
Page 6 of 12
In this scenario for absolute job action type, the real transaction test finishes with error 'Acaccia, Mary lacks a supervisor,
to an approval authority 1. There is an active rule that requires approval from a user with at least level 4. AME cannot as
A transaction's exception log contains exceptions raised by AME when it processes the transaction. It can be useful to vie
To view the exception log:
Use the Transaction Exception page.
1. Click Exception Log in the Quick Links on the Administrator Dashboard to open the Transaction Exception Log
2. Query the transaction type to view the exception details for all the transactions in the specific transaction type. Oth
transaction.
The log will include the package name and specific routine that failed with the exception. Here is the log information for t
https://support.oracle.com/epmos/faces/ui/km/SearchDocDisplay.jspx?_adf.ctrl-state=... 26/11/2012
Document Display
Page 7 of 12
3. FND log
Once the approval list displays correctly in the test workbench proceed to submit the approval process from the integratio
submission and the list is not generated, obtain the FND debug log.
Reference Note 759359.1 How To Engage And Retrieve FND Logging Messages From Within iProcurement? for instruction
Here are relevant error messages for a testcase where iProcurement fails with message: Approval List could not be gener
Example of FND debug is:
Notice that for this testcase the error ora-6502 occurs after validating the information for user with orig_system_id 10008
to the FND user record.
Note: If unable to submit the requisition via iProcurement, when possible test with the core Purchasing application
4. Approval Workflow
If the document is successfully submitted for approval but the error occurs before the document is approved, review the
Reference Note 134960.1 Running WFSTAT and WFRETRY For Oracle Purchasing Workflows to obtain instructions to run
Here is the relevant workflow activity for the testcase used in the previous step.
https://support.oracle.com/epmos/faces/ui/km/SearchDocDisplay.jspx?_adf.ctrl-state=... 26/11/2012
Document Display
Page 8 of 12
The wfstat output confirms that the error is with the setup of the approver as the workflow is not able to identify the reci
5. PO_WF_DEBUG messages
Follow the steps in Note 1103068.1 'How to enable and collect approval debug data in table PO_WF_DEBUG?' to enable w
will help to troubleshoot the issue.
1. Define attributes
The attributes are business variables with a single value for a particular transaction. Following are the required attributes
JOB_LEVEL_NON_DEFAULT_STARTING_POINT_PERSON_ID
INCLUDE_ALL_JOB_LEVEL_APPROVERS
TOP_SUPERVISOR_PERSON_ID
TRANSACTION_REQUESTOR_PERSON_ID
https://support.oracle.com/epmos/faces/ui/km/SearchDocDisplay.jspx?_adf.ctrl-state=... 26/11/2012
Document Display
Page 9 of 12
Note: To identify the required attributes for other pre-defined action types, see Oracle Approvals Management
2. Define conditions
A condition is a statement that is either true or false, for a given transaction. For the rule to apply to a transaction, all of
Steps to define the conditions:
1.
2.
3.
4.
5.
https://support.oracle.com/epmos/faces/ui/km/SearchDocDisplay.jspx?_adf.ctrl-state=... 26/11/2012
Document Display
Page 10 of 12
An action is an instruction to AME to modify a transaction's approval process in the manner you specify. An approval rule
Steps to enable an existing action type are:
1.
2.
3.
4.
This scenario does not require approver groups, so this step can be skipped.
4. Define rules
The rules consist of one or more conditions and one or more actions that apply for a specific business case.
Steps to create a rule are:
1.
2.
3.
4.
5.
6.
7.
8.
9.
https://support.oracle.com/epmos/faces/ui/km/SearchDocDisplay.jspx?_adf.ctrl-state=... 26/11/2012
Document Display
Page 11 of 12
You can access the main Oracle Communities page at http://communities.oracle.com (If you are enrolled, the Procurem
already enrolled in the Procurement community, you can do so by clicking on the link Edit Subscriptions).
OR
From "My Oracle Support" as follows:
1.
2.
3.
4.
5.
https://support.oracle.com/epmos/faces/ui/km/SearchDocDisplay.jspx?_adf.ctrl-state=... 26/11/2012
Document Display
Page 12 of 12
References
NOTE:759359.1 - How To Engage And Retrieve FND Logging Messages From Within iProcurement?
NOTE:134960.1 - Running WFSTAT and WFRETRY For Oracle Purchasing Workflows
NOTE:1103068.1 - How to enable and collect approval debug data in table PO_WF_DEBUG?
NOTE:434143.1 - How To Setup And Use AME For Purchase Requisition Approvals
NOTE:1487661.1 - 12.1 AME : Approval, E-Review, E-Sign and Withdrawal Features for Purchase Orders
NOTE:1487713.1 - 12.1.3 - Required Setups For Purchase Order Approval Using Approvals Management Engine (AME)
https://support.oracle.com/epmos/faces/ui/km/SearchDocDisplay.jspx?_adf.ctrl-state=... 26/11/2012