<?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 Background job in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/background-job/m-p/7901524#M1596865</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a program which is running slow in the foreground. The transaction has two buttons - Save and Continue. If i choose some entry and click on the save&lt;/P&gt;&lt;P&gt;button it works fine but the problem is with the continue button.IF i choose some entry and click on the continue button it should give me an alv output but instead&lt;/P&gt;&lt;P&gt;it gets timed out. Is it possible to schedule background job for the COntinue button alone? IF so, can you please tell me how.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Prem&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;Moderator message: please use more descriptive subject lines for your posts.&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Thomas Zloch on Apr 27, 2011 3:35 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 27 Apr 2011 05:22:43 GMT</pubDate>
    <dc:creator>former_member182337</dc:creator>
    <dc:date>2011-04-27T05:22:43Z</dc:date>
    <item>
      <title>Background job</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/background-job/m-p/7901524#M1596865</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a program which is running slow in the foreground. The transaction has two buttons - Save and Continue. If i choose some entry and click on the save&lt;/P&gt;&lt;P&gt;button it works fine but the problem is with the continue button.IF i choose some entry and click on the continue button it should give me an alv output but instead&lt;/P&gt;&lt;P&gt;it gets timed out. Is it possible to schedule background job for the COntinue button alone? IF so, can you please tell me how.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Prem&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;Moderator message: please use more descriptive subject lines for your posts.&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Thomas Zloch on Apr 27, 2011 3:35 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Apr 2011 05:22:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/background-job/m-p/7901524#M1596865</guid>
      <dc:creator>former_member182337</dc:creator>
      <dc:date>2011-04-27T05:22:43Z</dc:date>
    </item>
    <item>
      <title>Re: Background job</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/background-job/m-p/7901525#M1596866</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;Using ABAP runtime analysis (SE30), try to find out the piece of code which is consuming more time. Try to correct the particular code and execute the transaction in foreground itself.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Otherwise using the transaction input scenarios, create a report program to display the ALV output and schedule this report program in the background.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or else try by developing a BDC program for your transaction with the CONTINUE button and schedule this BDC program in the background to get the report output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Harish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Apr 2011 06:28:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/background-job/m-p/7901525#M1596866</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-04-27T06:28:14Z</dc:date>
    </item>
    <item>
      <title>Re: Background job</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/background-job/m-p/7901526#M1596867</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;Try to improve the performance of the report. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards, &lt;/P&gt;&lt;P&gt;Sakshi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Apr 2011 06:40:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/background-job/m-p/7901526#M1596867</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-04-27T06:40:57Z</dc:date>
    </item>
    <item>
      <title>Re: Background job</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/background-job/m-p/7901527#M1596868</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your inputs. Can you please tell me how to create background job for the CONTINUE button. Like isn't there a way by which all the set of statements that gets executed on clicking the CONTINUE button should be done in background&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Apr 2011 07:01:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/background-job/m-p/7901527#M1596868</guid>
      <dc:creator>former_member182337</dc:creator>
      <dc:date>2011-04-27T07:01:57Z</dc:date>
    </item>
    <item>
      <title>Re: Background job</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/background-job/m-p/7901528#M1596869</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;When you press the CONTINUE Button you can use the Function Modules JOB_OPEN &amp;amp; JOB_CLOSE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA: w_jobacount TYPE tbtcjob-jobcount,
        w_jobname   TYPE tbtcjob-jobname.

    w_jobname = 'jobname'.

*$ Creates Job 
    CALL FUNCTION 'JOB_OPEN'
      EXPORTING
        jobname          = w_jobname
      IMPORTING
        jobcount         = w_jobacount
      EXCEPTIONS
        cant_create_job  = 1
        invalid_job_data = 2
        jobname_missing  = 3
        OTHERS           = 4.

" Your Processing

CALL FUNCTION 'JOB_CLOSE'
      EXPORTING
        jobcount             = w_jobacount
        jobname              = w_jobname
        strtimmed            = c_x  "Immediate start.
      EXCEPTIONS
        cant_start_immediate = 1
        invalid_startdate    = 2
        jobname_missing      = 3
        job_close_failed     = 4
        job_nosteps          = 5
        job_notex            = 6
        lock_failed          = 7
        OTHERS               = 8.

    IF sy-subrc &amp;lt;&amp;gt; 0.
      MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
              WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ernesto.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Apr 2011 07:21:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/background-job/m-p/7901528#M1596869</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-04-27T07:21:57Z</dc:date>
    </item>
    <item>
      <title>Re: Background job</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/background-job/m-p/7901529#M1596870</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Prem,&lt;/P&gt;&lt;P&gt;Instead of Scheduling BG Job Try this FM  'SAPGUI_PROGRESS_INDICATOR'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eg :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      PERCENTAGE = 30&lt;/P&gt;&lt;P&gt;      TEXT       = 'please wait data extracting '.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Rajashiva Ramalingam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Apr 2011 10:22:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/background-job/m-p/7901529#M1596870</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-04-27T10:22:35Z</dc:date>
    </item>
    <item>
      <title>Re: Background job</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/background-job/m-p/7901530#M1596871</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi premkumarwow   &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;create a batch-input session for this, run as job. Use transaction SHDB to create program.&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;Clemens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Apr 2011 13:55:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/background-job/m-p/7901530#M1596871</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2011-04-27T13:55:03Z</dc:date>
    </item>
  </channel>
</rss>

