{"id":1856,"date":"2011-04-17T15:03:57","date_gmt":"2011-04-17T09:33:57","guid":{"rendered":"http:\/\/sendyoursmiles.com\/?p=1856"},"modified":"2011-04-17T15:03:57","modified_gmt":"2011-04-17T09:33:57","slug":"concurrent-program-registration-scripts","status":"publish","type":"post","link":"https:\/\/erpschools.com\/erps\/scripts\/concurrent-program-registration-scripts","title":{"rendered":"Concurrent Program Registration Scripts"},"content":{"rendered":"<p>The scripts in this article can be used to:<br \/>\n1) Register the executable and Program<br \/>\n2) Attach Concurrent program to a Request Group<br \/>\n3) Submit Concurrent program<\/p>\n<p>1) Registering the Executable from back end<\/p>\n<p>Usually we create executable in the front-end, but this can be done from the database tier i.e. back-end too.<br \/>\nBelow is the PL\/SQL code to create an executable from back-end.<\/p>\n<p><code>         <\/p>\n<p>BEGIN<br \/>\n   FND_PROGRAM.executable('XXMZ_ERPSCHOOLS_EMPLOYEE' -- executable<br \/>\n                          , 'XXMZ Custom' -- application<br \/>\n                          , 'XXMZ_ERPSCHOOLS_EMPLOYEE' -- short_name<br \/>\n                          , 'Executable for ERPSCHOOLS Employee INFORMATION' -- description<br \/>\n                          , 'PL\/SQL Stored Procedure' -- execution_method<br \/>\n                          , 'XXMZ_ERPSCHOOLS_EMPLOYEE' -- execution_file_name<br \/>\n                          , '' -- subroutine_name<br \/>\n                          , '' -- Execution File Path<br \/>\n                          , 'US' -- language_code<br \/>\n                          , '');<br \/>\n             COMMIT;<br \/>\n         END;<\/code><\/p>\n<p>Query in the front-end to see whether your executable is created or not.<\/p>\n<p>2) Registering the Concurrent program from back end<\/p>\n<p>Usually we create Concurrent program in the front-end, but this can be done from the database tier too.<br \/>\nBelow is the program to create a Concurrent program from back-end.<\/p>\n<p><code><br \/>\n BEGIN<br \/>\n       FND_PROGRAM.register('Concurrent program for ErpSchools Employee Information' -- program<br \/>\n                            , 'XXMZ Custom' -- application<br \/>\n                            , 'Y' -- enable<br \/>\n                            , 'XXMZ_ERPSCHOOLS_EMPLOYEE' -- short_name<br \/>\n                            , 'ErpSchools Employee Information' -- description<br \/>\n                            , 'XXMZ_ERPSCHOOLS_EMPLOYEE' -- executable_short_name<br \/>\n                            , 'XXMZ Custom' -- executable_application<br \/>\n                            , '' -- execution_options<br \/>\n                            , '' -- priority<br \/>\n                            , 'Y' -- save_output<br \/>\n                            , 'Y' -- print<br \/>\n                            , '' -- cols<br \/>\n                            , '' -- rows<br \/>\n                            , '' -- style<br \/>\n                            , 'N' -- style_required<br \/>\n                            , '' -- printer<br \/>\n                            , '' -- request_type<br \/>\n                            , '' -- request_type_application<br \/>\n                            , 'Y' -- use_in_srs<br \/>\n                            , 'N' -- allow_disabled_values<br \/>\n                            , 'N' -- run_alone<br \/>\n                            , 'TEXT' \u2013 output_type<br \/>\n                            , 'N' -- enable_trace<br \/>\n                            , 'Y' -- restart<br \/>\n                            , 'Y' -- nls_compliant<br \/>\n                            , '' -- icon_name<br \/>\n                            , 'US'); -- language_code<\/p>\n<p>                        COMMIT;<br \/>\n            END;<\/code><\/p>\n<p>Query in the front-end to see whether your Concurrent program is created or not.<\/p>\n<p>Attaching the concurrent program to the request group<\/p>\n<p>Usually we Attach Concurrent program to the request group in the front-end, but this can be done from database tier too.<br \/>\nBelow is the program to Attach Concurrent program to the request group from back-end.<\/p>\n<p><code> <\/p>\n<p>BEGIN<br \/>\n   FND_PROGRAM.add_to_group('XXMZ_ERPSCHOOLS_EMPLOYEE' -- program_short_name<br \/>\n                            , 'XXMZ Custom' -- application<br \/>\n                            , 'xxmz Request Group' -- Report Group Name<br \/>\n                            , 'XXMZ'); -- Report Group Application<br \/>\n                        COMMIT;<br \/>\nEND;<br \/>\n<\/code><\/p>\n<p>Query in the front-end to see whether your Concurrent program is Attached to Request Group or not.<\/p>\n<p>Submitting Concurrent Program from Back-end<\/p>\n<p>We first need to initialize oracle applications session using<br \/>\nfnd_global.apps_initialize(user_id,responsibility_id,application_responsibility_id) and then run fnd_request.submit_request<\/p>\n<p><code><br \/>\nDECLARE<br \/>\n      l_request_id NUMBER(30);<br \/>\n  begin<br \/>\n      FND_GLOBAL.APPS_INITIALIZE (user_id => 1318, resp_id => 59966, resp_appl_id => 20064); <\/p>\n<p>      l_request_id:= FND_REQUEST.SUBMIT_REQUEST ('XXMZ' --Application Short name,<br \/>\n                                           'VENDOR_FORM'-- Concurrent Program Short Name );<br \/>\n      DBMS_OUTPUT.PUT_LINE(l_request_id); <\/p>\n<p>      commit;<br \/>\n  end;<br \/>\n<\/code><\/p>\n<p>To get the resp_id and resp_appl_id use the below queries.<\/p>\n<p><code><br \/>\n             SELECT APPLICATION_ID, RESPONSIBILITY_ID<br \/>\n                          FROM FND_RESPONSIBILITY_TL<br \/>\n                          WHERE RESPONSIBILITY_NAME='xxmz Custom';<br \/>\n<\/code><\/p>\n<p><code> SELECT USER_ID FROM FND_USER WHERE USER_NAME='OPERATIONS'<\/code><\/p>\n<p>Once the concurrent program is submitted from back-end, status of the concurrent program can be checked using below query.<br \/>\n<code> SELECT * FROM FND_CONCURRENT_REQUESTS WHERE   REQUEST_ID=2766602 <\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>The scripts in this article can be used to: 1) Register the executable and Program 2) Attach Concurrent program to a Request Group 3) Submit Concurrent program 1) Registering the Executable from back end Usually we create executable in the front-end, but this can be done from the database tier i.e. back-end too. Below is [&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-1856","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 concurrent program registration script<\/title>\n<meta name=\"description\" content=\"The scripts in this article can be used to: 1) Register the executable and Program 2) Attach Concurrent program to a Request Group 3) Submit Concurrent program\" \/>\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\/concurrent-program-registration-scripts\" \/>\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=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/erpschools.com\/erps\/scripts\/concurrent-program-registration-scripts#article\",\"isPartOf\":{\"@id\":\"https:\/\/erpschools.com\/erps\/scripts\/concurrent-program-registration-scripts\"},\"author\":{\"name\":\"Prudhvi\",\"@id\":\"https:\/\/erpschools.com\/erps\/#\/schema\/person\/dbed9bb7fb66aa7a700fc565da024512\"},\"headline\":\"Concurrent Program Registration Scripts\",\"datePublished\":\"2011-04-17T09:33:57+00:00\",\"dateModified\":\"2011-04-17T09:33:57+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/erpschools.com\/erps\/scripts\/concurrent-program-registration-scripts\"},\"wordCount\":253,\"commentCount\":7,\"publisher\":{\"@id\":\"https:\/\/erpschools.com\/erps\/#organization\"},\"articleSection\":[\"Scripts\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/erpschools.com\/erps\/scripts\/concurrent-program-registration-scripts#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/erpschools.com\/erps\/scripts\/concurrent-program-registration-scripts\",\"url\":\"https:\/\/erpschools.com\/erps\/scripts\/concurrent-program-registration-scripts\",\"name\":\"oracle apps concurrent program registration script\",\"isPartOf\":{\"@id\":\"https:\/\/erpschools.com\/erps\/#website\"},\"datePublished\":\"2011-04-17T09:33:57+00:00\",\"dateModified\":\"2011-04-17T09:33:57+00:00\",\"description\":\"The scripts in this article can be used to: 1) Register the executable and Program 2) Attach Concurrent program to a Request Group 3) Submit Concurrent program\",\"breadcrumb\":{\"@id\":\"https:\/\/erpschools.com\/erps\/scripts\/concurrent-program-registration-scripts#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/erpschools.com\/erps\/scripts\/concurrent-program-registration-scripts\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/erpschools.com\/erps\/scripts\/concurrent-program-registration-scripts#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/erpschools.com\/erps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Concurrent Program Registration Scripts\"}]},{\"@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 concurrent program registration script","description":"The scripts in this article can be used to: 1) Register the executable and Program 2) Attach Concurrent program to a Request Group 3) Submit Concurrent program","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\/concurrent-program-registration-scripts","twitter_misc":{"Written by":"Prudhvi","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/erpschools.com\/erps\/scripts\/concurrent-program-registration-scripts#article","isPartOf":{"@id":"https:\/\/erpschools.com\/erps\/scripts\/concurrent-program-registration-scripts"},"author":{"name":"Prudhvi","@id":"https:\/\/erpschools.com\/erps\/#\/schema\/person\/dbed9bb7fb66aa7a700fc565da024512"},"headline":"Concurrent Program Registration Scripts","datePublished":"2011-04-17T09:33:57+00:00","dateModified":"2011-04-17T09:33:57+00:00","mainEntityOfPage":{"@id":"https:\/\/erpschools.com\/erps\/scripts\/concurrent-program-registration-scripts"},"wordCount":253,"commentCount":7,"publisher":{"@id":"https:\/\/erpschools.com\/erps\/#organization"},"articleSection":["Scripts"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/erpschools.com\/erps\/scripts\/concurrent-program-registration-scripts#respond"]}]},{"@type":"WebPage","@id":"https:\/\/erpschools.com\/erps\/scripts\/concurrent-program-registration-scripts","url":"https:\/\/erpschools.com\/erps\/scripts\/concurrent-program-registration-scripts","name":"oracle apps concurrent program registration script","isPartOf":{"@id":"https:\/\/erpschools.com\/erps\/#website"},"datePublished":"2011-04-17T09:33:57+00:00","dateModified":"2011-04-17T09:33:57+00:00","description":"The scripts in this article can be used to: 1) Register the executable and Program 2) Attach Concurrent program to a Request Group 3) Submit Concurrent program","breadcrumb":{"@id":"https:\/\/erpschools.com\/erps\/scripts\/concurrent-program-registration-scripts#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/erpschools.com\/erps\/scripts\/concurrent-program-registration-scripts"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/erpschools.com\/erps\/scripts\/concurrent-program-registration-scripts#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/erpschools.com\/erps"},{"@type":"ListItem","position":2,"name":"Concurrent Program Registration Scripts"}]},{"@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\/1856","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=1856"}],"version-history":[{"count":0,"href":"https:\/\/erpschools.com\/erps\/wp-json\/wp\/v2\/posts\/1856\/revisions"}],"wp:attachment":[{"href":"https:\/\/erpschools.com\/erps\/wp-json\/wp\/v2\/media?parent=1856"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/erpschools.com\/erps\/wp-json\/wp\/v2\/categories?post=1856"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/erpschools.com\/erps\/wp-json\/wp\/v2\/tags?post=1856"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}