<?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: When pushbutton pressed execute the form in background in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/when-pushbutton-pressed-execute-the-form-in-background/m-p/932836#M61253</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You have to mark your post as a question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There should be something that says,  "Mark this post as a question".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 23 Jun 2005 17:42:29 GMT</pubDate>
    <dc:creator>RichHeilman</dc:creator>
    <dc:date>2005-06-23T17:42:29Z</dc:date>
    <item>
      <title>When pushbutton pressed execute the form in background</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/when-pushbutton-pressed-execute-the-form-in-background/m-p/932831#M61248</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 have a selection screen, wherein there's a pushbutton. If i press the pushbutton it should execute the form(procedure) in background. I tried out with this code but it's not working. But when i used a checkbox instead of this pushbutton it works, what could be the problem. Are there any limitations in selection screen for pushbutton. Any help will be of great help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My requirement is when i press the pushbutton it must call the form and execute it in background. How do i achieve this. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help on this will be very great. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Prabhu.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Prabhakaran Paramasivan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jun 2005 16:22:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/when-pushbutton-pressed-execute-the-form-in-background/m-p/932831#M61248</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-06-23T16:22:30Z</dc:date>
    </item>
    <item>
      <title>Re: When pushbutton pressed execute the form in background</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/when-pushbutton-pressed-execute-the-form-in-background/m-p/932832#M61249</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Post your program code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jun 2005 16:44:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/when-pushbutton-pressed-execute-the-form-in-background/m-p/932832#M61249</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2005-06-23T16:44:43Z</dc:date>
    </item>
    <item>
      <title>Re: When pushbutton pressed execute the form in background</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/when-pushbutton-pressed-execute-the-form-in-background/m-p/932833#M61250</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rich, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's the code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN PUSHBUTTON 79(22) text-B03 USER-COMMAND ucom2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INITIALIZATION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN.&lt;/P&gt;&lt;P&gt;CASE sscrfields-ucomm.&lt;/P&gt;&lt;P&gt;    WHEN 'ucom2'.&lt;/P&gt;&lt;P&gt; PERFORM DCS_STATISTICS.&lt;/P&gt;&lt;P&gt;endcase.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM DCS_STATISTICS.&lt;/P&gt;&lt;P&gt;    PERFORM DCS_RUN.&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jun 2005 16:51:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/when-pushbutton-pressed-execute-the-form-in-background/m-p/932833#M61250</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-06-23T16:51:31Z</dc:date>
    </item>
    <item>
      <title>Re: When pushbutton pressed execute the form in background</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/when-pushbutton-pressed-execute-the-form-in-background/m-p/932834#M61251</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try making your fcode uppercase.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Change this...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

    when 'ucom2'.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to this....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

    when 'UCOM2'.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, please change this post to a question and award points accordingly.  Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jun 2005 16:57:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/when-pushbutton-pressed-execute-the-form-in-background/m-p/932834#M61251</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2005-06-23T16:57:07Z</dc:date>
    </item>
    <item>
      <title>Re: When pushbutton pressed execute the form in background</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/when-pushbutton-pressed-execute-the-form-in-background/m-p/932835#M61252</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rich, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot, it worked, but how do i run or execute the form in background. so that my program executes faster.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To award points i don't see the radio buttons in the messages to do it. if so how do i award points.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;Prabhu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jun 2005 17:32:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/when-pushbutton-pressed-execute-the-form-in-background/m-p/932835#M61252</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-06-23T17:32:37Z</dc:date>
    </item>
    <item>
      <title>Re: When pushbutton pressed execute the form in background</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/when-pushbutton-pressed-execute-the-form-in-background/m-p/932836#M61253</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You have to mark your post as a question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There should be something that says,  "Mark this post as a question".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jun 2005 17:42:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/when-pushbutton-pressed-execute-the-form-in-background/m-p/932836#M61253</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2005-06-23T17:42:29Z</dc:date>
    </item>
    <item>
      <title>Re: When pushbutton pressed execute the form in background</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/when-pushbutton-pressed-execute-the-form-in-background/m-p/932837#M61254</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Duplicate Post.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Rich Heilman&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jun 2005 17:44:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/when-pushbutton-pressed-execute-the-form-in-background/m-p/932837#M61254</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2005-06-23T17:44:54Z</dc:date>
    </item>
    <item>
      <title>Re: When pushbutton pressed execute the form in background</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/when-pushbutton-pressed-execute-the-form-in-background/m-p/932838#M61255</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't think that there is away to kick off a "Form" in the background, you will need to put your logic in a function module and kick the function module off in background.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Working on a sample.......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jun 2005 17:46:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/when-pushbutton-pressed-execute-the-form-in-background/m-p/932838#M61255</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2005-06-23T17:46:26Z</dc:date>
    </item>
    <item>
      <title>Re: When pushbutton pressed execute the form in background</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/when-pushbutton-pressed-execute-the-form-in-background/m-p/932839#M61256</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is a sample.....  Make sure that you make your function module RFC enabled.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

