<?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: Executing a report program in background from another program in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/executing-a-report-program-in-background-from-another-program/m-p/8623596#M1664149</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Siva,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use the FM : OPEN_JOB and get the job number from this FM and use the submit statement with JOB number and pass the selection screen parameter values. Use the FM: CLOSE_JOB with start immediatly. So your orginal program will run in background.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can handle the logic to sent a mail to user in the orginal program, like check the program is running in background mode sy-batch = 'X' then send the output to users.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rajesh V&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 08 Mar 2012 06:04:57 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2012-03-08T06:04:57Z</dc:date>
    <item>
      <title>Executing a report program in background from another program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/executing-a-report-program-in-background-from-another-program/m-p/8623588#M1664141</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I developed a report to display material change history based on change date range. Report is taking much time (around 15-20 mins) as I'm hitting CDPOS and CDHDR tables. User wants to execute the report in foreground because he/she can give selection criteria that is required everytime.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, my requirment is now to create another program with same selection screen elements which will execute the original program in background. In the new program, we will be just capturing the selection elements and will pass them to original program to run in background and display a message to user without wait for the background job to complete. Original program should send an email to an fixed email id with the report output as attachment (for example excel file).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please suggest.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance,&lt;/P&gt;&lt;P&gt;Siva Sankar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Mar 2012 22:05:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/executing-a-report-program-in-background-from-another-program/m-p/8623588#M1664141</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-03-07T22:05:57Z</dc:date>
    </item>
    <item>
      <title>Re: Executing a report program in background from another program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/executing-a-report-program-in-background-from-another-program/m-p/8623589#M1664142</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Siva,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can try calling standard FMs CHANGEDOCUMENT_READ_HEADERS and CHANGEDOCUMENT_READ_POSITIONS to get the history for material change instead of hitting tables CDHDR and CDPOS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Saba&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Mar 2012 22:15:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/executing-a-report-program-in-background-from-another-program/m-p/8623589#M1664142</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-03-07T22:15:09Z</dc:date>
    </item>
    <item>
      <title>Re: Executing a report program in background from another program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/executing-a-report-program-in-background-from-another-program/m-p/8623590#M1664143</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;Could you please check if we can implement blockwise reading of data from change tables using function modules , it will make the program more faster .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ratheesh BS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Mar 2012 03:15:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/executing-a-report-program-in-background-from-another-program/m-p/8623590#M1664143</guid>
      <dc:creator>former_member195421</dc:creator>
      <dc:date>2012-03-08T03:15:12Z</dc:date>
    </item>
    <item>
      <title>Re: Executing a report program in background from another program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/executing-a-report-program-in-background-from-another-program/m-p/8623591#M1664144</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Saba,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;User will be executing the report based on material group and plant, which will lead to huge number of materials to hit CDHDR and CDPOS. Can we use those func modules for such a big number?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your quick response.&lt;/P&gt;&lt;P&gt;Siva Sankar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Mar 2012 03:45:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/executing-a-report-program-in-background-from-another-program/m-p/8623591#M1664144</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-03-08T03:45:13Z</dc:date>
    </item>
    <item>
      <title>Re: Executing a report program in background from another program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/executing-a-report-program-in-background-from-another-program/m-p/8623592#M1664145</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ratheesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm already using parallel processing to hit CDHDR and CDPOS tables. But report is taking lot of time because of huge number of materials.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Siva Sankar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Mar 2012 03:50:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/executing-a-report-program-in-background-from-another-program/m-p/8623592#M1664145</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-03-08T03:50:26Z</dc:date>
    </item>
    <item>
      <title>Re: Executing a report program in background from another program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/executing-a-report-program-in-background-from-another-program/m-p/8623593#M1664146</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Siva,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please see the link&lt;/P&gt;&lt;P&gt; &lt;A href="http://help.sap.com/saphelp_nw04/helpdata/EN/2a/fa01dd493111d182b70000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/EN/2a/fa01dd493111d182b70000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="740160"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When using function modules , I dont think you can directly get data based on material and plant . these function modules usualy works with object class and creation date .&lt;/P&gt;&lt;P&gt;Once you retrieve the data using the function modules you have to filter out the unncecessary data based on your selection screen conditions .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ratheesh BS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Ratheesh Bhaskarapillai Suseeladev on Mar 8, 2012 5:19 AM&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="740160"&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Mar 2012 04:05:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/executing-a-report-program-in-background-from-another-program/m-p/8623593#M1664146</guid>
      <dc:creator>former_member195421</dc:creator>
      <dc:date>2012-03-08T04:05:27Z</dc:date>
    </item>
    <item>
      <title>Re: Executing a report program in background from another program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/executing-a-report-program-in-background-from-another-program/m-p/8623594#M1664147</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ratheesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried CHANGEDOCUMENT_* func modules. But execution time is almost same as hitting the tables in parallel processing. I feel executing the report in background (as mentioned in my original message above) is better option. Please suggest.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Siva Sankar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Mar 2012 05:27:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/executing-a-report-program-in-background-from-another-program/m-p/8623594#M1664147</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-03-08T05:27:49Z</dc:date>
    </item>
    <item>
      <title>Re: Executing a report program in background from another program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/executing-a-report-program-in-background-from-another-program/m-p/8623595#M1664148</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Siva,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In that case go ahead with your plan , but still user wont get the immedaite results  . Mean time we will check if any other options are available .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ratheesh BS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Mar 2012 05:46:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/executing-a-report-program-in-background-from-another-program/m-p/8623595#M1664148</guid>
      <dc:creator>former_member195421</dc:creator>
      <dc:date>2012-03-08T05:46:03Z</dc:date>
    </item>
    <item>
      <title>Re: Executing a report program in background from another program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/executing-a-report-program-in-background-from-another-program/m-p/8623596#M1664149</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Siva,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use the FM : OPEN_JOB and get the job number from this FM and use the submit statement with JOB number and pass the selection screen parameter values. Use the FM: CLOSE_JOB with start immediatly. So your orginal program will run in background.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can handle the logic to sent a mail to user in the orginal program, like check the program is running in background mode sy-batch = 'X' then send the output to users.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rajesh V&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Mar 2012 06:04:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/executing-a-report-program-in-background-from-another-program/m-p/8623596#M1664149</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-03-08T06:04:57Z</dc:date>
    </item>
  </channel>
</rss>

