Sometimes the organization's business requirement may not be met by the standard requisition approval workflow. Customizations have to be done to meet these business requirements.
Below are some of the scenarios where the approval path will have to be routed differently when compared to the standard path.
1. Requisitions created on certain items.
2. When a base line is set on Approval limit.
3. Information displayed in Notifications.
Steps to create the custom workflow:
1. In the workflow builder, copy and paste the standard workflow Requisition (REQAPPRV) to the DB. It will ask for a new ITEM_TYPE. Provide a name for the custom workflow.
2. Add the required attributes, functions and nodes to the Process. Make necessary changes to the Process.
3. For Notifications, messages need to be provided appropriately. Pl/SQL messages may not work properly in 11.5.10 version. For those cases, JRAD notification messages can be used.
4. Save the workflow in the database.
5. In Oracle Applications system, navigate to
SETUP->PURCHASING->DOCUMENT TYPES and select 'Purchase Requisition'.
6. Select the custom approval workflow and the starting process in the Requisition approval LOV.
7. Save the record.
8. Schedule a periodic concurrent request 'Workflow Background Process' for this new custom item type.
Above steps are provided at high level only. Mail me if you need any help.
----------------------------------------------------------------------------------------------------------
This query can be used to determine which approval path a Requisition or a Purchase Order has taken:
– For Requisition
select pos.name
from po_requisition_headers_all rh, wf_item_attribute_values av, per_position_structures pos
where av.item_type = rh.wf_item_type
and av.item_key = rh.wf_item_key
and av.name = ‘APPROVAL_PATH_ID’
and to_number(av.NUMBER_VALUE) = pos.position_structure_id
and rh.segment1 = ‘&1′ ;
–and rh.org_id = 172; — You can use your org_id if necessary
– For Purchase Order
select pos.name
from po_headers_all poh, wf_item_attribute_values av, per_position_structures pos
where av.item_type = poh.wf_item_type
and av.item_key = poh.wf_item_key
and av.name = ‘APPROVAL_PATH_ID’
and to_number(av.NUMBER_VALUE) = pos.position_structure_id
and poh.org_id = 103
and poh.po_header_id = 1324; –You need to retrieve your PO_HEADER_ID
Dear Girish
ReplyDeleteHow to Customize Requisition Approval Workflow?
I want to customize the standard (REQAPPRV) to meet a business requirement from our client.
The client wants when the action/node 14 in the workflow diagram (Notify requestor of approval), the client wants another notification also going to the Procurement department, informing them a PR has been approved, they should create a PO for it.
How can we achieve this?
Hi Girish,
ReplyDeleteI am new to Workflow, and was actively searching google and found your blog.
As per my requirement, we need to send periodic Requisition Approval Reminder Notification to Approver and “FYI Notification” to Preparer and if that notification does not generate any response from the Approver, we need to send it 2 times having interval for 10 days.
As I saw in your blog for the article 'http://oracleebspro.blogspot.in/2013/04/how-to-customize-requisition-approval.html', I was not able to find standard workflow Requisition (REQAPPRV), and hence seek your help.
As I didn't got your email id, so posted here seeking your guidance. Please assist.