report zrich_0001 .

selection-screen begin of block b1 with frame title text-001.
selection-screen pushbutton 30(30) go user-command go.
selection-screen end of block b1.

at selection-screen .
  case sy-ucomm.
    when 'GO'.
      perform execute_background.
  endcase.

start-of-selection.


at selection-screen output.

* Write pushbutton text
  go = 'Execute In Background'.

*---------------------------------------------------------------------*
*       FORM execute_background                                       *
*---------------------------------------------------------------------*
form execute_background.

  call function 'Z_RICH_TEST'
                 in background task.

  call function 'START_OF_BACKGROUNDTASK'
       exporting
            startdate = sy-datum
            starttime = sy-uzeit
       exceptions
            others    = 1.

  if sy-subrc = 1.
    exit.
  endif.

  commit work.

endform.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jun 2005 17:53:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/when-pushbutton-pressed-execute-the-form-in-background/m-p/932839#M61256</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2005-06-23T17:53:27Z</dc:date>
    </item>
    <item>
      <title>Re: When pushbutton pressed execute the form in background</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/when-pushbutton-pressed-execute-the-form-in-background/m-p/932840#M61257</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rich, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks once again, it works, so now I have place all my code which is in the form into a function module and call this. or can i just specify it like this as how u have told. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call function 'Z_RICH_TEST' in background task.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;Prabhu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jun 2005 18:42:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/when-pushbutton-pressed-execute-the-form-in-background/m-p/932840#M61257</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-06-23T18:42:36Z</dc:date>
    </item>
    <item>
      <title>Re: When pushbutton pressed execute the form in background</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/when-pushbutton-pressed-execute-the-form-in-background/m-p/932841#M61258</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can do it like this to.........you don't need the form.  You &amp;lt;b&amp;gt;do&amp;lt;/b&amp;gt; need all of the code inside the form though.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

report zrich_0001 .
 
selection-screen begin of block b1 with frame title text-001.
selection-screen pushbutton 30(30) go user-command go.
selection-screen end of block b1.
 
at selection-screen .
  case sy-ucomm.
    when 'GO'.

 
  call function 'Z_RICH_TEST'
                 in background task.
 
  call function 'START_OF_BACKGROUNDTASK'
       exporting
            startdate = sy-datum
            starttime = sy-uzeit
       exceptions
            others    = 1.
 
  if sy-subrc = 1.
    exit.
  endif.
 
  commit work.

  endcase.
 
start-of-selection.
 
 
at selection-screen output.
 
* Write pushbutton text
  go = 'Execute In Background'.
 

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just think it makes it a little neater to have specific functionality in its own form.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jun 2005 18:51:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/when-pushbutton-pressed-execute-the-form-in-background/m-p/932841#M61258</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2005-06-23T18:51:19Z</dc:date>
    </item>
  </channel>
</rss>

