{"id":1848,"date":"2011-04-17T14:44:31","date_gmt":"2011-04-17T14:44:31","guid":{"rendered":"http:\/\/sendyoursmiles.com\/?p=1848"},"modified":"2011-04-17T14:44:31","modified_gmt":"2011-04-17T14:44:31","slug":"revenue-adjustment-script","status":"publish","type":"post","link":"https:\/\/erpschools.com\/erps\/scripts\/revenue-adjustment-script","title":{"rendered":"Revenue Adjustment Script"},"content":{"rendered":"<p>This script can be used to adjust the Revenue for a particular transaction. The amount can be adjusted from one transaction line to another line by specifying the actual amount to adjust or percentage. Run this procedure in loop to adjust many transactions.<\/p>\n<p><code><br \/>\nCREATE OR REPLACE PROCEDURE adjustment_api<br \/>\nIS<br \/>\n   p_revenue_adj_rec     ar_revenue_adjustment_pvt.rev_adj_rec_type;<br \/>\n   x_return_status       VARCHAR2 (2000);<br \/>\n   x_msg_count           NUMBER;<br \/>\n   x_msg_data            VARCHAR2 (2000);<br \/>\n   x_adjustment_id       NUMBER;<br \/>\n   x_adjustment_number   VARCHAR2 (50);<br \/>\n   l_return_status       VARCHAR2 (100);<br \/>\n   l_msg_count           NUMBER;<br \/>\n   l_msg_data            VARCHAR2 (1000);<br \/>\n   l_adjustment_id       NUMBER;<br \/>\n   l_adjustment_number   VARCHAR2 (1000);<\/p>\n<p>BEGIN<\/p>\n<p>   --GLOBAL VARIABLES INITIALIZATION<br \/>\n   DBMS_APPLICATION_INFO.set_client_info (107);<br \/>\n   arp_global.init_global;<br \/>\n   arp_standard.init_standard;<\/p>\n<p>   --ASSIGN VALUES<\/p>\n<p>   p_revenue_adj_rec.trx_number := '2008332';<br \/>\n   p_revenue_adj_rec.batch_source_name := 'WRS ORDER MANAGEMENT';<br \/>\n   p_revenue_adj_rec.amount_mode := 'P';<br \/>\n   -- P_REVENUE_ADJ_REC.AMOUNT := 10;<br \/>\n   p_revenue_adj_rec.PERCENT := 2.6;<br \/>\n   --P_REVENUE_ADJ_REC.FROM_CUST_TRX_LINE_ID := ;<br \/>\n   --P_REVENUE_ADJ_REC.TO_CUST_TRX_LINE_ID := ;<br \/>\n   p_revenue_adj_rec.gl_date := '05-APR-06';<br \/>\n   p_revenue_adj_rec.reason_code := 'RA';<\/p>\n<p>-- ACTUAL BLOCK<\/p>\n<p>   ar_revenueadjust_pub.earn_revenue<br \/>\n                                  (p_api_version            => 2.0,<br \/>\n                                   p_init_msg_list          => fnd_api.g_true,<br \/>\n                                   x_return_status          => l_return_status,<br \/>\n                                   x_msg_count              => l_msg_count,<br \/>\n                                   x_msg_data               => l_msg_data,<br \/>\n                                   p_rev_adj_rec            => p_revenue_adj_rec,<br \/>\n                                   x_adjustment_id          => l_adjustment_id,<br \/>\n                                   x_adjustment_number      => l_adjustment_number<br \/>\n                                  );<\/p>\n<p>   -- DISPLAY OUT PARAMETERS<\/p>\n<p>   DBMS_OUTPUT.put_line ('x_return_status: ' || l_return_status);<br \/>\n   DBMS_OUTPUT.put_line ('x_msg_count: ' || l_msg_count);<br \/>\n   DBMS_OUTPUT.put_line ('x_msg_data: ' || l_msg_data);<br \/>\n   DBMS_OUTPUT.put_line ('x_adjustment_id: ' || l_adjustment_id);<br \/>\n   DBMS_OUTPUT.put_line ('x_adjustment_number: ' || l_adjustment_number);<\/p>\n<p>   COMMIT;<\/p>\n<p>END adjustment_api;<\/p>\n<p><\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>This script can be used to adjust the Revenue for a particular transaction. The amount can be adjusted from one transaction line to another line by specifying the actual amount to adjust or percentage. Run this procedure in loop to adjust many transactions. CREATE OR REPLACE PROCEDURE adjustment_api IS p_revenue_adj_rec ar_revenue_adjustment_pvt.rev_adj_rec_type; x_return_status VARCHAR2 (2000); x_msg_count [&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-1848","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 revenue recognition<\/title>\n<meta name=\"description\" content=\"oracle apps revenue recognition and revenue adjustment scripts\" \/>\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\/revenue-adjustment-script\" \/>\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\/scripts\/revenue-adjustment-script#article\",\"isPartOf\":{\"@id\":\"https:\/\/erpschools.com\/erps\/scripts\/revenue-adjustment-script\"},\"author\":{\"name\":\"Prudhvi\",\"@id\":\"https:\/\/erpschools.com\/erps\/#\/schema\/person\/dbed9bb7fb66aa7a700fc565da024512\"},\"headline\":\"Revenue Adjustment Script\",\"datePublished\":\"2011-04-17T14:44:31+00:00\",\"dateModified\":\"2011-04-17T14:44:31+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/erpschools.com\/erps\/scripts\/revenue-adjustment-script\"},\"wordCount\":46,\"commentCount\":2,\"publisher\":{\"@id\":\"https:\/\/erpschools.com\/erps\/#organization\"},\"articleSection\":[\"Scripts\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/erpschools.com\/erps\/scripts\/revenue-adjustment-script#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/erpschools.com\/erps\/scripts\/revenue-adjustment-script\",\"url\":\"https:\/\/erpschools.com\/erps\/scripts\/revenue-adjustment-script\",\"name\":\"oracle apps revenue recognition\",\"isPartOf\":{\"@id\":\"https:\/\/erpschools.com\/erps\/#website\"},\"datePublished\":\"2011-04-17T14:44:31+00:00\",\"dateModified\":\"2011-04-17T14:44:31+00:00\",\"description\":\"oracle apps revenue recognition and revenue adjustment scripts\",\"breadcrumb\":{\"@id\":\"https:\/\/erpschools.com\/erps\/scripts\/revenue-adjustment-script#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/erpschools.com\/erps\/scripts\/revenue-adjustment-script\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/erpschools.com\/erps\/scripts\/revenue-adjustment-script#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/erpschools.com\/erps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Revenue Adjustment Script\"}]},{\"@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 revenue recognition","description":"oracle apps revenue recognition and revenue adjustment scripts","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\/revenue-adjustment-script","twitter_misc":{"Written by":"Prudhvi","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/erpschools.com\/erps\/scripts\/revenue-adjustment-script#article","isPartOf":{"@id":"https:\/\/erpschools.com\/erps\/scripts\/revenue-adjustment-script"},"author":{"name":"Prudhvi","@id":"https:\/\/erpschools.com\/erps\/#\/schema\/person\/dbed9bb7fb66aa7a700fc565da024512"},"headline":"Revenue Adjustment Script","datePublished":"2011-04-17T14:44:31+00:00","dateModified":"2011-04-17T14:44:31+00:00","mainEntityOfPage":{"@id":"https:\/\/erpschools.com\/erps\/scripts\/revenue-adjustment-script"},"wordCount":46,"commentCount":2,"publisher":{"@id":"https:\/\/erpschools.com\/erps\/#organization"},"articleSection":["Scripts"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/erpschools.com\/erps\/scripts\/revenue-adjustment-script#respond"]}]},{"@type":"WebPage","@id":"https:\/\/erpschools.com\/erps\/scripts\/revenue-adjustment-script","url":"https:\/\/erpschools.com\/erps\/scripts\/revenue-adjustment-script","name":"oracle apps revenue recognition","isPartOf":{"@id":"https:\/\/erpschools.com\/erps\/#website"},"datePublished":"2011-04-17T14:44:31+00:00","dateModified":"2011-04-17T14:44:31+00:00","description":"oracle apps revenue recognition and revenue adjustment scripts","breadcrumb":{"@id":"https:\/\/erpschools.com\/erps\/scripts\/revenue-adjustment-script#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/erpschools.com\/erps\/scripts\/revenue-adjustment-script"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/erpschools.com\/erps\/scripts\/revenue-adjustment-script#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/erpschools.com\/erps"},{"@type":"ListItem","position":2,"name":"Revenue Adjustment Script"}]},{"@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\/1848","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=1848"}],"version-history":[{"count":0,"href":"https:\/\/erpschools.com\/erps\/wp-json\/wp\/v2\/posts\/1848\/revisions"}],"wp:attachment":[{"href":"https:\/\/erpschools.com\/erps\/wp-json\/wp\/v2\/media?parent=1848"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/erpschools.com\/erps\/wp-json\/wp\/v2\/categories?post=1848"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/erpschools.com\/erps\/wp-json\/wp\/v2\/tags?post=1848"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}