{"id":4305,"date":"2013-11-21T20:28:58","date_gmt":"2013-11-21T20:28:58","guid":{"rendered":"http:\/\/erpschools.com\/?p=4305"},"modified":"2014-12-05T10:08:33","modified_gmt":"2014-12-05T10:08:33","slug":"oe_order_pub-process-order-api-cancel-sales-order-line","status":"publish","type":"post","link":"https:\/\/erpschools.com\/erps\/api\/om-api\/oe_order_pub-process-order-api-cancel-sales-order-line","title":{"rendered":"OE_ORDER_PUB: Cancel Sales Order Line"},"content":{"rendered":"<p><code><br \/>\nset serveroutput on;<br \/>\nDECLARE<br \/>\nv_api_version_number           NUMBER  := 1;<br \/>\nv_return_status                VARCHAR2 (2000);<br \/>\nv_msg_count                    NUMBER;<br \/>\nv_msg_data                     VARCHAR2 (2000);<br \/>\nl_debug_level                  NUMBER := 1<\/p>\n<p>-- IN Variables --<br \/>\nv_header_rec                   oe_order_pub.header_rec_type;<br \/>\nv_line_tbl                     oe_order_pub.line_tbl_type;<br \/>\nv_action_request_tbl           oe_order_pub.request_tbl_type;<br \/>\nv_line_adj_tbl                 oe_order_pub.line_adj_tbl_type;<\/p>\n<p>-- OUT Variables --<br \/>\nv_header_rec_out               oe_order_pub.header_rec_type;<br \/>\nv_header_val_rec_out           oe_order_pub.header_val_rec_type;<br \/>\nv_header_adj_tbl_out           oe_order_pub.header_adj_tbl_type;<br \/>\nv_header_adj_val_tbl_out       oe_order_pub.header_adj_val_tbl_type;<br \/>\nv_header_price_att_tbl_out     oe_order_pub.header_price_att_tbl_type;<br \/>\nv_header_adj_att_tbl_out       oe_order_pub.header_adj_att_tbl_type;<br \/>\nv_header_adj_assoc_tbl_out     oe_order_pub.header_adj_assoc_tbl_type;<br \/>\nv_header_scredit_tbl_out       oe_order_pub.header_scredit_tbl_type;<br \/>\nv_header_scredit_val_tbl_out   oe_order_pub.header_scredit_val_tbl_type;<br \/>\nv_line_tbl_out                 oe_order_pub.line_tbl_type;<br \/>\nv_line_val_tbl_out             oe_order_pub.line_val_tbl_type;<br \/>\nv_line_adj_tbl_out             oe_order_pub.line_adj_tbl_type;<br \/>\nv_line_adj_val_tbl_out         oe_order_pub.line_adj_val_tbl_type;<br \/>\nv_line_price_att_tbl_out       oe_order_pub.line_price_att_tbl_type;<br \/>\nv_line_adj_att_tbl_out         oe_order_pub.line_adj_att_tbl_type;<br \/>\nv_line_adj_assoc_tbl_out       oe_order_pub.line_adj_assoc_tbl_type;<br \/>\nv_line_scredit_tbl_out         oe_order_pub.line_scredit_tbl_type;<br \/>\nv_line_scredit_val_tbl_out     oe_order_pub.line_scredit_val_tbl_type;<br \/>\nv_lot_serial_tbl_out           oe_order_pub.lot_serial_tbl_type;<br \/>\nv_lot_serial_val_tbl_out       oe_order_pub.lot_serial_val_tbl_type;<br \/>\nv_action_request_tbl_out       oe_order_pub.request_tbl_type;<\/p>\n<p>BEGIN<\/p>\n<p>IF (l_debug_level &gt; 0) THEN<br \/>\nl_debug_file := OE_DEBUG_PUB.Set_Debug_Mode('FILE');<br \/>\noe_debug_pub.initialize;<br \/>\noe_debug_pub.setdebuglevel(l_debug_level);<br \/>\nOe_Msg_Pub.initialize;<br \/>\nEND IF;<\/p>\n<p>-- Setting the Enviroment --<br \/>\nmo_global.init('ONT');<br \/>\nmo_global.set_policy_context('S',204);<br \/>\nfnd_global.apps_initialize ( user_id      =&gt; 1318<br \/>\n                            ,resp_id      =&gt; 21623<br \/>\n                            ,resp_appl_id =&gt; 660);<\/p>\n<p>v_action_request_tbl (1) := oe_order_pub.g_miss_request_rec;<\/p>\n<p>-- Cancel a Line Record --<br \/>\nv_line_tbl (1)                      := oe_order_pub.g_miss_line_rec;<br \/>\nv_line_tbl (1).operation            := OE_GLOBALS.G_OPR_UPDATE;<br \/>\nv_line_tbl (1).header_id            := 190105;<br \/>\nv_line_tbl (1).line_id              := 388075;<br \/>\nv_line_tbl (1).ordered_quantity     := 1;<br \/>\nv_line_tbl (1).cancelled_flag       := 'Y';<br \/>\nv_line_tbl (1).cancelled_quantity   := 1;<br \/>\nv_line_tbl (1).change_reason        := 'erpSchools Test';<\/p>\n<p>DBMS_OUTPUT.PUT_LINE('Starting of API');<\/p>\n<p>-- Calling the API to cancel a line from an Existing Order --<\/p>\n<p>OE_ORDER_PUB.PROCESS_ORDER (<br \/>\np_api_version_number            =&gt; v_api_version_number<br \/>\n, p_header_rec                  =&gt; v_header_rec<br \/>\n, p_line_tbl                    =&gt; v_line_tbl<br \/>\n, p_action_request_tbl          =&gt; v_action_request_tbl<br \/>\n, p_line_adj_tbl                =&gt; v_line_adj_tbl<br \/>\n-- OUT variables<br \/>\n, x_header_rec                  =&gt; v_header_rec_out<br \/>\n, x_header_val_rec              =&gt; v_header_val_rec_out<br \/>\n, x_header_adj_tbl              =&gt; v_header_adj_tbl_out<br \/>\n, x_header_adj_val_tbl          =&gt; v_header_adj_val_tbl_out<br \/>\n, x_header_price_att_tbl        =&gt; v_header_price_att_tbl_out<br \/>\n, x_header_adj_att_tbl          =&gt; v_header_adj_att_tbl_out<br \/>\n, x_header_adj_assoc_tbl        =&gt; v_header_adj_assoc_tbl_out<br \/>\n, x_header_scredit_tbl          =&gt; v_header_scredit_tbl_out<br \/>\n, x_header_scredit_val_tbl      =&gt; v_header_scredit_val_tbl_out<br \/>\n, x_line_tbl                    =&gt; v_line_tbl_out<br \/>\n, x_line_val_tbl                =&gt; v_line_val_tbl_out<br \/>\n, x_line_adj_tbl                =&gt; v_line_adj_tbl_out<br \/>\n, x_line_adj_val_tbl            =&gt; v_line_adj_val_tbl_out<br \/>\n, x_line_price_att_tbl          =&gt; v_line_price_att_tbl_out<br \/>\n, x_line_adj_att_tbl            =&gt; v_line_adj_att_tbl_out<br \/>\n, x_line_adj_assoc_tbl          =&gt; v_line_adj_assoc_tbl_out<br \/>\n, x_line_scredit_tbl            =&gt; v_line_scredit_tbl_out<br \/>\n, x_line_scredit_val_tbl        =&gt; v_line_scredit_val_tbl_out<br \/>\n, x_lot_serial_tbl              =&gt; v_lot_serial_tbl_out<br \/>\n, x_lot_serial_val_tbl          =&gt; v_lot_serial_val_tbl_out<br \/>\n, x_action_request_tbl          =&gt; v_action_request_tbl_out<br \/>\n, x_return_status               =&gt; v_return_status<br \/>\n, x_msg_count                   =&gt; v_msg_count<br \/>\n, x_msg_data                    =&gt; v_msg_data<br \/>\n);<\/p>\n<p>DBMS_OUTPUT.PUT_LINE('Completion of API');<\/p>\n<p>IF v_return_status = fnd_api.g_ret_sts_success THEN<br \/>\n    COMMIT;<br \/>\n    DBMS_OUTPUT.put_line ('Line Cancelation in Existing Order is Success ');<br \/>\nELSE<br \/>\n    DBMS_OUTPUT.put_line ('Line Cancelation in Existing Order failed:'||v_msg_data);<br \/>\n    ROLLBACK;<br \/>\n    FOR i IN 1 .. v_msg_count<br \/>\n    LOOP<br \/>\n      v_msg_data := oe_msg_pub.get( p_msg_index =&gt; i, p_encoded =&gt; 'F');<br \/>\n      dbms_output.put_line( i|| ') '|| v_msg_data);<br \/>\n    END LOOP;<br \/>\nEND IF;<br \/>\nEND;<br \/>\n\/<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>set serveroutput on; DECLARE v_api_version_number NUMBER := 1; v_return_status VARCHAR2 (2000); v_msg_count NUMBER; v_msg_data VARCHAR2 (2000); l_debug_level NUMBER := 1 &#8212; IN Variables &#8212; v_header_rec oe_order_pub.header_rec_type; v_line_tbl oe_order_pub.line_tbl_type; v_action_request_tbl oe_order_pub.request_tbl_type; v_line_adj_tbl oe_order_pub.line_adj_tbl_type; &#8212; OUT Variables &#8212; v_header_rec_out oe_order_pub.header_rec_type; v_header_val_rec_out oe_order_pub.header_val_rec_type; v_header_adj_tbl_out oe_order_pub.header_adj_tbl_type; v_header_adj_val_tbl_out oe_order_pub.header_adj_val_tbl_type; v_header_price_att_tbl_out oe_order_pub.header_price_att_tbl_type; v_header_adj_att_tbl_out oe_order_pub.header_adj_att_tbl_type; v_header_adj_assoc_tbl_out oe_order_pub.header_adj_assoc_tbl_type; v_header_scredit_tbl_out oe_order_pub.header_scredit_tbl_type; v_header_scredit_val_tbl_out oe_order_pub.header_scredit_val_tbl_type; v_line_tbl_out [&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,526],"class_list":["post-4305","post","type-post","status-publish","format-standard","hentry","category-om-api","tag-api","tag-om"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v23.4 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>OE_ORDER_PUB: Cancel Sales Order Line - erpSchools<\/title>\n<meta name=\"description\" content=\"oe_order_pub cancel line through process_order api\" \/>\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\/oe_order_pub-process-order-api-cancel-sales-order-line\" \/>\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=\"4 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\/oe_order_pub-process-order-api-cancel-sales-order-line#article\",\"isPartOf\":{\"@id\":\"https:\/\/erpschools.com\/erps\/api\/om-api\/oe_order_pub-process-order-api-cancel-sales-order-line\"},\"author\":{\"name\":\"Renuka\",\"@id\":\"https:\/\/erpschools.com\/erps\/#\/schema\/person\/cbade316c91d3f36ba5339e274c76249\"},\"headline\":\"OE_ORDER_PUB: Cancel Sales Order Line\",\"datePublished\":\"2013-11-21T20:28:58+00:00\",\"dateModified\":\"2014-12-05T10:08:33+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/erpschools.com\/erps\/api\/om-api\/oe_order_pub-process-order-api-cancel-sales-order-line\"},\"wordCount\":7,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/erpschools.com\/erps\/#organization\"},\"keywords\":[\"API\",\"om\"],\"articleSection\":[\"OM API\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/erpschools.com\/erps\/api\/om-api\/oe_order_pub-process-order-api-cancel-sales-order-line#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/erpschools.com\/erps\/api\/om-api\/oe_order_pub-process-order-api-cancel-sales-order-line\",\"url\":\"https:\/\/erpschools.com\/erps\/api\/om-api\/oe_order_pub-process-order-api-cancel-sales-order-line\",\"name\":\"OE_ORDER_PUB: Cancel Sales Order Line - erpSchools\",\"isPartOf\":{\"@id\":\"https:\/\/erpschools.com\/erps\/#website\"},\"datePublished\":\"2013-11-21T20:28:58+00:00\",\"dateModified\":\"2014-12-05T10:08:33+00:00\",\"description\":\"oe_order_pub cancel line through process_order api\",\"breadcrumb\":{\"@id\":\"https:\/\/erpschools.com\/erps\/api\/om-api\/oe_order_pub-process-order-api-cancel-sales-order-line#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/erpschools.com\/erps\/api\/om-api\/oe_order_pub-process-order-api-cancel-sales-order-line\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/erpschools.com\/erps\/api\/om-api\/oe_order_pub-process-order-api-cancel-sales-order-line#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/erpschools.com\/erps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"OE_ORDER_PUB: Cancel Sales Order Line\"}]},{\"@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":"OE_ORDER_PUB: Cancel Sales Order Line - erpSchools","description":"oe_order_pub cancel line through process_order api","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\/oe_order_pub-process-order-api-cancel-sales-order-line","twitter_misc":{"Written by":"Renuka","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/erpschools.com\/erps\/api\/om-api\/oe_order_pub-process-order-api-cancel-sales-order-line#article","isPartOf":{"@id":"https:\/\/erpschools.com\/erps\/api\/om-api\/oe_order_pub-process-order-api-cancel-sales-order-line"},"author":{"name":"Renuka","@id":"https:\/\/erpschools.com\/erps\/#\/schema\/person\/cbade316c91d3f36ba5339e274c76249"},"headline":"OE_ORDER_PUB: Cancel Sales Order Line","datePublished":"2013-11-21T20:28:58+00:00","dateModified":"2014-12-05T10:08:33+00:00","mainEntityOfPage":{"@id":"https:\/\/erpschools.com\/erps\/api\/om-api\/oe_order_pub-process-order-api-cancel-sales-order-line"},"wordCount":7,"commentCount":0,"publisher":{"@id":"https:\/\/erpschools.com\/erps\/#organization"},"keywords":["API","om"],"articleSection":["OM API"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/erpschools.com\/erps\/api\/om-api\/oe_order_pub-process-order-api-cancel-sales-order-line#respond"]}]},{"@type":"WebPage","@id":"https:\/\/erpschools.com\/erps\/api\/om-api\/oe_order_pub-process-order-api-cancel-sales-order-line","url":"https:\/\/erpschools.com\/erps\/api\/om-api\/oe_order_pub-process-order-api-cancel-sales-order-line","name":"OE_ORDER_PUB: Cancel Sales Order Line - erpSchools","isPartOf":{"@id":"https:\/\/erpschools.com\/erps\/#website"},"datePublished":"2013-11-21T20:28:58+00:00","dateModified":"2014-12-05T10:08:33+00:00","description":"oe_order_pub cancel line through process_order api","breadcrumb":{"@id":"https:\/\/erpschools.com\/erps\/api\/om-api\/oe_order_pub-process-order-api-cancel-sales-order-line#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/erpschools.com\/erps\/api\/om-api\/oe_order_pub-process-order-api-cancel-sales-order-line"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/erpschools.com\/erps\/api\/om-api\/oe_order_pub-process-order-api-cancel-sales-order-line#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/erpschools.com\/erps"},{"@type":"ListItem","position":2,"name":"OE_ORDER_PUB: Cancel Sales Order Line"}]},{"@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\/4305","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=4305"}],"version-history":[{"count":0,"href":"https:\/\/erpschools.com\/erps\/wp-json\/wp\/v2\/posts\/4305\/revisions"}],"wp:attachment":[{"href":"https:\/\/erpschools.com\/erps\/wp-json\/wp\/v2\/media?parent=4305"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/erpschools.com\/erps\/wp-json\/wp\/v2\/categories?post=4305"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/erpschools.com\/erps\/wp-json\/wp\/v2\/tags?post=4305"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}