{"id":4169,"date":"2013-10-04T15:41:36","date_gmt":"2013-10-04T15:41:36","guid":{"rendered":"http:\/\/erpschools.com\/?p=4169"},"modified":"2014-12-05T10:12:04","modified_gmt":"2014-12-05T10:12:04","slug":"api-arp_notes_pkg","status":"publish","type":"post","link":"https:\/\/erpschools.com\/erps\/api\/ar-api\/api-arp_notes_pkg","title":{"rendered":"API: ARP_NOTES_PKG"},"content":{"rendered":"<p>&nbsp;<\/p>\n<p>API: ARP_NOTES_PKG.insert_p to create new AR Notes<\/p>\n<p><code><br \/>\nDECLARE<br \/>\n  v_notes_rec ar_notes%rowtype;<br \/>\nbegin<br \/>\n  --Set the org_id for apps 11i<br \/>\n  --fnd_client_info.set_org_context('204');<\/p>\n<p>  -- set org_id for apps R12<br \/>\n  mo_global.init('AR');<br \/>\n  mo_global.set_policy_context('S','204');<\/p>\n<p>  -- to initialize the variables<br \/>\n  v_notes_rec.note_type              := 'MAINTAIN';<br \/>\n  v_notes_rec.customer_trx_id        := 759812;<br \/>\n  v_notes_rec.text                   := 'AR Notes API Demo form erpSchools.com';<br \/>\n  v_notes_rec.customer_call_topic_id := NULL;<br \/>\n  v_notes_rec.call_action_id         := NULL;<br \/>\n  v_notes_rec.customer_call_id       := NULL;<\/p>\n<p>  -- call API<br \/>\n  <strong>ARP_NOTES_PKG.insert_p<\/strong>(v_notes_rec);<br \/>\n  commit;<br \/>\n  dbms_output.put_line(' Note_id is: ' ||v_notes_rec.note_id);<br \/>\nEND;<\/code><\/p>\n<p>API: ARP_NOTES_PKG.update_p to updated existing AR Notes<br \/>\n<code>SET serveroutput ON;<br \/>\nDECLARE<br \/>\n  v_notes_rec ar_notes%rowtype;<br \/>\n  l_note_id NUMBER;<br \/>\nBEGIN<br \/>\n  -- set the org_id<br \/>\n  mo_global.init('AR');<br \/>\n  mo_global.set_policy_context('S','204');<br \/>\n  --fnd_client_info.set_org_context('204');<br \/>\n  -- to initialize the variables<br \/>\n  v_notes_rec.note_type              := 'MAINTAIN';<br \/>\n  v_notes_rec.customer_trx_id        := 759812;<br \/>\n  v_notes_rec.text                   := 'AR Notes API Demo form erpSchools.com (updated)';<br \/>\n  v_notes_rec.customer_call_topic_id := NULL;<br \/>\n  v_notes_rec.call_action_id         := NULL;<br \/>\n  v_notes_rec.customer_call_id       := NULL;<br \/>\n  --v_notes_rec.note_id           := l_note_id;<br \/>\n  v_notes_rec.last_updated_by   := 1318;<br \/>\n  v_notes_rec.last_update_date  := sysdate;<br \/>\n  v_notes_rec.last_update_login := 1318;<br \/>\n  v_notes_rec.created_by        := 1318;<br \/>\n  v_notes_rec.creation_date     := sysdate;<br \/>\n  l_note_id                     := 147464; -- note_id<\/p>\n<p>  -- call API<br \/>\n  <strong>ARP_NOTES_PKG.update_p<\/strong>(v_notes_rec, l_note_id );<br \/>\n  COMMIT;<br \/>\n  dbms_output.put_line(' Notes updated successfully');<br \/>\nEND;<\/code><\/p>\n<p>Few SQL Queries related to this API<\/p>\n<p><code>SELECT * FROM ar_notes WHERE customer_trx_id = 759812;<\/code><br \/>\n<code>SELECT * FROM ra_customer_trx_all rc WHERE trx_number = '10037843' ;<\/code><br \/>\n<code>SELECT * FROM hr_organization_units WHERE Name = 'Vision Operations';<\/code><\/p>\n<p>Verify from Applications<br \/>\nNavigation: Receivables, Vision Operations &gt; Transactions &gt; Transactions<br \/>\nQuery your transaction and go to &#8220;Notes&#8221; tab<\/p>\n<p><img decoding=\"async\" alt=\"AR Notes API\" src=\"http:\/\/erpschools.com\/erps\/wp-content\/uploads\/img\/AR-Notes-API.png\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp; API: ARP_NOTES_PKG.insert_p to create new AR Notes DECLARE v_notes_rec ar_notes%rowtype; begin &#8211;Set the org_id for apps 11i &#8211;fnd_client_info.set_org_context(&#8216;204&#8217;); &#8212; set org_id for apps R12 mo_global.init(&#8216;AR&#8217;); mo_global.set_policy_context(&#8216;S&#8217;,&#8217;204&#8242;); &#8212; to initialize the variables v_notes_rec.note_type := &#8216;MAINTAIN&#8217;; v_notes_rec.customer_trx_id := 759812; v_notes_rec.text := &#8216;AR Notes API Demo form erpSchools.com&#8217;; v_notes_rec.customer_call_topic_id := NULL; v_notes_rec.call_action_id := NULL; v_notes_rec.customer_call_id := NULL; [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[504],"tags":[],"class_list":["post-4169","post","type-post","status-publish","format-standard","hentry","category-ar-api"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v23.4 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>API: ARP_NOTES_PKG - erpSchools<\/title>\n<meta name=\"description\" content=\"API: ARP_NOTES_PKG.insert_p ARP_NOTES_PKG.update_p Application Receivable API 11i and R12\" \/>\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\/api\/ar-api\/api-arp_notes_pkg\" \/>\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=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/erpschools.com\/erps\/api\/ar-api\/api-arp_notes_pkg#article\",\"isPartOf\":{\"@id\":\"https:\/\/erpschools.com\/erps\/api\/ar-api\/api-arp_notes_pkg\"},\"author\":{\"name\":\"Prudhvi\",\"@id\":\"https:\/\/erpschools.com\/erps\/#\/schema\/person\/dbed9bb7fb66aa7a700fc565da024512\"},\"headline\":\"API: ARP_NOTES_PKG\",\"datePublished\":\"2013-10-04T15:41:36+00:00\",\"dateModified\":\"2014-12-05T10:12:04+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/erpschools.com\/erps\/api\/ar-api\/api-arp_notes_pkg\"},\"wordCount\":53,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/erpschools.com\/erps\/#organization\"},\"image\":{\"@id\":\"https:\/\/erpschools.com\/erps\/api\/ar-api\/api-arp_notes_pkg#primaryimage\"},\"thumbnailUrl\":\"http:\/\/erpschools.com\/erps\/wp-content\/uploads\/img\/AR-Notes-API.png\",\"articleSection\":[\"AR API\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/erpschools.com\/erps\/api\/ar-api\/api-arp_notes_pkg#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/erpschools.com\/erps\/api\/ar-api\/api-arp_notes_pkg\",\"url\":\"https:\/\/erpschools.com\/erps\/api\/ar-api\/api-arp_notes_pkg\",\"name\":\"API: ARP_NOTES_PKG - erpSchools\",\"isPartOf\":{\"@id\":\"https:\/\/erpschools.com\/erps\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/erpschools.com\/erps\/api\/ar-api\/api-arp_notes_pkg#primaryimage\"},\"image\":{\"@id\":\"https:\/\/erpschools.com\/erps\/api\/ar-api\/api-arp_notes_pkg#primaryimage\"},\"thumbnailUrl\":\"http:\/\/erpschools.com\/erps\/wp-content\/uploads\/img\/AR-Notes-API.png\",\"datePublished\":\"2013-10-04T15:41:36+00:00\",\"dateModified\":\"2014-12-05T10:12:04+00:00\",\"description\":\"API: ARP_NOTES_PKG.insert_p ARP_NOTES_PKG.update_p Application Receivable API 11i and R12\",\"breadcrumb\":{\"@id\":\"https:\/\/erpschools.com\/erps\/api\/ar-api\/api-arp_notes_pkg#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/erpschools.com\/erps\/api\/ar-api\/api-arp_notes_pkg\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/erpschools.com\/erps\/api\/ar-api\/api-arp_notes_pkg#primaryimage\",\"url\":\"http:\/\/erpschools.com\/erps\/wp-content\/uploads\/img\/AR-Notes-API.png\",\"contentUrl\":\"http:\/\/erpschools.com\/erps\/wp-content\/uploads\/img\/AR-Notes-API.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/erpschools.com\/erps\/api\/ar-api\/api-arp_notes_pkg#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/erpschools.com\/erps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"API: ARP_NOTES_PKG\"}]},{\"@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":"API: ARP_NOTES_PKG - erpSchools","description":"API: ARP_NOTES_PKG.insert_p ARP_NOTES_PKG.update_p Application Receivable API 11i and R12","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\/api\/ar-api\/api-arp_notes_pkg","twitter_misc":{"Written by":"Prudhvi","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/erpschools.com\/erps\/api\/ar-api\/api-arp_notes_pkg#article","isPartOf":{"@id":"https:\/\/erpschools.com\/erps\/api\/ar-api\/api-arp_notes_pkg"},"author":{"name":"Prudhvi","@id":"https:\/\/erpschools.com\/erps\/#\/schema\/person\/dbed9bb7fb66aa7a700fc565da024512"},"headline":"API: ARP_NOTES_PKG","datePublished":"2013-10-04T15:41:36+00:00","dateModified":"2014-12-05T10:12:04+00:00","mainEntityOfPage":{"@id":"https:\/\/erpschools.com\/erps\/api\/ar-api\/api-arp_notes_pkg"},"wordCount":53,"commentCount":0,"publisher":{"@id":"https:\/\/erpschools.com\/erps\/#organization"},"image":{"@id":"https:\/\/erpschools.com\/erps\/api\/ar-api\/api-arp_notes_pkg#primaryimage"},"thumbnailUrl":"http:\/\/erpschools.com\/erps\/wp-content\/uploads\/img\/AR-Notes-API.png","articleSection":["AR API"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/erpschools.com\/erps\/api\/ar-api\/api-arp_notes_pkg#respond"]}]},{"@type":"WebPage","@id":"https:\/\/erpschools.com\/erps\/api\/ar-api\/api-arp_notes_pkg","url":"https:\/\/erpschools.com\/erps\/api\/ar-api\/api-arp_notes_pkg","name":"API: ARP_NOTES_PKG - erpSchools","isPartOf":{"@id":"https:\/\/erpschools.com\/erps\/#website"},"primaryImageOfPage":{"@id":"https:\/\/erpschools.com\/erps\/api\/ar-api\/api-arp_notes_pkg#primaryimage"},"image":{"@id":"https:\/\/erpschools.com\/erps\/api\/ar-api\/api-arp_notes_pkg#primaryimage"},"thumbnailUrl":"http:\/\/erpschools.com\/erps\/wp-content\/uploads\/img\/AR-Notes-API.png","datePublished":"2013-10-04T15:41:36+00:00","dateModified":"2014-12-05T10:12:04+00:00","description":"API: ARP_NOTES_PKG.insert_p ARP_NOTES_PKG.update_p Application Receivable API 11i and R12","breadcrumb":{"@id":"https:\/\/erpschools.com\/erps\/api\/ar-api\/api-arp_notes_pkg#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/erpschools.com\/erps\/api\/ar-api\/api-arp_notes_pkg"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/erpschools.com\/erps\/api\/ar-api\/api-arp_notes_pkg#primaryimage","url":"http:\/\/erpschools.com\/erps\/wp-content\/uploads\/img\/AR-Notes-API.png","contentUrl":"http:\/\/erpschools.com\/erps\/wp-content\/uploads\/img\/AR-Notes-API.png"},{"@type":"BreadcrumbList","@id":"https:\/\/erpschools.com\/erps\/api\/ar-api\/api-arp_notes_pkg#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/erpschools.com\/erps"},{"@type":"ListItem","position":2,"name":"API: ARP_NOTES_PKG"}]},{"@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\/4169","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=4169"}],"version-history":[{"count":0,"href":"https:\/\/erpschools.com\/erps\/wp-json\/wp\/v2\/posts\/4169\/revisions"}],"wp:attachment":[{"href":"https:\/\/erpschools.com\/erps\/wp-json\/wp\/v2\/media?parent=4169"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/erpschools.com\/erps\/wp-json\/wp\/v2\/categories?post=4169"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/erpschools.com\/erps\/wp-json\/wp\/v2\/tags?post=4169"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}