Você está na página 1de 3

3/19/13

Document Display

How To Reset a Purchase Order or Requisition From In Process or Pre-Approved To Incomplete/Requires Reapproval For Isolated Cases [ID 390023.1]
Modified: Feb 13, 2013 Type: HOWTO Status: PUBLISHED Priority: 1

In this Document Goal Fix Instructions: Scope: References

Applies to:
Oracle Purchasing - Version 11.5.9 to 12.1.3 [Release 11.5 to 12.1] Information in this document applies to any platform.

Goal

Purchasing uses different document statuses to indicate different stages of approval of a document. 'In process' and 'Pre approved' stages indicate the document is undergoing approval and therefore in these states, the document is not available for editing and can only be viewed by the user in the summary screens. During approval, sometimes purchasing documents get stuck in workflow, due to: 1. Temporary approval workflow error. There is no error for new documents. 2. Workflow being purged even when the po approval is active. There is no workflow activity for the item type and item key associated to the document. Enhancement Request Bug 10390644 - FEATURE TO PREVENT IN PROCESS / PRE-APPROVED DOCUMENTS WITH CANCELLED WORKFLOWS has been logged to help address this area. This enhancement request is asking for logic to prevent or provide feature to automatically address POs that have workflows cancelled while they are still IN PROCESS. Once they are cancelled they can be purged which can lead to the PO being IN PROCESS with no workflow data situation. 3. A data corruption existing on the document. If there is some incorrect data entered in the document which needs correction and there is no notification in the worklist so the document can be rejected. A example of temporary approval workflow error occurs when a workflow related package is invalid. In such a case the workflow errors out. However the same can be revoked after the package is made valid and the erroring workflow activity is retried. For cases where there is NOT a pending notification and the workflow cannot be progressed using wfretry, is there any other alternative?

Fix
For cases where there is NOT a pending notification and the workflow cannot be progressed using wfretry, use the reset scripts provided in these patches: Patch:5549427 for release 11.5.9 and 11.5.10. (See Scope section for restrictions on encumbrance documents.) Patch:9707155:R12.PO.A for release 12. Patch:9707155:R12.PO.B for release 12.1 Note: Procurement rollup patch 14254641:R12.PRC_PF.B for 12.1.3 incorporates the ability to withdraw purchase orders from the Buyer Work Center -> Orders page. The withdrawal process will change the purchase order status back to Incomplete and modify the action history of the document, closing the pending actions and creating a withdraw action associated to the user who performed the withdrawal. Refer to Note 1487949.1 for details about the withdraw functionality. These scripts allow the user to resubmit the document for approval by resetting the authorization status when documents are stuck in 'In-Process' or 'Pre-Approved' statuses. The scripts are: poxrespo.sql - to reset Standard, Blanket, Planned and Contract purchase orders poresrel.sql - to reset Blanket and scheduled releases poresreq.sql - to reset Internal and purchase requisitions In order to obtain the scripts apply the proper patch. The scripts will be available in the $PO_TOP/sql directory. It is strongly encouraged to use these reset scripts where there are single (or few) occurrences of documents getting stuck. It is not necessary to submit a Service Request for authorized use of these scripts and if any issues arise after proper use of one of the reset scripts the issues will be fully supported by Oracle Support. Often where there are single occurrences that cannot be replicated, root cause investigations cannot be performed. But if there are continued repetitive occurrence of such issues, then these should be reported to Oracle Support.

Instructions:
The script prompts the user for the following parameters : Document number. Enter the document number in question. Organization id. The organization id that the document belongs to. (Important: This prompt should never be entered with a null value as the organization id is never null at the table level and must be entered or else the query to find the document to reset will not find the document). Use these scripts to identify the organization id: Requisition:
S Q L>s e l e c th r . n a m e ,p r h . s e g m e n t 1 ,p r h . o r g _ i d f r o mp o _ r e q u i s i t i o n _ h e a d e r s _ a l lp r h , h r _ a l l _ o r g a n i z a t i o n _ u n i t sh r w h e r ep r h . o r g _ i d=h r . o r g a n i z a t i o n _ i da n d

https://support.oracle.com/epmos/faces/ui/km/SearchDocDisplay.jspx?_adf.ctrl-state=8qfhmcppw_33

1/3

3/19/13
w h e r ep r h . o r g _ i d=h r . o r g a n i z a t i o n _ i da n d p r h . s e g m e n t 1=' & E n t e r _ R e q _ N u m b e r ' ;

Document Display

Purchase Order:
S Q L>s e l e c th r . n a m e ,p o h . s e g m e n t 1 ,p o h . o r g _ i d f r o mp o _ h e a d e r s _ a l lp o h , h r _ a l l _ o r g a n i z a t i o n _ u n i t sh r w h e r ep o h . o r g _ i d=h r . o r g a n i z a t i o n _ i da n d p o h . s e g m e n t 1=' & E n t e r _ P O _ N u m b e r ' ;

Purchase Order Release:


S Q L>s e l e c th r . n a m e ,p o h . s e g m e n t 1 ,p o r . r e l e a s e _ n u m ,p o r . o r g _ i d f r o mp o _ h e a d e r s _ a l lp o h , p o _ r e l e a s e s _ a l lp o r , h r _ a l l _ o r g a n i z a t i o n _ u n i t sh r w h e r ep o h . o r g _ i d=h r . o r g a n i z a t i o n _ i da n d p o r . o r g _ i d=p o h . o r g _ i da n d p o h . p o _ h e a d e r _ i d=p o r . p o _ h e a d e r _ i da n d p o h . s e g m e n t 1=' & E n t e r _ P O _ N u m b e r 'a n d p o r . r e l e a s e _ n u m=' & E n t e r _ R e l e a s e _ N u m ' ;

Do you want to delete the action history since the last approval? The standard practice is to choose No (N). With poxrespo.sql and poresrel.sql an option to delete or update the action history since the last submission of the document for approval. On selecting update, if there is an action pending on a particular user, the scripts will update the action code as 'No Action Taken'. If the action history does not contain a record with pending user action, the update action will have no effect on the action history. On selecting the delete option, the action history for the unsuccessful approval cycle would be deleted. For example.: for Standard PO Number 5211
R e v i s i o nS e q u e n c eA c t i o nE m p l o y e e 0 1S u b m i t A 0 2f o r w a r d A 0 3A p p r o v e B 0 4R e s e r v e B 1 5S u b m i t A 1 6f o r w a r d A 1 7

Here the document is stuck after 1 successful approval for Revision 0. Hence if you choose the Delete action for action history, the sequence number 5,6,7 will be deleted and the document would be set to Requires reapproval. If you choose the Update option for this case then the action at sequence 7 would be updated to 'No Action Taken' and the note field would indicate 'Updated by reset script on <date>'.

Please note: If the option to delete the Action History is taken and a commit is issued at the end of the script, there is no possibility to restore the deleted action history

After the script executes if no errors a commit; should be entered to commit the transaction. If any errors occur, issue a rollback; command

Scope:
These script picks up documents, which are: Not canceled Not finally closed In statuses - 'IN PROCESS' or 'PRE-APPROVED' Perform the following checks before proceeding to reset the PO: 1. 2. 3. 4. 5. If open notification is present, warn the user. If a change request is associated with the document abort the script. For this scenario, reference the datafix section in Note 453551.1 Reset requisition script aborts if the requisition is found to be associated with a purchase order or internal Sales Order. If USSGL Transaction codes are being used and/or Federal Purchasing, the script aborts. If you are on 11.5.10 and the document that you wish to reset is sourced to an encumbered blanket agreement or an encumbered global agreement, do not use this script. 6. If you are on 11.5.10 run the program 'Import Journals' from the GL responsibility before running this script. This is required for the encumbrance diagnostics performed by this script. Failing to run the program may result in incorrect information coveyed by the script. 7. Do not apply the script to releases prior to 11.5.9. 8. For release 12 and 12.1 the script will take care of encumbered documents, but it will abort if any of the document distributions has a wrong encumbrance amount. If the above check pass the scripts:

https://support.oracle.com/epmos/faces/ui/km/SearchDocDisplay.jspx?_adf.ctrl-state=8qfhmcppw_33

1. Abort all the workflow processes associated with the document Approval.

2/3

3/19/13
1. 2. 3. 4. 5.

Document Display
Abort all the workflow processes associated with the document Approval. Updates action history. Updates the PO tables to set the status correctly. For 11.5.10, the script corrects encumbrance entries if encumbrance is used. For 11.5.10, the script suggests any Manual postings that may be required to correct encumbrance entries in GL. These manual postings appear in the table po_manual_postings_temp.

Additional note: 1. If there is slow performance when running the reset scripts then purging the workflow tables should be investigated. 2. At present there is no generic script to accommodate resetting multiple documents at once. 3. Do not run these scripts in parallel on two documents at once, as this may cause a locking issue. 4. On reset if the error occurs: "This PO has been reserved at least once previously. Hence this PO can not be reset." and funds reservation is being used review Patch 9707155.

Additional Search Terms: A purchase requisition is not getting approved and stuck in PO Req workflow, PO hangs in process, Release hangs in process, REQAPPRV Errored Out, resend notification that has already been purged, resend purged notifications, Purchase Order stuck In process Still Have Questions?

Join our growing Oracle Procurement Community and learn from your peers and Oracle on how to address your unique issues in Procurement. You can access the main Oracle Communities page at http://communities.oracle.com (If you are enrolled, the Procurement community will be listed on your left. If you're not 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. Log into My Oracle Support Click on the 'Community' link at the top of the page Click in 'Find a Community' field and enter Procurement Double click on Procurement in the list Click on the 'Create a Community Post' button and submit your question.

References
NOTE:453551.1 - How To Diagnose An Issue In Requester Change Order Processing BUG:10390644 - ER: FEATURE TO PREVENT IN PROCESS/PRE-APPROVED DOCUMENTS WITH CANCELLED WORKFLOW NOTE:1487949.1 - How to Reset the Approval Status for Purchase Orders using the Withdrawal Functionality

https://support.oracle.com/epmos/faces/ui/km/SearchDocDisplay.jspx?_adf.ctrl-state=8qfhmcppw_33

3/3

Você também pode gostar