<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to execute a report program in background based on input parameter? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-execute-a-report-program-in-background-based-on-input-parameter/m-p/10782348#M1878991</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is pi_table a parameter or selection options on selection screen of the second program? It is your data itab, right?&lt;/P&gt;&lt;P&gt;So if want pass this itab to the second program, maybe need 'Export to shared memory', in your second program 'import shared memory' which is running in background job.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Archer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 25 Dec 2014 05:07:29 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2014-12-25T05:07:29Z</dc:date>
    <item>
      <title>How to execute a report program in background based on input parameter?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-execute-a-report-program-in-background-based-on-input-parameter/m-p/10782343#M1878986</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have report program with some input parameters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS : p_rad1 RADIOBUTTON GROUP rb1 USER-COMMAND rad DEFAULT 'X'.&lt;/P&gt;&lt;P&gt;PARAMETERS : p_rad2 RADIOBUTTON GROUP rb1.&amp;nbsp; "selected for background processing&lt;/P&gt;&lt;P&gt;PARAMETERS: p_file TYPE string.&lt;/P&gt;&lt;P&gt;PARAMETERS: p_field1 TYPE c LENGTH 1 DEFAULT 'A'.&lt;/P&gt;&lt;P&gt;PARAMETERS: category(10) AS LISTBOX VISIBLE LENGTH 30 DEFAULT '50000067'.&lt;/P&gt;&lt;P&gt;PARAMETERS: p_field2 TYPE c LENGTH 1 DEFAULT 'D'.&lt;/P&gt;&lt;P&gt;PARAMETERS: p_date&amp;nbsp; TYPE sy-datum DEFAULT sy-datum.&lt;/P&gt;&lt;P&gt;PARAMETERS: p_chbx AS CHECKBOX USER-COMMAND flag DEFAULT ' '.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN END OF BLOCK b1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;&amp;lt;&amp;lt; my logic to read the data and process it &amp;gt;&amp;gt;&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a "p_file" to upload data in flat file format before execution. And on selection of the radio button p_rad2 I need to execute this program in background and otherwise it is to be executed manually.&lt;/P&gt;&lt;P&gt;I tried using JOB_OPEN, JOB_SUBMIT, JOB_CLOSE but got stuck somewhere. Please can anybody guide me in detail on how to do this by any method? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Praveen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Dec 2014 17:24:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-execute-a-report-program-in-background-based-on-input-parameter/m-p/10782343#M1878986</guid>
      <dc:creator>PraveenDwivedi</dc:creator>
      <dc:date>2014-12-24T17:24:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to execute a report program in background based on input parameter?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-execute-a-report-program-in-background-based-on-input-parameter/m-p/10782344#M1878987</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Praveen ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is not possible to upload data from frontend while executing the program in background .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to access data in background , you need to have the file in application server first.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Save your file on application server using tcode CG3Z and then use that file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks ,&lt;/P&gt;&lt;P&gt;Saddam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Dec 2014 18:09:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-execute-a-report-program-in-background-based-on-input-parameter/m-p/10782344#M1878987</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-12-24T18:09:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to execute a report program in background based on input parameter?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-execute-a-report-program-in-background-based-on-input-parameter/m-p/10782345#M1878988</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Saddam&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible that the file is uploaded on the execution screen manually and then it goes to background execution&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Dec 2014 04:29:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-execute-a-report-program-in-background-based-on-input-parameter/m-p/10782345#M1878988</guid>
      <dc:creator>PraveenDwivedi</dc:creator>
      <dc:date>2014-12-25T04:29:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to execute a report program in background based on input parameter?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-execute-a-report-program-in-background-based-on-input-parameter/m-p/10782346#M1878989</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if you want to upload file manually and then to background. you can break up program in two. first will get the input file manully. and then pass uploaded data to second program and run in background by using JOB_OPEN, JOB_CLOSE fm's.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can use a separate FM to run in background after getting file input manually.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION func IN BACKGROUND TASK&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Dec 2014 04:43:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-execute-a-report-program-in-background-based-on-input-parameter/m-p/10782346#M1878989</guid>
      <dc:creator>dani_mn</dc:creator>
      <dc:date>2014-12-25T04:43:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to execute a report program in background based on input parameter?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-execute-a-report-program-in-background-based-on-input-parameter/m-p/10782347#M1878990</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried that but got stuck on how to pass the data from one program to another.&lt;/P&gt;&lt;P&gt;I tried this--&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;SUBMIT "program name"&lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;WITH &lt;/SPAN&gt;pi_table &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;lt_data&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; VIA JOB lv_jobname &lt;SPAN class="L0S52"&gt;NUMBER &lt;/SPAN&gt;lv_jobcount&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;TO &lt;/SPAN&gt;SAP&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;SPOOL WITHOUT SPOOL &lt;SPAN class="L0S52"&gt;DYNPRO &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;AND &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;RETURN&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where pi_table is a input parmeter in the second program. But I think this is not the way. Can you please help me the code?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Dec 2014 04:51:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-execute-a-report-program-in-background-based-on-input-parameter/m-p/10782347#M1878990</guid>
      <dc:creator>PraveenDwivedi</dc:creator>
      <dc:date>2014-12-25T04:51:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to execute a report program in background based on input parameter?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-execute-a-report-program-in-background-based-on-input-parameter/m-p/10782348#M1878991</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is pi_table a parameter or selection options on selection screen of the second program? It is your data itab, right?&lt;/P&gt;&lt;P&gt;So if want pass this itab to the second program, maybe need 'Export to shared memory', in your second program 'import shared memory' which is running in background job.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Archer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Dec 2014 05:07:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-execute-a-report-program-in-background-based-on-input-parameter/m-p/10782348#M1878991</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-12-25T05:07:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to execute a report program in background based on input parameter?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-execute-a-report-program-in-background-based-on-input-parameter/m-p/10782349#M1878992</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Archer&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was doubtful about it but after your suggestion I used this method.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1st program&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;CALL &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;FUNCTION &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'JOB_OPEN'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S33"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S33"&gt;&lt;SPAN class="L0S52"&gt;EXPORT &lt;/SPAN&gt;lt_data &lt;SPAN class="L0S52"&gt;TO &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;MEMORY &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;ID &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'ABCD'&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S33"&gt;&lt;SPAN class="L0S55"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;SUBMIT "program2_name"&lt;/SPAN&gt; VIA JOB lv_jobname &lt;SPAN class="L0S52"&gt;NUMBER &lt;/SPAN&gt;lv_jobcount&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN class="L0S52" style="font-size: 10pt;"&gt;TO &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;SAP&lt;/SPAN&gt;&lt;SPAN class="L0S70" style="font-size: 10pt;"&gt;-&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;SPOOL WITHOUT SPOOL &lt;/SPAN&gt;&lt;SPAN class="L0S52" style="font-size: 10pt;"&gt;DYNPRO &lt;/SPAN&gt;&lt;SPAN class="L0S52" style="font-size: 10pt;"&gt;AND &lt;/SPAN&gt;&lt;SPAN class="L0S52" style="font-size: 10pt;"&gt;RETURN&lt;/SPAN&gt;&lt;SPAN class="L0S55" style="font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;CALL &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;FUNCTION &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'JOB_CLOSE'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S33"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S33"&gt;2nd Program&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S33"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S33"&gt;&lt;SPAN class="L0S52"&gt;IMPORT &lt;/SPAN&gt;lt_data &lt;SPAN class="L0S52"&gt;FROM &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;MEMORY &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;ID &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'ABCD'&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S33"&gt;&lt;SPAN class="L0S55"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S33"&gt;&lt;SPAN class="L0S55"&gt;here I used my data from program 1 to be executed in background&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Dec 2014 19:31:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-execute-a-report-program-in-background-based-on-input-parameter/m-p/10782349#M1878992</guid>
      <dc:creator>PraveenDwivedi</dc:creator>
      <dc:date>2014-12-26T19:31:23Z</dc:date>
    </item>
  </channel>
</rss>

