{"id":9601,"date":"2015-11-13T00:03:27","date_gmt":"2015-11-12T23:33:27","guid":{"rendered":"http:\/\/www.orabr.com\/?p=9601"},"modified":"2015-11-12T21:42:21","modified_gmt":"2015-11-12T23:42:21","slug":"-BAIXA-AUTOMATICA-LOTE-DO-AP-CONFIRMACAO-2","status":"publish","type":"post","link":"https:\/\/orabr.virttus.com\/?p=9601","title":{"rendered":"BAIXA AUTOM\u00c1TICA LOTE DO AP (CONFIRMA\u00c7\u00c3O)"},"content":{"rendered":"<p><HTML><HTML><\/p>\n<div>  <span style=\"display:none\">&nbsp;<\/span>    <!--~-|**|PrettyHtmlStartT|**|-~-->  <\/p>\n<div id=\"ygrp-mlmsg\" style=\"position:relative;\">\n<div id=\"ygrp-msg\" style=\"z-index: 1;\">  <!--~-|**|PrettyHtmlEndT|**|-~-->        <\/p>\n<div id=\"ygrp-text\" >\n<div style=\"color:#000;background-color:#fff;font-family:Courier New, courier, monaco, monospace, sans-serif;font-size:16px;\">\n<div id=\"yui_3_16_0_1_1446589122689_359906\"><span>Ol\u00e1 Rafael, tudo bem?<\/span><\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\"><span><br \/><\/span><\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\"><span id=\"yui_3_16_0_1_1446589122689_360599\">J\u00e1 fiz isso. O que exatamente voc\u00ea precisa?<\/span><\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\"><span><br \/><\/span><\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\"><span><br \/><\/span><\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\"><span id=\"yui_3_16_0_1_1446589122689_360612\">Aqui um exemplo do que foi feito nessa procedure.<\/span><\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\"><span id=\"yui_3_16_0_1_1446589122689_360597\">O nome do programa na&nbsp;<\/span>p_programs_list precisar ser o short_name do concurrent.<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\">Quando executar, vai inicializar uma concurrent para cada item na program_list.<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\"><\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\">Espero ter ajudado, qualquer coisa pode me escrever.<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\"><\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\">Abra\u00e7o,<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\">Helder Costa Amaral<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\"><\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\"><\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\"><\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\"><\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp;&#8211;This procedure is the Concurrent Parent Program<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp;&#8211;which in turn submits other payment programs as<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp;&#8211;child requests.<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp;&#8211;Called from the procedure Submit of XXMV_AP_PAYMENT_PROCESSOR package.<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class><br id=\"yui_3_16_0_1_1446589122689_360103\" class\/><\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp;PROCEDURE submit_program(errbuf &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; OUT NOCOPY VARCHAR2<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;,retcode &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;OUT NOCOPY NUMBER<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;,p_progs_params_list1 IN VARCHAR2<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;,p_progs_params_list2 IN VARCHAR2<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;,p_progs_params_list3 IN VARCHAR2<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;,p_progs_params_list4 IN VARCHAR2<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;,p_progs_params_list5 IN VARCHAR2<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;,p_progs_params_list6 IN VARCHAR2<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;,p_progs_params_list7 IN VARCHAR2<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;,p_progs_params_list8 IN VARCHAR2<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;,p_progs_params_list9 IN VARCHAR2<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;,p_payment_batch &nbsp; &nbsp; &nbsp;IN VARCHAR2<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;,p_programs_list &nbsp; &nbsp; &nbsp;IN VARCHAR2<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;,p_org_id &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; IN NUMBER<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;,p_event &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;IN VARCHAR2<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;,p_calling_sequence &nbsp; IN VARCHAR2) IS<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class><br id=\"yui_3_16_0_1_1446589122689_360122\" class\/><\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; l_current_calling_sequence VARCHAR2(2000);<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; l_debug_info &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; VARCHAR2(100);<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; l_req_data &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; VARCHAR2(240); &#8212; Bug2828863 Changing length to 240.<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; l_program_index &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;NUMBER;<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; l_request_id &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; NUMBER;<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; l_sqlerrm &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;VARCHAR2(200);<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; l_error_mesg &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; VARCHAR2(2000);<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; no_of_parameters &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; NUMBER;<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; p_progs_params_list &nbsp; &nbsp; &nbsp; &nbsp;VARCHAR2(2000);<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; TYPE programs_table IS TABLE OF VARCHAR2(30) INDEX BY BINARY_INTEGER;<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; l_programs_list &nbsp; &nbsp; &nbsp;programs_table;<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; l_prev_program_index NUMBER;<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; l_prev_request_id &nbsp; &nbsp;NUMBER;<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; dstatus &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;VARCHAR2(30) := &#8216;SUCCESS&#8217;;<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; dphase &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; VARCHAR2(30);<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; rstatus &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;VARCHAR2(80);<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; rphase &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; VARCHAR2(80);<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; message &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;VARCHAR2(240);<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; l_call_status &nbsp; &nbsp; &nbsp; &nbsp;BOOLEAN;<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; &#8211;l_complete &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; BOOLEAN;<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; l_debug_index &nbsp; &nbsp; &nbsp; &nbsp;NUMBER := 1;<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; l_length &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; NUMBER := 0;<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; l_start &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;NUMBER := 0;<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; l_program_name &nbsp; &nbsp; &nbsp; VARCHAR2(80) := NULL;<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp;BEGIN<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class><br id=\"yui_3_16_0_1_1446589122689_360150\" class\/><\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; &#8212; Update the calling sequence<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; &#8212;<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; l_current_calling_sequence := p_calling_sequence || &#8216;-&gt;&#8217; || &#8216;XXMV_AP_PAYMENT_PROCESSOR.submit_program&#8217;;<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class><br id=\"yui_3_16_0_1_1446589122689_360156\" class\/><\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; l_debug_info := &#8216;Building back the global list .&#8217;;<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class><br id=\"yui_3_16_0_1_1446589122689_360160\" class\/><\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; &#8211;Concatenate back the split progs_params_list into a single list again.<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; p_progs_params_list := p_progs_params_list1 || p_progs_params_list2 ||<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;p_progs_params_list3 || p_progs_params_list4 ||<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;p_progs_params_list5 || p_progs_params_list6 ||<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;p_progs_params_list7 || p_progs_params_list8 ||<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;p_progs_params_list9;<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class><br id=\"yui_3_16_0_1_1446589122689_360171\" class\/><\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; &#8212; Programs defined in the order they should run<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class><br id=\"yui_3_16_0_1_1446589122689_360177\" class\/><\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; l_debug_info := &#8216;Antes da atribui\u00e7\u00e3o do XXMVAUTOSELECT&#8217;;<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class><br id=\"yui_3_16_0_1_1446589122689_360181\" class\/><\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; IF instr(p_programs_list, &#8216;XXMVAUTOSELECT&#8217;) &lt;&gt; 0 THEN<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;l_programs_list(1) := &#8216;XXMVAUTOSELECT&#8217;; &#8212; Programa customizado para o Autoselect. &#8211;MV<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; END IF;<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class><br id=\"yui_3_16_0_1_1446589122689_360187\" class\/><\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; l_debug_info := &#8216;Depois da atribui\u00e7\u00e3o do XXMVAUTOSELECT&#8217;;<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class><br id=\"yui_3_16_0_1_1446589122689_360191\" class\/><\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; l_programs_list(2) := &#8216;BUILD&#8217;;<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; &#8211;Bug 2353651 Added for Calling Federal&#8217;s Report<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; l_programs_list(3) := &#8216;CASH_POSITION&#8217;;<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; l_programs_list(4) := &#8216;PRELIM_REGISTER&#8217;;<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; &#8211;Bug:2637430 &nbsp;Added for Federal Financials<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; l_programs_list(5) := &#8216;THIRD_PARTY_PAYMENT&#8217;;<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; &#8211;Bug:2025932 Added for AP-AR Netting<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; l_programs_list(6) := &#8216;NETTING&#8217;;<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; l_programs_list(7) := &#8216;FORMAT&#8217;;<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; l_programs_list(8) := &#8216;CONFIRM&#8217;;<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; l_programs_list(9) := &#8216;ACCOUNT&#8217;;<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; l_programs_list(10) := &#8216;POPAY&#8217;;<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; l_programs_list(11) := &#8216;FINAL_REGISTER&#8217;;<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; l_programs_list(12) := &#8216;REMITTANCE&#8217;;<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; l_programs_list(13) := &#8216;CANCEL&#8217;;<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; l_programs_list(14) := &#8216;ADDCONSOL&#8217;;<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; l_programs_list(15) := &#8216;IMPORT&#8217;;<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class><br id=\"yui_3_16_0_1_1446589122689_360211\" class\/><\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; &#8211;Print to Log file all the programs that will be submitted<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; l_req_data := fnd_conc_global.request_data;<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class><br id=\"yui_3_16_0_1_1446589122689_360218\" class\/><\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; IF (p_programs_list IS NOT NULL AND l_req_data IS NULL) THEN<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class><br id=\"yui_3_16_0_1_1446589122689_360222\" class\/><\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;l_debug_info := &#8216;Payment Process Manager will submit &#8216;;<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;fnd_file.put_line(fnd_file.log, l_debug_info);<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class><br id=\"yui_3_16_0_1_1446589122689_360227\" class\/><\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;LOOP<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; EXIT WHEN(l_debug_index &gt; 15);<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class><br id=\"yui_3_16_0_1_1446589122689_360232\" class\/><\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; l_start &nbsp;:= instr(p_programs_list<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;,l_programs_list(l_debug_index));<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; l_length := length(l_programs_list(l_debug_index));<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class><br id=\"yui_3_16_0_1_1446589122689_360238\" class\/><\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; IF (l_start &lt;&gt; 0) THEN<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;l_program_name := &#8216;&#8230;&#8230;..&#8217; ||<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;substr(p_programs_list, l_start, l_length);<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ELSE<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;l_program_name := NULL;<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; END IF;<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class><br id=\"yui_3_16_0_1_1446589122689_360247\" class\/><\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; IF (l_program_name IS NOT NULL) THEN<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;fnd_file.put_line(fnd_file.log, l_program_name);<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; END IF;<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; l_debug_index := l_debug_index + 1;<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class><br id=\"yui_3_16_0_1_1446589122689_360254\" class\/><\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;END LOOP;<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class><br id=\"yui_3_16_0_1_1446589122689_360258\" class\/><\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; END IF;<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class><br id=\"yui_3_16_0_1_1446589122689_360262\" class\/><\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; &#8212; Read the value from REQUEST_DATA. &nbsp;If this is the<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; &#8212; first run of the program, then this value will be null.<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; &#8212; Otherwise, this will be the value that we passed to<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; &#8212; SET_REQ_GLOBALS on the previous run.<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class><br id=\"yui_3_16_0_1_1446589122689_360271\" class\/><\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; l_req_data := fnd_conc_global.request_data;<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; IF (l_req_data IS NOT NULL) THEN<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class><br id=\"yui_3_16_0_1_1446589122689_360276\" class\/><\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;l_prev_program_index := substr(l_req_data<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;,1<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;,instr(l_req_data, &#8216;:&#8217;) &#8211; 1);<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;l_prev_request_id &nbsp; &nbsp;:= substr(l_req_data<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;,instr(l_req_data, &#8216;:&#8217;) + 1);<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class><br id=\"yui_3_16_0_1_1446589122689_360284\" class\/><\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;IF (l_prev_request_id IS NOT NULL) THEN<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; l_call_status := fnd_concurrent.get_request_status(l_prev_request_id<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ,&#8221;<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ,&#8221;<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ,rphase<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ,rstatus<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ,dphase<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ,dstatus<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ,message);<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;END IF;<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class><br id=\"yui_3_16_0_1_1446589122689_360297\" class\/><\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; END IF;<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class><br id=\"yui_3_16_0_1_1446589122689_360301\" class\/><\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; IF (dstatus &lt;&gt; &#8216;ERROR&#8217;) THEN<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class><br id=\"yui_3_16_0_1_1446589122689_360305\" class\/><\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class><br id=\"yui_3_16_0_1_1446589122689_360308\" class\/><\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class><br id=\"yui_3_16_0_1_1446589122689_360311\" class\/><\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&#8212; If this is the first run, we&#8217;ll set l_program_index 1.<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&#8212; Otherwise, we&#8217;ll set l_program_index request_data + 1.<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;IF (l_req_data IS NOT NULL) THEN<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class><br id=\"yui_3_16_0_1_1446589122689_360319\" class\/><\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; l_program_index := to_number(l_prev_program_index) + 1;<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class><br id=\"yui_3_16_0_1_1446589122689_360323\" class\/><\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; l_debug_info := l_programs_list(l_prev_program_index) ||<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &#8216; completed successfully.&#8217;;<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; fnd_file.put_line(fnd_file.log, l_debug_info);<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class><br id=\"yui_3_16_0_1_1446589122689_360329\" class\/><\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; IF (l_program_index &gt; 15) THEN<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;errbuf &nbsp;:= &#8216;Successful Completion&#8230;&#8217;;<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;retcode := 0;<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;RETURN;<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; END IF;<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class><br id=\"yui_3_16_0_1_1446589122689_360337\" class\/><\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ELSE<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class><br id=\"yui_3_16_0_1_1446589122689_360341\" class\/><\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; l_program_index := 1;<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class><br id=\"yui_3_16_0_1_1446589122689_360345\" class\/><\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;END IF;<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class><br id=\"yui_3_16_0_1_1446589122689_360349\" class\/><\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;&lt;next_program&gt;&gt;<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&#8212; If the Programs List passed to the parent process includes<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&#8212; this program, then submit a request for it.<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class><br id=\"yui_3_16_0_1_1446589122689_360357\" class\/><\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;IF (l_program_index &lt;= 15) THEN<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class><br id=\"yui_3_16_0_1_1446589122689_360361\" class\/><\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; IF instr(p_programs_list, l_programs_list(l_program_index)) &lt;&gt; 0 THEN<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class><br id=\"yui_3_16_0_1_1446589122689_360365\" class\/><\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;l_debug_info := &#8216;Get the parameters for the subprogram . &#8216;;<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;get_parameters(l_programs_list(l_program_index)<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;,p_progs_params_list<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;,p_param_name_list<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;,p_param_value_list<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;,no_of_parameters);<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class><br id=\"yui_3_16_0_1_1446589122689_360374\" class\/><\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class><br id=\"yui_3_16_0_1_1446589122689_360377\" class\/><\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;l_debug_info := &#8216;Submitting &#8216; ||<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;l_programs_list(l_program_index) || &#8216;&#8230;&#8217;;<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class><br id=\"yui_3_16_0_1_1446589122689_360382\" class\/><\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;fnd_file.put_line(fnd_file.log, l_debug_info);<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class><br id=\"yui_3_16_0_1_1446589122689_360386\" class\/><\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;submit_sub_program(l_request_id<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;,l_programs_list(l_program_index)<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;,p_payment_batch<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;,p_param_name_list<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;,p_param_value_list<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;,no_of_parameters<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;,p_org_id<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;,p_event);<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class><br id=\"yui_3_16_0_1_1446589122689_360397\" class\/><\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;IF l_request_id = 0 THEN<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class><br id=\"yui_3_16_0_1_1446589122689_360401\" class\/><\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; RAISE request_submission_failure;<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class><br id=\"yui_3_16_0_1_1446589122689_360405\" class\/><\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ELSE<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class><br id=\"yui_3_16_0_1_1446589122689_360409\" class\/><\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &#8212; Here we set the globals to put the program into the<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &#8212; PAUSED status on exit, and to save the state in<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &#8212; request_data.<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class><br id=\"yui_3_16_0_1_1446589122689_360415\" class\/><\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; fnd_conc_global.set_req_globals(conc_status &nbsp;=&gt; &#8216;PAUSED&#8217;<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;,request_data =&gt; to_char(l_program_index) || &#8216;:&#8217; ||<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; to_char(l_request_id));<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; l_debug_info := l_programs_list(l_program_index) ||<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &#8216; Submitted&#8230;Request id : &#8216; ||<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; to_char(l_request_id);<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; fnd_file.put_line(fnd_file.log, l_debug_info);<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class><br id=\"yui_3_16_0_1_1446589122689_360425\" class\/><\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; l_debug_info := &#8216;Wait for &#8216; ||<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; l_programs_list(l_program_index) ||<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &#8216; to complete&#8230;&#8217; ||<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &#8216; enter Paused mode.&#8217;;<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; fnd_file.put_line(fnd_file.log, l_debug_info);<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class><br id=\"yui_3_16_0_1_1446589122689_360433\" class\/><\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;END IF;<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class><br id=\"yui_3_16_0_1_1446589122689_360437\" class\/><\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;RETURN;<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class><br id=\"yui_3_16_0_1_1446589122689_360441\" class\/><\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ELSE<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class><br id=\"yui_3_16_0_1_1446589122689_360445\" class\/><\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;l_program_index := l_program_index + 1;<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;GOTO next_program;<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class><br id=\"yui_3_16_0_1_1446589122689_360450\" class\/><\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; END IF; &#8211;INSTR<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class><br id=\"yui_3_16_0_1_1446589122689_360454\" class\/><\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;END IF; &#8211;l_program_index<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class><br id=\"yui_3_16_0_1_1446589122689_360458\" class\/><\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class><br id=\"yui_3_16_0_1_1446589122689_360461\" class\/><\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;l_debug_info := &#8216;Payment Process Manager Completed Successfully .&#8217;;<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;fnd_file.put_line(fnd_file.log, l_debug_info);<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class><br id=\"yui_3_16_0_1_1446589122689_360466\" class\/><\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; ELSE<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;RAISE request_failed;<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; END IF; &#8211;dstatus<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class><br id=\"yui_3_16_0_1_1446589122689_360472\" class\/><\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp;EXCEPTION<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class><br id=\"yui_3_16_0_1_1446589122689_360476\" class\/><\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; WHEN request_submission_failure THEN<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;errbuf &nbsp; &nbsp; &nbsp; := &#8216;Request Submission Failed&#8217;;<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;retcode &nbsp; &nbsp; &nbsp;:= 2;<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;l_error_mesg := fnd_message.get ||<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&#8216; occurred when trying to submit the payment batch &#8216; ||<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;p_payment_batch || &#8216; with the parameters &#8216; ||<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;p_param_value_list(0) || &#8216; ,&#8217; ||<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;p_param_value_list(1) || &#8216;&#8230;&#8217;;<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;fnd_file.put_line(fnd_file.log, l_error_mesg);<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class><br id=\"yui_3_16_0_1_1446589122689_360488\" class\/><\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;RETURN;<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class><br id=\"yui_3_16_0_1_1446589122689_360492\" class\/><\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; WHEN request_failed THEN<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;l_error_mesg := l_programs_list(l_prev_program_index) ||<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&#8216; Failed.&#8217; || &#8216; Refer to the log file of request &#8216; ||<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;to_char(l_prev_request_id) ||<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&#8216; for error information.&#8217;;<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;fnd_file.put_line(fnd_file.log, l_error_mesg);<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class><br id=\"yui_3_16_0_1_1446589122689_360501\" class\/><\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;l_error_mesg := &#8216;Payment Process Manager Aborted with error.&#8217;;<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;fnd_file.put_line(fnd_file.log, l_error_mesg);<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class><br id=\"yui_3_16_0_1_1446589122689_360506\" class\/><\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&#8211;l_complete := fnd_concurrent.set_completion_status(&#8216;ERROR&#8217;,&#8217;One of the child requests for this program&#8217; ||&#8217; has errored .&#8217;);<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;RETURN;<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class><br id=\"yui_3_16_0_1_1446589122689_360511\" class\/><\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class><br id=\"yui_3_16_0_1_1446589122689_360514\" class\/><\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; WHEN cannot_set_printer THEN<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;errbuf &nbsp;:= &#8216;Cannot Set Printer&#8217;;<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;retcode := 3;<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;RETURN;<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class><br id=\"yui_3_16_0_1_1446589122689_360521\" class\/><\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; WHEN no_data_found THEN<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;NULL;<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&#8211;l_debug_info := SQLERRM;<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class><br id=\"yui_3_16_0_1_1446589122689_360527\" class\/><\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; WHEN OTHERS THEN<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;l_debug_info := SQLERRM;<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;IF (SQLCODE &lt;&gt; -20001) THEN<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class><br id=\"yui_3_16_0_1_1446589122689_360533\" class\/><\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; fnd_message.set_name(&#8216;SQLAP&#8217;, &#8216;AP_DEBUG&#8217;);<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; fnd_message.set_token(&#8216;ERROR&#8217;, SQLERRM);<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; fnd_message.set_token(&#8216;CALLING_SEQUENCE&#8217;<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;,l_current_calling_sequence);<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; fnd_message.set_token(&#8216;PARAMETERS&#8217;<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;,&#8217;Program index = &#8216; ||<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; to_char(l_program_index));<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; fnd_message.set_token(&#8216;CALLING_SEQUENCE&#8217;<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;,l_current_calling_sequence);<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; fnd_message.set_token(&#8216;DEBUG_INFO&#8217;, l_debug_info);<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class><br id=\"yui_3_16_0_1_1446589122689_360546\" class\/><\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; l_sqlerrm &nbsp; &nbsp;:= SQLERRM;<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; l_error_mesg := &#8216;The following error has occurred : &#8216; ||<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; l_sqlerrm || &#8216;while performing the &#8216; ||<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; l_debug_info;<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class><br id=\"yui_3_16_0_1_1446589122689_360552\" class\/><\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; fnd_file.put_line(fnd_file.log, l_error_mesg);<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; RETURN;<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class><br id=\"yui_3_16_0_1_1446589122689_360557\" class\/><\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class><br id=\"yui_3_16_0_1_1446589122689_360560\" class\/><\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;END IF;<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;app_exception.raise_exception;<\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class><br id=\"yui_3_16_0_1_1446589122689_360565\" class\/><\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\" dir=\"ltr\" class>&nbsp; &nbsp;END submit_program;<\/div>\n<div dir=\"ltr\" id=\"yui_3_16_0_1_1446589122689_360568\" class><br id=\"yui_3_16_0_1_1446589122689_360570\" class\/><\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\"><span><br \/><\/span><\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\"><span><br \/><\/span><\/div>\n<div id=\"yui_3_16_0_1_1446589122689_359906\"><span><br \/><\/span><\/div>\n<p> <\/p>\n<blockquote style=\"border-left: 2px solid rgb(16, 16, 255);margin-left: 5px;margin-top: 5px;\" id=\"yui_3_16_0_1_1446589122689_359788\">\n<div style=\"font-family: Courier New, courier, monaco, monospace, sans-serif;font-size: 16px;\" id=\"yui_3_16_0_1_1446589122689_359787\">\n<div style=\"font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size: 16px;\" id=\"yui_3_16_0_1_1446589122689_359786\">\n<div dir=\"ltr\" id=\"yui_3_16_0_1_1446589122689_359903\">\n<hr size=\"1\" id=\"yui_3_16_0_1_1446589122689_359972\"\/>  <font size=\"2\" face=\"Arial\" id=\"yui_3_16_0_1_1446589122689_359902\"> <b><span style=\"font-weight:bold;\">De:<\/span><\/b> &#8220;Rafael Terzoni Tardelli <a href=\"mailto:tardellirafael@yahoo.com\">tardellirafael@yahoo.com<\/a> &#8221; &lt;<a href=\"mailto:\"><\/a>&gt;<br \/> <b><span style=\"font-weight: bold;\">Para:<\/span><\/b>  &lt;<a href=\"mailto:\"><\/a>&gt; <br \/> <b><span style=\"font-weight: bold;\">Enviadas:<\/span><\/b> Quarta-feira, 11 de Novembro de 2015 17:25<br \/> <b><span style=\"font-weight: bold;\">Assunto:<\/span><\/b>  Baixa autom\u00e1tica Lote do AP (CONFIRMA\u00c7\u00c3O)<br \/> <\/font> <\/div>\n<div class=\"y_msg_container\" id=\"yui_3_16_0_1_1446589122689_359785\">Boa tarde.<\/p>\n<p>Algu\u00e9m j\u00e1 precisou invocar a package \/ procedure por tras da a\u00e7\u00e3o de <br \/>CONFIRMA\u00c7\u00c3O do Lote de Pagamento do AP?<\/p>\n<p>\u00c9 a package AP_PAYMENT_PROCESSOR.submit_program.<\/p>\n<p>Procurei algum exemplo de chamada na net e no metalink mas n\u00e3o encontrei <br \/>nada.<\/p>\n<p>Obrigado.<br \/>Abra\u00e7o.<br \/>Rafael<\/p>\n<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<\/p>\n<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<\/p>\n<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<\/p>\n<p>Yahoo Groups Links<\/p>\n<p>&lt;*&gt; To visit your group on the web, go to:<br \/>&nbsp; &nbsp; <a href=\"http:\/\/groups.yahoo.com\/group\/\/?soc_src=mail&amp;soc_trk=ma\" target=\"_blank\"><\/a><a href=\"http:\/\/groups.yahoo.com\/group\/\/\" >http:\/\/groups.yahoo.com\/group\/\/<\/a><\/p>\n<p>&lt;*&gt; Your email settings:<br \/>&nbsp; &nbsp; Individual Email | Traditional<\/p>\n<p>&lt;*&gt; To change settings online go to:<br \/>&nbsp; &nbsp; <a href=\"http:\/\/groups.yahoo.com\/group\/\/join?soc_src=mail&amp;soc_trk=ma\" target=\"_blank\"><\/a><a href=\"http:\/\/groups.yahoo.com\/group\/\/join\" >http:\/\/groups.yahoo.com\/group\/\/join<\/a><br \/>&nbsp; &nbsp; (Yahoo! ID required)<\/p>\n<p>&lt;*&gt; To change settings via email:<br \/>&nbsp; &nbsp; <a ymailto=\"mailto:-digest\" href=\"mailto:-digest\"><\/a><a href=\"mailto:-digest\">-digest<\/a> <br \/>&nbsp; &nbsp; <a ymailto=\"mailto:-fullfeatured\" href=\"mailto:-fullfeatured\"><\/a><a href=\"mailto:-fullfeatured\">-fullfeatured<\/a><\/p>\n<p>&lt;*&gt; To unsubscribe from this group, send an email to:<br \/>&nbsp; &nbsp; <a ymailto=\"mailto:-unsubscribe\" href=\"mailto:-unsubscribe\"><\/a><a href=\"mailto:-unsubscribe\">-unsubscribe<\/a><\/p>\n<p>&lt;*&gt; Your use of Yahoo Groups is subject to:<br \/>&nbsp; &nbsp; <a href=\"https:\/\/info.yahoo.com\/legal\/us\/yahoo\/utos\/terms\/?soc_src=mail&amp;soc_trk=ma\" target=\"_blank\"><\/a><a href=\"https:\/\/info.yahoo.com\/legal\/us\/yahoo\/utos\/terms\/\" >https:\/\/info.yahoo.com\/legal\/us\/yahoo\/utos\/terms\/<\/a><\/p>\n<\/div><\/div>\n<\/p><\/div>\n<\/blockquote><\/div>\n<\/p><\/div>\n<p>               <\/HTML><\/HTML><\/p>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp; Ol\u00e1 Rafael, tudo bem? J\u00e1 fiz isso. O que exatamente voc\u00ea precisa? Aqui um exemplo do que foi feito nessa procedure. O nome do&hellip; <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[56],"tags":[77,99,105,76,103,104,97,98,107,102,108,72,100,85,87,59,89,101,106,46,84],"class_list":["post-9601","post","type-post","status-publish","format-standard","hentry","category-oracle","tag-adf","tag-applications","tag-atg-financials","tag-banco-de-dados","tag-dadabase","tag-dba","tag-duvidas-e-repostas-oracle-vagas","tag-ebs","tag-etl","tag-fusion","tag-hyperion","tag-java","tag-odi","tag-oracle-apex","tag-oracle-forms","tag-oracle-oportunidades","tag-oracle-reports","tag-people-soft","tag-plsql-bi","tag-soa","tag-supply-chain"],"_links":{"self":[{"href":"https:\/\/orabr.virttus.com\/index.php?rest_route=\/wp\/v2\/posts\/9601","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/orabr.virttus.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/orabr.virttus.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/orabr.virttus.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/orabr.virttus.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=9601"}],"version-history":[{"count":0,"href":"https:\/\/orabr.virttus.com\/index.php?rest_route=\/wp\/v2\/posts\/9601\/revisions"}],"wp:attachment":[{"href":"https:\/\/orabr.virttus.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=9601"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/orabr.virttus.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=9601"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/orabr.virttus.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=9601"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}