<?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: Report Execution - Background Process in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/report-execution-background-process/m-p/3179928#M757050</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi karthik&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETER : p_cmode LIKE ctu_params-dismode DEFAULT 'N'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL TRANSACTION tcode USING bdcdata&lt;/P&gt;&lt;P&gt;                   MODE   p_cmode&lt;/P&gt;&lt;P&gt;                   UPDATE 'L'&lt;/P&gt;&lt;P&gt;                   MESSAGES INTO messtab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use this 1 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;its help u .&lt;/P&gt;&lt;P&gt;kk.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: kuamr kk on Dec 26, 2007 10:57 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 26 Dec 2007 09:57:14 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-12-26T09:57:14Z</dc:date>
    <item>
      <title>Report Execution - Background Process</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report-execution-background-process/m-p/3179925#M757047</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have developed a report program.&lt;/P&gt;&lt;P&gt;I have also created a transaction code for executing it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now the user needs to execute this program as a background job.&lt;/P&gt;&lt;P&gt;I have tried with SM36 and SM37 transactions. Here, you need to set the variants and time for execution.&lt;/P&gt;&lt;P&gt;But the user has lots of selection criteria and setting the variants for this requirement is highly impossible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly let me know whether I can add any additional statements in the program so that the program executes as a background process when initiated th' the selection screen / transaction code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly provide your suggestions.&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Dec 2007 06:00:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report-execution-background-process/m-p/3179925#M757047</guid>
      <dc:creator>karthik_rajaspic</dc:creator>
      <dc:date>2007-12-26T06:00:14Z</dc:date>
    </item>
    <item>
      <title>Re: Report Execution - Background Process</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report-execution-background-process/m-p/3179926#M757048</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me with your suggestions. I need to satisfy this requirement as it is of high priority.&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: karthik raja spic on Dec 26, 2007 3:07 PM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: karthik raja spic on Dec 26, 2007 3:08 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Dec 2007 09:26:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report-execution-background-process/m-p/3179926#M757048</guid>
      <dc:creator>karthik_rajaspic</dc:creator>
      <dc:date>2007-12-26T09:26:56Z</dc:date>
    </item>
    <item>
      <title>Re: Report Execution - Background Process</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report-execution-background-process/m-p/3179927#M757049</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;Please check FMs RS&lt;STRONG&gt;VARIANT&lt;/STRONG&gt; they can be used to create variants dynamically. - RS_CREATE_VARIANT, RS_VARIANT_CONTENTS etc&lt;/P&gt;&lt;P&gt;Check FMs JOB_OPEN, JOB_SUBMIT, JOB_CLOSE &lt;/P&gt;&lt;P&gt;Hope these will help you arrive at a solution&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Arun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Dec 2007 09:38:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report-execution-background-process/m-p/3179927#M757049</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-26T09:38:34Z</dc:date>
    </item>
    <item>
      <title>Re: Report Execution - Background Process</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report-execution-background-process/m-p/3179928#M757050</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi karthik&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETER : p_cmode LIKE ctu_params-dismode DEFAULT 'N'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL TRANSACTION tcode USING bdcdata&lt;/P&gt;&lt;P&gt;                   MODE   p_cmode&lt;/P&gt;&lt;P&gt;                   UPDATE 'L'&lt;/P&gt;&lt;P&gt;                   MESSAGES INTO messtab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use this 1 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;its help u .&lt;/P&gt;&lt;P&gt;kk.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: kuamr kk on Dec 26, 2007 10:57 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Dec 2007 09:57:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report-execution-background-process/m-p/3179928#M757050</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-26T09:57:14Z</dc:date>
    </item>
    <item>
      <title>Re: Report Execution - Background Process</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report-execution-background-process/m-p/3179929#M757051</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try to set SYST-BINPT ='X' which will force program to be run in background only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;anya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Dec 2007 12:00:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report-execution-background-process/m-p/3179929#M757051</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-26T12:00:33Z</dc:date>
    </item>
    <item>
      <title>Re: Report Execution - Background Process</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report-execution-background-process/m-p/3179930#M757052</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try the FMs BP_JOB_CREATE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Read the other FMs like BP_JOB_*.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Dec 2007 12:05:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report-execution-background-process/m-p/3179930#M757052</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-26T12:05:47Z</dc:date>
    </item>
    <item>
      <title>Re: Report Execution - Background Process</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report-execution-background-process/m-p/3179931#M757053</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Karthik,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Looks like a wrapper ABAP program is required to meet your requirement. This program can be called in the background and in turn can submit the report program that you have created to achieve the actual functionality.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this wrapper program, you need to create a dynamic variant using FMs (search RS&lt;STRONG&gt;VARIANT&lt;/STRONG&gt; in SE37). Here you can populate the fields of the selection screen based on any complex criteria as you mentioned using ABAP statements. The dynamic variant is similar to the variants created on the selection screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once you have the variant (dynamic) ready you can create a background job and submit it within this wrapper program, for which you again have to use the FMs (search &lt;STRONG&gt;create&lt;/STRONG&gt;job*, and go to the function group). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have to release the submitted job and you can get the status of the job while it is running using the standard FMs provided for this. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Finally, you can create a spool list for the wrapper program that can detail the status of the submitted job.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is a good idea to delete the dynamic variant once it ahs been used because if required again, it can be created again. If the dynamic variant is created daily or several times a day, it is definitely good to delete it after the use. The right place to do deletion is at the end of the wrapper program after confirming that the job submitted has completed. Or as an alternate strategy, all variants prior to a week can be deleted when the wrapper program runs today (we are using this strategy).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have used this successfully.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Sanjeev&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Dec 2007 13:37:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report-execution-background-process/m-p/3179931#M757053</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-26T13:37:53Z</dc:date>
    </item>
    <item>
      <title>Re: Report Execution - Background Process</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report-execution-background-process/m-p/3179932#M757054</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for all your ideas. All your ideas worked well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, there is one more way for solving this problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Give the input for selection screen. &lt;/P&gt;&lt;P&gt;Press F9.&lt;/P&gt;&lt;P&gt;Press Immediate tab.&lt;/P&gt;&lt;P&gt;Mark Immediate execution check box.&lt;/P&gt;&lt;P&gt;Press Check and Save buttons.&lt;/P&gt;&lt;P&gt;Again you will come to the selection screen.&lt;/P&gt;&lt;P&gt;Press F8 now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The process executes in background and there is no need to set up a periodic job.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But all your answers were very helpful&lt;/P&gt;&lt;P&gt;Thank you all once again.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 30 Dec 2007 14:04:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report-execution-background-process/m-p/3179932#M757054</guid>
      <dc:creator>karthik_rajaspic</dc:creator>
      <dc:date>2007-12-30T14:04:26Z</dc:date>
    </item>
  </channel>
</rss>

