{"id":1846,"date":"2011-04-17T14:42:32","date_gmt":"2011-04-17T14:42:32","guid":{"rendered":"http:\/\/sendyoursmiles.com\/?p=1846"},"modified":"2011-04-17T14:42:32","modified_gmt":"2011-04-17T14:42:32","slug":"add-older-revision-numbers-to-an-item","status":"publish","type":"post","link":"https:\/\/erpschools.com\/erps\/scripts\/add-older-revision-numbers-to-an-item","title":{"rendered":"Add Older revision numbers to an item"},"content":{"rendered":"<p>The below script can be used to add Older revision numbers to an item.<\/p>\n<p>Why we need to use this script: In Oracle standard functionality revisions need to be added in sequence like A, B, C\u2026.. It doesn\u2019t allow us to add B after adding A and C. In that case this script can be used to add the missing revision from the backend.<\/p>\n<p><code><\/p>\n<p>DECLARE<br \/>\nitem_revision_rec MTL_ITEM_REVISIONS_B%ROWTYPE;<br \/>\nl_revision_id mtl_item_revisions_b.revision_id%TYPE;<br \/>\nl_row_id VARCHAR2(100);<\/p>\n<p>BEGIN<br \/>\nselect mtl_item_revisions_b_s.nextval<br \/>\ninto l_revision_id<br \/>\nfrom dual;<\/p>\n<p>item_revision_rec.REVISION_ID := l_revision_id;<br \/>\nitem_revision_rec.INVENTORY_ITEM_ID := &itemid ;<br \/>\nitem_revision_rec.ORGANIZATION_ID := &organization_id;<br \/>\nitem_revision_rec.REVISION := &revision;<br \/>\nitem_revision_rec.LAST_UPDATE_DATE := SYSDATE;<br \/>\nitem_revision_rec.LAST_UPDATED_BY := 1;<br \/>\nitem_revision_rec.CREATION_DATE := SYSDATE;<br \/>\nitem_revision_rec.CREATED_BY := 1;<br \/>\nitem_revision_rec.EFFECTIVITY_DATE := to_date('&amp;effectivity_date','DD-MON-YYYY HH24:MI:SS') ;<br \/>\nitem_revision_rec.IMPLEMENTATION_DATE:= to_date('&amp;effectivity_date','DD-MON-YYYY HH24:MI:SS') ;<br \/>\nitem_revision_rec.revision_label := &revision;<\/p>\n<p>MTL_ITEM_REVISIONS_UTIL.INSERT_ROW(P_Item_Revision_Rec=>item_revision_rec, x_rowid => l_row_id);<\/p>\n<p>END;<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>The below script can be used to add Older revision numbers to an item. Why we need to use this script: In Oracle standard functionality revisions need to be added in sequence like A, B, C\u2026.. It doesn\u2019t allow us to add B after adding A and C. In that case this script can be [&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-1846","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 inventory item revisions<\/title>\n<meta name=\"description\" content=\"The below script can be used to add Older revision numbers to an inventory item in oracle apps\" \/>\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\/add-older-revision-numbers-to-an-item\" \/>\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=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/erpschools.com\/erps\/scripts\/add-older-revision-numbers-to-an-item#article\",\"isPartOf\":{\"@id\":\"https:\/\/erpschools.com\/erps\/scripts\/add-older-revision-numbers-to-an-item\"},\"author\":{\"name\":\"Prudhvi\",\"@id\":\"https:\/\/erpschools.com\/erps\/#\/schema\/person\/dbed9bb7fb66aa7a700fc565da024512\"},\"headline\":\"Add Older revision numbers to an item\",\"datePublished\":\"2011-04-17T14:42:32+00:00\",\"dateModified\":\"2011-04-17T14:42:32+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/erpschools.com\/erps\/scripts\/add-older-revision-numbers-to-an-item\"},\"wordCount\":72,\"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\/add-older-revision-numbers-to-an-item#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/erpschools.com\/erps\/scripts\/add-older-revision-numbers-to-an-item\",\"url\":\"https:\/\/erpschools.com\/erps\/scripts\/add-older-revision-numbers-to-an-item\",\"name\":\"oracle apps inventory item revisions\",\"isPartOf\":{\"@id\":\"https:\/\/erpschools.com\/erps\/#website\"},\"datePublished\":\"2011-04-17T14:42:32+00:00\",\"dateModified\":\"2011-04-17T14:42:32+00:00\",\"description\":\"The below script can be used to add Older revision numbers to an inventory item in oracle apps\",\"breadcrumb\":{\"@id\":\"https:\/\/erpschools.com\/erps\/scripts\/add-older-revision-numbers-to-an-item#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/erpschools.com\/erps\/scripts\/add-older-revision-numbers-to-an-item\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/erpschools.com\/erps\/scripts\/add-older-revision-numbers-to-an-item#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/erpschools.com\/erps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Add Older revision numbers to an item\"}]},{\"@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 inventory item revisions","description":"The below script can be used to add Older revision numbers to an inventory item in oracle apps","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\/add-older-revision-numbers-to-an-item","twitter_misc":{"Written by":"Prudhvi","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/erpschools.com\/erps\/scripts\/add-older-revision-numbers-to-an-item#article","isPartOf":{"@id":"https:\/\/erpschools.com\/erps\/scripts\/add-older-revision-numbers-to-an-item"},"author":{"name":"Prudhvi","@id":"https:\/\/erpschools.com\/erps\/#\/schema\/person\/dbed9bb7fb66aa7a700fc565da024512"},"headline":"Add Older revision numbers to an item","datePublished":"2011-04-17T14:42:32+00:00","dateModified":"2011-04-17T14:42:32+00:00","mainEntityOfPage":{"@id":"https:\/\/erpschools.com\/erps\/scripts\/add-older-revision-numbers-to-an-item"},"wordCount":72,"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\/add-older-revision-numbers-to-an-item#respond"]}]},{"@type":"WebPage","@id":"https:\/\/erpschools.com\/erps\/scripts\/add-older-revision-numbers-to-an-item","url":"https:\/\/erpschools.com\/erps\/scripts\/add-older-revision-numbers-to-an-item","name":"oracle apps inventory item revisions","isPartOf":{"@id":"https:\/\/erpschools.com\/erps\/#website"},"datePublished":"2011-04-17T14:42:32+00:00","dateModified":"2011-04-17T14:42:32+00:00","description":"The below script can be used to add Older revision numbers to an inventory item in oracle apps","breadcrumb":{"@id":"https:\/\/erpschools.com\/erps\/scripts\/add-older-revision-numbers-to-an-item#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/erpschools.com\/erps\/scripts\/add-older-revision-numbers-to-an-item"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/erpschools.com\/erps\/scripts\/add-older-revision-numbers-to-an-item#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/erpschools.com\/erps"},{"@type":"ListItem","position":2,"name":"Add Older revision numbers to an item"}]},{"@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\/1846","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=1846"}],"version-history":[{"count":0,"href":"https:\/\/erpschools.com\/erps\/wp-json\/wp\/v2\/posts\/1846\/revisions"}],"wp:attachment":[{"href":"https:\/\/erpschools.com\/erps\/wp-json\/wp\/v2\/media?parent=1846"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/erpschools.com\/erps\/wp-json\/wp\/v2\/categories?post=1846"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/erpschools.com\/erps\/wp-json\/wp\/v2\/tags?post=1846"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}