{"id":1832,"date":"2011-04-17T14:31:48","date_gmt":"2011-04-17T14:31:48","guid":{"rendered":"http:\/\/sendyoursmiles.com\/?p=1832"},"modified":"2011-04-17T14:31:48","modified_gmt":"2011-04-17T14:31:48","slug":"list-of-approvers-for-a-purchase-order-in-position-hierarchy","status":"publish","type":"post","link":"https:\/\/erpschools.com\/erps\/scripts\/list-of-approvers-for-a-purchase-order-in-position-hierarchy","title":{"rendered":"List of Approvers for a Purchase Order in Position Hierarchy"},"content":{"rendered":"<p>This script gets all the approvers and their details like approver name, position, approval group, amount limit, approval hierarchy path for a given position hierarchy.<\/p>\n<p>Inputs for this script are: business_group_id for the desired POSITION HIERARCHY<br \/>\npos_structure_version_id for the desired POSITION HIERARCHY<br \/>\nTop position in the desired POSITION HIERARCHY<\/p>\n<p>SCRIPT TO GET POSITION_STRUCTURE_ID AND BUSINESS_GROUP_ID FOR A GIVEN HIERARCHY NAME<br \/>\n<code>SELECT position_structure_id, business_group_id<br \/>\nFROM per_position_structures_v<br \/>\nWHERE NAME = '&POSITION HIERARCHY NAME'<\/code><\/p>\n<p>SCRIPT TO GET ALL THE APPROVERS, THEIR POSITIONS, APPROVAL HIERARCHY PATH, APPROVAL LIMITS IN A POSITION HIERARCHY<\/p>\n<p>This Script takes position_structure_id and business_group_id obtained from the above query and top position id for a given position hierarchy as inputs.<\/p>\n<p><code>SELECT h.POSITION, h.PATH, ass.position_holder, al.doc_type,<br \/>\nal.approval_group, al.OBJECT, al.rule,al.amount_limit, al.low_value, al.high_value<br \/>\nFROM --Getting the Approval Limits<br \/>\n(SELECT psc.position_id pos_id, pcf.control_function_name doc_type,<br \/>\npcg.control_group_name approval_group, pcr.object_code OBJECT,<br \/>\npcr.rule_type_code rule, amount_limit,<br \/>\nsegment1_low<br \/>\n|| '-'<br \/>\n|| segment2_low<br \/>\n|| '-'<br \/>\n|| segment3_low<br \/>\n|| '-'<br \/>\n|| segment4_low<br \/>\n|| '-'<br \/>\n|| segment5_low low_value,<br \/>\nsegment1_high<br \/>\n|| '-'<br \/>\n|| segment2_high<br \/>\n|| '-'<br \/>\n|| segment3_high<br \/>\n|| '-'<br \/>\n|| segment4_high<br \/>\n|| '-'<br \/>\n|| segment5_high high_value<br \/>\nFROM apps.po_position_controls_all psc,<br \/>\napps.po_control_groups_all pcg,<br \/>\napps.po_control_rules pcr,<br \/>\napps.po_control_functions pcf<br \/>\nWHERE 1 = 1<br \/>\nAND psc.control_function_id = pcf.control_function_id<br \/>\nAND psc.org_id = 95<br \/>\nAND psc.control_group_id = pcg.control_group_id<br \/>\nAND pcg.control_group_id = pcr.control_group_id) al,<br \/>\n-- Getting approvers\/users for a position in the heirarchy<br \/>\n(SELECT he.full_name position_holder, pa.position_id pos_id<br \/>\nFROM apps.per_all_assignments_f pa, apps.hr_employees he<br \/>\nWHERE pa.business_group_id = 81<br \/>\nAND pa.effective_end_date = '31-DEC-4712'<br \/>\nAND pa.person_id = he.employee_id) ass,<br \/>\n-- Getting the Postion Heirarchy<br \/>\n(SELECT pp.NAME POSITION, pse.parent_position_id position_id,<br \/>\npp.NAME PATH<br \/>\nFROM per_pos_structure_elements_v pse, per_positions pp<br \/>\nWHERE pse.business_group_id = 81 --business_group_id for SOLO CUP POSITION HIERARCHY<br \/>\nAND pse.pos_structure_version_id = 61 --pos_structure_version_id for SOLO CUP POSITION HIERARCHY<br \/>\nAND pse.parent_position_id = 98 --Top position in SOLO CUP POSITION HIERARCHY<br \/>\nAND pse.parent_position_id = pp.position_id<br \/>\nUNION<br \/>\nSELECT DISTINCT has.NAME POSITION, has.position_id position_id,<br \/>\n(SELECT NAME<br \/>\nFROM per_positions<br \/>\nWHERE position_id = 98)<br \/>\n|| SYS_CONNECT_BY_PATH (has.NAME, '\/') PATH<br \/>\nFROM (SELECT NAME, position_id<br \/>\nFROM apps.hr_all_positions_f_tl<br \/>\nWHERE LANGUAGE = USERENV ('LANG')) has,<br \/>\nper_pos_structure_elements pse<br \/>\nWHERE pse.business_group_id = 81 --business_group_id for SOLO CUP POSITION HIERARCHY<br \/>\nAND has.position_id = pse.subordinate_position_id<br \/>\nAND pse.pos_structure_version_id = 61 --pos_structure_version_id for SOLO CUP POSITION HIERARCHY<br \/>\nSTART WITH pse.parent_position_id = 98 --Top position in SOLO CUP POSITION HIERARCHY<br \/>\nCONNECT BY PRIOR pse.subordinate_position_id = pse.parent_position_id<br \/>\nAND PRIOR pse.pos_structure_version_id = pse.pos_structure_version_id<br \/>\nAND PRIOR pse.business_group_id = pse.business_group_id<br \/>\nORDER BY PATH) h<br \/>\nWHERE al.pos_id (+)= h.position_id<br \/>\nAND ass.pos_id(+) = h.position_id<br \/>\norder by path<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>This script gets all the approvers and their details like approver name, position, approval group, amount limit, approval hierarchy path for a given position hierarchy. Inputs for this script are: business_group_id for the desired POSITION HIERARCHY pos_structure_version_id for the desired POSITION HIERARCHY Top position in the desired POSITION HIERARCHY SCRIPT TO GET POSITION_STRUCTURE_ID AND BUSINESS_GROUP_ID [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[18],"tags":[],"class_list":["post-1832","post","type-post","status-publish","format-standard","hentry","category-scripts"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v23.4 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>oracle apps purchase order approver list<\/title>\n<meta name=\"description\" content=\"This script gets all the approver details ike approver name, position, approval group, amount limit, approval hierarchy path for a given position hierarchy\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/erpschools.com\/erps\/scripts\/list-of-approvers-for-a-purchase-order-in-position-hierarchy\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Prudhvi\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/erpschools.com\/erps\/scripts\/list-of-approvers-for-a-purchase-order-in-position-hierarchy#article\",\"isPartOf\":{\"@id\":\"https:\/\/erpschools.com\/erps\/scripts\/list-of-approvers-for-a-purchase-order-in-position-hierarchy\"},\"author\":{\"name\":\"Prudhvi\",\"@id\":\"https:\/\/erpschools.com\/erps\/#\/schema\/person\/dbed9bb7fb66aa7a700fc565da024512\"},\"headline\":\"List of Approvers for a Purchase Order in Position Hierarchy\",\"datePublished\":\"2011-04-17T14:31:48+00:00\",\"dateModified\":\"2011-04-17T14:31:48+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/erpschools.com\/erps\/scripts\/list-of-approvers-for-a-purchase-order-in-position-hierarchy\"},\"wordCount\":122,\"commentCount\":1,\"publisher\":{\"@id\":\"https:\/\/erpschools.com\/erps\/#organization\"},\"articleSection\":[\"Scripts\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/erpschools.com\/erps\/scripts\/list-of-approvers-for-a-purchase-order-in-position-hierarchy#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/erpschools.com\/erps\/scripts\/list-of-approvers-for-a-purchase-order-in-position-hierarchy\",\"url\":\"https:\/\/erpschools.com\/erps\/scripts\/list-of-approvers-for-a-purchase-order-in-position-hierarchy\",\"name\":\"oracle apps purchase order approver list\",\"isPartOf\":{\"@id\":\"https:\/\/erpschools.com\/erps\/#website\"},\"datePublished\":\"2011-04-17T14:31:48+00:00\",\"dateModified\":\"2011-04-17T14:31:48+00:00\",\"description\":\"This script gets all the approver details ike approver name, position, approval group, amount limit, approval hierarchy path for a given position hierarchy\",\"breadcrumb\":{\"@id\":\"https:\/\/erpschools.com\/erps\/scripts\/list-of-approvers-for-a-purchase-order-in-position-hierarchy#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/erpschools.com\/erps\/scripts\/list-of-approvers-for-a-purchase-order-in-position-hierarchy\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/erpschools.com\/erps\/scripts\/list-of-approvers-for-a-purchase-order-in-position-hierarchy#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/erpschools.com\/erps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"List of Approvers for a Purchase Order in Position Hierarchy\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/erpschools.com\/erps\/#website\",\"url\":\"https:\/\/erpschools.com\/erps\/\",\"name\":\"erpSchools\",\"description\":\"Oracle Apps\",\"publisher\":{\"@id\":\"https:\/\/erpschools.com\/erps\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/erpschools.com\/erps\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/erpschools.com\/erps\/#organization\",\"name\":\"erpSchools\",\"url\":\"https:\/\/erpschools.com\/erps\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/erpschools.com\/erps\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/erpschools.com\/erps\/wp-content\/uploads\/img\/erps_logo7.png\",\"contentUrl\":\"https:\/\/erpschools.com\/erps\/wp-content\/uploads\/img\/erps_logo7.png\",\"width\":250,\"height\":60,\"caption\":\"erpSchools\"},\"image\":{\"@id\":\"https:\/\/erpschools.com\/erps\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"http:\/\/facebook.com\/erpschools\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/erpschools.com\/erps\/#\/schema\/person\/dbed9bb7fb66aa7a700fc565da024512\",\"name\":\"Prudhvi\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/erpschools.com\/erps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/488cec3605845b95cb20e60c67a8f5c7e74b65a305525c8006315d524f120db9?s=96&d=blank&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/488cec3605845b95cb20e60c67a8f5c7e74b65a305525c8006315d524f120db9?s=96&d=blank&r=g\",\"caption\":\"Prudhvi\"},\"sameAs\":[\"http:\/\/www.erpschools.com\"],\"url\":\"https:\/\/erpschools.com\/erps\/author\/prudhvi\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"oracle apps purchase order approver list","description":"This script gets all the approver details ike approver name, position, approval group, amount limit, approval hierarchy path for a given position hierarchy","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/erpschools.com\/erps\/scripts\/list-of-approvers-for-a-purchase-order-in-position-hierarchy","twitter_misc":{"Written by":"Prudhvi","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/erpschools.com\/erps\/scripts\/list-of-approvers-for-a-purchase-order-in-position-hierarchy#article","isPartOf":{"@id":"https:\/\/erpschools.com\/erps\/scripts\/list-of-approvers-for-a-purchase-order-in-position-hierarchy"},"author":{"name":"Prudhvi","@id":"https:\/\/erpschools.com\/erps\/#\/schema\/person\/dbed9bb7fb66aa7a700fc565da024512"},"headline":"List of Approvers for a Purchase Order in Position Hierarchy","datePublished":"2011-04-17T14:31:48+00:00","dateModified":"2011-04-17T14:31:48+00:00","mainEntityOfPage":{"@id":"https:\/\/erpschools.com\/erps\/scripts\/list-of-approvers-for-a-purchase-order-in-position-hierarchy"},"wordCount":122,"commentCount":1,"publisher":{"@id":"https:\/\/erpschools.com\/erps\/#organization"},"articleSection":["Scripts"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/erpschools.com\/erps\/scripts\/list-of-approvers-for-a-purchase-order-in-position-hierarchy#respond"]}]},{"@type":"WebPage","@id":"https:\/\/erpschools.com\/erps\/scripts\/list-of-approvers-for-a-purchase-order-in-position-hierarchy","url":"https:\/\/erpschools.com\/erps\/scripts\/list-of-approvers-for-a-purchase-order-in-position-hierarchy","name":"oracle apps purchase order approver list","isPartOf":{"@id":"https:\/\/erpschools.com\/erps\/#website"},"datePublished":"2011-04-17T14:31:48+00:00","dateModified":"2011-04-17T14:31:48+00:00","description":"This script gets all the approver details ike approver name, position, approval group, amount limit, approval hierarchy path for a given position hierarchy","breadcrumb":{"@id":"https:\/\/erpschools.com\/erps\/scripts\/list-of-approvers-for-a-purchase-order-in-position-hierarchy#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/erpschools.com\/erps\/scripts\/list-of-approvers-for-a-purchase-order-in-position-hierarchy"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/erpschools.com\/erps\/scripts\/list-of-approvers-for-a-purchase-order-in-position-hierarchy#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/erpschools.com\/erps"},{"@type":"ListItem","position":2,"name":"List of Approvers for a Purchase Order in Position Hierarchy"}]},{"@type":"WebSite","@id":"https:\/\/erpschools.com\/erps\/#website","url":"https:\/\/erpschools.com\/erps\/","name":"erpSchools","description":"Oracle Apps","publisher":{"@id":"https:\/\/erpschools.com\/erps\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/erpschools.com\/erps\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/erpschools.com\/erps\/#organization","name":"erpSchools","url":"https:\/\/erpschools.com\/erps\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/erpschools.com\/erps\/#\/schema\/logo\/image\/","url":"https:\/\/erpschools.com\/erps\/wp-content\/uploads\/img\/erps_logo7.png","contentUrl":"https:\/\/erpschools.com\/erps\/wp-content\/uploads\/img\/erps_logo7.png","width":250,"height":60,"caption":"erpSchools"},"image":{"@id":"https:\/\/erpschools.com\/erps\/#\/schema\/logo\/image\/"},"sameAs":["http:\/\/facebook.com\/erpschools"]},{"@type":"Person","@id":"https:\/\/erpschools.com\/erps\/#\/schema\/person\/dbed9bb7fb66aa7a700fc565da024512","name":"Prudhvi","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/erpschools.com\/erps\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/488cec3605845b95cb20e60c67a8f5c7e74b65a305525c8006315d524f120db9?s=96&d=blank&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/488cec3605845b95cb20e60c67a8f5c7e74b65a305525c8006315d524f120db9?s=96&d=blank&r=g","caption":"Prudhvi"},"sameAs":["http:\/\/www.erpschools.com"],"url":"https:\/\/erpschools.com\/erps\/author\/prudhvi"}]}},"_links":{"self":[{"href":"https:\/\/erpschools.com\/erps\/wp-json\/wp\/v2\/posts\/1832","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/erpschools.com\/erps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/erpschools.com\/erps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/erpschools.com\/erps\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/erpschools.com\/erps\/wp-json\/wp\/v2\/comments?post=1832"}],"version-history":[{"count":0,"href":"https:\/\/erpschools.com\/erps\/wp-json\/wp\/v2\/posts\/1832\/revisions"}],"wp:attachment":[{"href":"https:\/\/erpschools.com\/erps\/wp-json\/wp\/v2\/media?parent=1832"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/erpschools.com\/erps\/wp-json\/wp\/v2\/categories?post=1832"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/erpschools.com\/erps\/wp-json\/wp\/v2\/tags?post=1832"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}