{"id":4706,"date":"2014-04-01T15:46:13","date_gmt":"2014-04-01T15:46:13","guid":{"rendered":"http:\/\/erpschools.com\/?p=4706"},"modified":"2014-12-05T10:05:23","modified_gmt":"2014-12-05T10:05:23","slug":"ozf_fund_utilized_pvt-create_utilization","status":"publish","type":"post","link":"https:\/\/erpschools.com\/erps\/api\/om-api\/ozf_fund_utilized_pvt-create_utilization","title":{"rendered":"OZF_FUND_UTILIZED_PVT.create_utilization"},"content":{"rendered":"<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>SET serveroutput on;<br \/>\nDECLARE<br \/>\nl_user_name VARCHAR2(100) ;<br \/>\nl_user_id NUMBER;<br \/>\nl_resp_id NUMBER;<br \/>\nl_adj_rec OZF_FUND_UTILIZED_PVT.utilization_rec_type;<br \/>\nl_return_status VARCHAR2(1);<br \/>\nl_msg_count NUMBER;<br \/>\nl_msg_data VARCHAR2(2000);<br \/>\nl_utilization_id NUMBER;<br \/>\nBEGIN<\/p>\n<p>BEGIN<br \/>\nselect responsibility_id<br \/>\ninto l_resp_id<br \/>\nfrom fnd_responsibility_vl<br \/>\nwhere responsibility_key = &#8216;OZF_USER&#8217;;<br \/>\nEXCEPTION<br \/>\nWHEN OTHERS THEN<br \/>\nl_resp_id := NULL;<br \/>\nEND;<\/p>\n<p>FND_GLOBAL.apps_initialize (user_id =&gt; 1234 &#8212; change this value<br \/>\n, resp_id =&gt; l_resp_id, &#8212; Oracle trade management user<br \/>\nresp_appl_id =&gt; 123 &#8212; Oracle Trade management<br \/>\n);<br \/>\nFND_PROFILE.put (&#8216;FND_AS_MSG_LEVEL_THRESHOLD&#8217;, FND_MSG_PUB.G_MSG_LVL_DEBUG_HIGH);<br \/>\nFND_MSG_PUB.initialize;<\/p>\n<p>l_adj_rec.adjustment_type_id := 402;<br \/>\nl_adj_rec.utilization_type := &#8216;ADJUSTMENT&#8217;;<br \/>\nl_adj_rec.adjustment_desc :=&#8217;Adjustment from Public API&#8217;;<br \/>\nl_adj_rec.fund_id := 10001; &#8212; fund_id<br \/>\nl_adj_rec.amount := 15;<br \/>\nl_adj_rec.plan_curr_amount := 15;<br \/>\nl_adj_rec.adjustment_date := &#8217;19-DEC-2013&#8242;;<br \/>\nl_adj_rec.gl_date := &#8217;19-DEC-2013&#8242;;<br \/>\nl_adj_rec.exchange_rate_date := &#8217;19-DEC-2013&#8242;;<br \/>\nl_adj_rec.component_type := &#8216;OFFR&#8217;;<br \/>\nl_adj_rec.component_id := 29400;<br \/>\nl_adj_rec.plan_type := &#8216;OFFR&#8217;;<br \/>\nl_adj_rec.plan_id := 29400; &#8212; qp_list_header_id<br \/>\nl_adj_rec.product_level_type := &#8216;PRODUCT&#8217;;<br \/>\nl_adj_rec.product_id := 165954; &#8212; inventory_item_id<br \/>\nl_adj_rec.currency_code := &#8216;USD&#8217;;<br \/>\nl_adj_rec.plan_currency_code := &#8216;USD&#8217;;<br \/>\nl_adj_rec.fund_request_currency_code := &#8216;USD&#8217;;<br \/>\nl_adj_rec.cust_account_id := 1046; &#8212; max(cust_account_id) FROM ozf_funds_utilized_all_b.<br \/>\nl_adj_rec.billto_cust_account_id := 1046;<br \/>\nl_adj_rec.org_id := 81;<\/p>\n<p>OZF_FUND_UTILIZED_PVT.create_utilization (<br \/>\np_api_version =&gt; 1.0<br \/>\n,p_init_msg_list =&gt; fnd_api.g_false<br \/>\n,p_commit =&gt; fnd_api.g_false<br \/>\n,p_validation_level =&gt; fnd_api.g_valid_level_full<br \/>\n,x_return_status =&gt; l_return_status<br \/>\n,x_msg_count =&gt; l_msg_count<br \/>\n,x_msg_data =&gt; L_MSG_DATA<br \/>\n,p_create_gl_entry =&gt; fnd_api.g_false<br \/>\n,p_utilization_rec =&gt; l_adj_rec<br \/>\n,x_utilization_id =&gt; l_utilization_id<br \/>\n);<\/p>\n<p>dbms_output.put_line( &#8216; l_utilization_id &#8216;||l_utilization_id);<\/p>\n<p>dbms_output.put_line(&#8216;Create_Fund_Adjustment returns &#8216; || l_return_status);<br \/>\nIF l_return_status &lt;&gt; &#8216;S&#8217; THEN<br \/>\nFOR i IN 1..l_msg_count<br \/>\nLOOP<br \/>\ndbms_output.put_line(SUBSTR(fnd_msg_pub.get(p_msg_index =&gt; i, p_encoded =&gt; &#8216;F&#8217;), 1, 254));<br \/>\nEND LOOP;<br \/>\nROLLBACK;<br \/>\nELSE<br \/>\nCOMMIT;<br \/>\nEND IF;<br \/>\nEXCEPTION<br \/>\nWHEN OTHERS THEN<br \/>\ndbms_output.put_line(&#8216;exception in creating adjustment&#8217;);<br \/>\nROLLBACK;<br \/>\nEND;<\/p>\n<p>&nbsp;<\/p>\n<p>&#8212; Select * from OZF_FUNDS_UTILIZED_ALL_B where utilization_id = 11240; &#8211;l_utilization_id<br \/>\n&#8212; Navigation to view the Budget Adjustment<br \/>\n&#8212; Oracle Trademanagement User -&gt; Funds -&gt; Search for the Budget -&gt; Checkbook -&gt; There you can see the increment in Earned\/utilized amount<\/p>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp; &nbsp; SET serveroutput on; DECLARE l_user_name VARCHAR2(100) ; l_user_id NUMBER; l_resp_id NUMBER; l_adj_rec OZF_FUND_UTILIZED_PVT.utilization_rec_type; l_return_status VARCHAR2(1); l_msg_count NUMBER; l_msg_data VARCHAR2(2000); l_utilization_id NUMBER; BEGIN BEGIN select responsibility_id into l_resp_id from fnd_responsibility_vl where responsibility_key = &#8216;OZF_USER&#8217;; EXCEPTION WHEN OTHERS THEN l_resp_id := NULL; END; FND_GLOBAL.apps_initialize (user_id =&gt; 1234 &#8212; change this value , resp_id =&gt; l_resp_id, [&hellip;]<\/p>\n","protected":false},"author":7,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[503],"tags":[530,226,227,228],"class_list":["post-4706","post","type-post","status-publish","format-standard","hentry","category-om-api","tag-api","tag-budget","tag-create_utilization","tag-ozf_fund_utilized_pvt"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v23.4 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>OZF_FUND_UTILIZED_PVT.create_utilization - erpSchools<\/title>\n<meta name=\"description\" content=\"OZF_FUND_UTILIZED_PVT.create_utilization API sample script\" \/>\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\/om-api\/ozf_fund_utilized_pvt-create_utilization\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Renuka\" \/>\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\/om-api\/ozf_fund_utilized_pvt-create_utilization#article\",\"isPartOf\":{\"@id\":\"https:\/\/erpschools.com\/erps\/api\/om-api\/ozf_fund_utilized_pvt-create_utilization\"},\"author\":{\"name\":\"Renuka\",\"@id\":\"https:\/\/erpschools.com\/erps\/#\/schema\/person\/cbade316c91d3f36ba5339e274c76249\"},\"headline\":\"OZF_FUND_UTILIZED_PVT.create_utilization\",\"datePublished\":\"2014-04-01T15:46:13+00:00\",\"dateModified\":\"2014-12-05T10:05:23+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/erpschools.com\/erps\/api\/om-api\/ozf_fund_utilized_pvt-create_utilization\"},\"wordCount\":492,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/erpschools.com\/erps\/#organization\"},\"keywords\":[\"API\",\"Budget\",\"create_utilization\",\"OZF_FUND_UTILIZED_PVT\"],\"articleSection\":[\"OM API\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/erpschools.com\/erps\/api\/om-api\/ozf_fund_utilized_pvt-create_utilization#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/erpschools.com\/erps\/api\/om-api\/ozf_fund_utilized_pvt-create_utilization\",\"url\":\"https:\/\/erpschools.com\/erps\/api\/om-api\/ozf_fund_utilized_pvt-create_utilization\",\"name\":\"OZF_FUND_UTILIZED_PVT.create_utilization - erpSchools\",\"isPartOf\":{\"@id\":\"https:\/\/erpschools.com\/erps\/#website\"},\"datePublished\":\"2014-04-01T15:46:13+00:00\",\"dateModified\":\"2014-12-05T10:05:23+00:00\",\"description\":\"OZF_FUND_UTILIZED_PVT.create_utilization API sample script\",\"breadcrumb\":{\"@id\":\"https:\/\/erpschools.com\/erps\/api\/om-api\/ozf_fund_utilized_pvt-create_utilization#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/erpschools.com\/erps\/api\/om-api\/ozf_fund_utilized_pvt-create_utilization\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/erpschools.com\/erps\/api\/om-api\/ozf_fund_utilized_pvt-create_utilization#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/erpschools.com\/erps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"OZF_FUND_UTILIZED_PVT.create_utilization\"}]},{\"@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\/cbade316c91d3f36ba5339e274c76249\",\"name\":\"Renuka\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/erpschools.com\/erps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/cce370e0af70415e6928d71fa62e268258b9b5de89d5d65e0d14c63abd3cad0c?s=96&d=blank&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/cce370e0af70415e6928d71fa62e268258b9b5de89d5d65e0d14c63abd3cad0c?s=96&d=blank&r=g\",\"caption\":\"Renuka\"},\"url\":\"https:\/\/erpschools.com\/erps\/author\/renuka\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"OZF_FUND_UTILIZED_PVT.create_utilization - erpSchools","description":"OZF_FUND_UTILIZED_PVT.create_utilization API sample script","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\/om-api\/ozf_fund_utilized_pvt-create_utilization","twitter_misc":{"Written by":"Renuka","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/erpschools.com\/erps\/api\/om-api\/ozf_fund_utilized_pvt-create_utilization#article","isPartOf":{"@id":"https:\/\/erpschools.com\/erps\/api\/om-api\/ozf_fund_utilized_pvt-create_utilization"},"author":{"name":"Renuka","@id":"https:\/\/erpschools.com\/erps\/#\/schema\/person\/cbade316c91d3f36ba5339e274c76249"},"headline":"OZF_FUND_UTILIZED_PVT.create_utilization","datePublished":"2014-04-01T15:46:13+00:00","dateModified":"2014-12-05T10:05:23+00:00","mainEntityOfPage":{"@id":"https:\/\/erpschools.com\/erps\/api\/om-api\/ozf_fund_utilized_pvt-create_utilization"},"wordCount":492,"commentCount":0,"publisher":{"@id":"https:\/\/erpschools.com\/erps\/#organization"},"keywords":["API","Budget","create_utilization","OZF_FUND_UTILIZED_PVT"],"articleSection":["OM API"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/erpschools.com\/erps\/api\/om-api\/ozf_fund_utilized_pvt-create_utilization#respond"]}]},{"@type":"WebPage","@id":"https:\/\/erpschools.com\/erps\/api\/om-api\/ozf_fund_utilized_pvt-create_utilization","url":"https:\/\/erpschools.com\/erps\/api\/om-api\/ozf_fund_utilized_pvt-create_utilization","name":"OZF_FUND_UTILIZED_PVT.create_utilization - erpSchools","isPartOf":{"@id":"https:\/\/erpschools.com\/erps\/#website"},"datePublished":"2014-04-01T15:46:13+00:00","dateModified":"2014-12-05T10:05:23+00:00","description":"OZF_FUND_UTILIZED_PVT.create_utilization API sample script","breadcrumb":{"@id":"https:\/\/erpschools.com\/erps\/api\/om-api\/ozf_fund_utilized_pvt-create_utilization#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/erpschools.com\/erps\/api\/om-api\/ozf_fund_utilized_pvt-create_utilization"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/erpschools.com\/erps\/api\/om-api\/ozf_fund_utilized_pvt-create_utilization#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/erpschools.com\/erps"},{"@type":"ListItem","position":2,"name":"OZF_FUND_UTILIZED_PVT.create_utilization"}]},{"@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\/cbade316c91d3f36ba5339e274c76249","name":"Renuka","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/erpschools.com\/erps\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/cce370e0af70415e6928d71fa62e268258b9b5de89d5d65e0d14c63abd3cad0c?s=96&d=blank&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/cce370e0af70415e6928d71fa62e268258b9b5de89d5d65e0d14c63abd3cad0c?s=96&d=blank&r=g","caption":"Renuka"},"url":"https:\/\/erpschools.com\/erps\/author\/renuka"}]}},"_links":{"self":[{"href":"https:\/\/erpschools.com\/erps\/wp-json\/wp\/v2\/posts\/4706","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\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/erpschools.com\/erps\/wp-json\/wp\/v2\/comments?post=4706"}],"version-history":[{"count":0,"href":"https:\/\/erpschools.com\/erps\/wp-json\/wp\/v2\/posts\/4706\/revisions"}],"wp:attachment":[{"href":"https:\/\/erpschools.com\/erps\/wp-json\/wp\/v2\/media?parent=4706"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/erpschools.com\/erps\/wp-json\/wp\/v2\/categories?post=4706"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/erpschools.com\/erps\/wp-json\/wp\/v2\/tags?post=4706"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}