<?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 make a program run in background programatically even though the user runs it in foreground. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-make-a-program-run-in-background-programatically-even-though-the/m-p/11878585#M1960419</link>
    <description>&lt;P&gt;The requirement is to always run that program in background .&lt;/P&gt;&lt;P&gt;It should be scheduled in background only even if the user runs it in the foreground .&lt;/P&gt;</description>
    <pubDate>Wed, 01 May 2019 10:04:35 GMT</pubDate>
    <dc:creator>former_member609664</dc:creator>
    <dc:date>2019-05-01T10:04:35Z</dc:date>
    <item>
      <title>How to make a program run in background programatically even though the user runs it in foreground.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-make-a-program-run-in-background-programatically-even-though-the/m-p/11878578#M1960412</link>
      <description>&lt;P&gt;I have a mass upload program . I want to run the program in background even though the user tries to run it in foreground.&lt;/P&gt;
  &lt;P&gt;My basic requirement is that I don't want the program to run in foreground in any way.It should be triggered it background job only. I tried modifying the code and added open job and close job FMs but it is not working. &lt;/P&gt;
  &lt;P&gt;Also , I don't want any dialog processes in between , the program should work the ways it works but in background always.&lt;/P&gt;
  &lt;P&gt;Can anyone please help?&lt;/P&gt;</description>
      <pubDate>Wed, 01 May 2019 08:29:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-make-a-program-run-in-background-programatically-even-though-the/m-p/11878578#M1960412</guid>
      <dc:creator>former_member609664</dc:creator>
      <dc:date>2019-05-01T08:29:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to make a program run in background programatically even though the user runs it in foreground.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-make-a-program-run-in-background-programatically-even-though-the/m-p/11878579#M1960413</link>
      <description>&lt;P&gt;Define a job using SM36 of that program. - to run in background at defined time &lt;/P&gt;</description>
      <pubDate>Wed, 01 May 2019 08:38:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-make-a-program-run-in-background-programatically-even-though-the/m-p/11878579#M1960413</guid>
      <dc:creator>venkateswaran_k</dc:creator>
      <dc:date>2019-05-01T08:38:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to make a program run in background programatically even though the user runs it in foreground.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-make-a-program-run-in-background-programatically-even-though-the/m-p/11878580#M1960414</link>
      <description>&lt;P&gt;The requirement is not to schedule the job but to run the program in background through code when any user runs it in foreground.&lt;/P&gt;</description>
      <pubDate>Wed, 01 May 2019 09:18:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-make-a-program-run-in-background-programatically-even-though-the/m-p/11878580#M1960414</guid>
      <dc:creator>former_member609664</dc:creator>
      <dc:date>2019-05-01T09:18:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to make a program run in background programatically even though the user runs it in foreground.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-make-a-program-run-in-background-programatically-even-though-the/m-p/11878581#M1960415</link>
      <description>&lt;P&gt;Okay, then use SUBMIT option. (using batch option).&lt;/P&gt;&lt;P&gt;or &lt;/P&gt;&lt;P&gt;try your background code using function - as&lt;/P&gt;&lt;P&gt;CALL FUNCTION...IN BACKGROUND TASK | UPDATE TASK | and STARTING NEW TASK.&lt;/P&gt;</description>
      <pubDate>Wed, 01 May 2019 09:20:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-make-a-program-run-in-background-programatically-even-though-the/m-p/11878581#M1960415</guid>
      <dc:creator>venkateswaran_k</dc:creator>
      <dc:date>2019-05-01T09:20:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to make a program run in background programatically even though the user runs it in foreground.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-make-a-program-run-in-background-programatically-even-though-the/m-p/11878582#M1960416</link>
      <description>&lt;P&gt;For submit or FM, I need to create a different program or FM with all logic but I want to use the same program.Is it possible using same program?&lt;/P&gt;</description>
      <pubDate>Wed, 01 May 2019 09:49:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-make-a-program-run-in-background-programatically-even-though-the/m-p/11878582#M1960416</guid>
      <dc:creator>former_member609664</dc:creator>
      <dc:date>2019-05-01T09:49:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to make a program run in background programatically even though the user runs it in foreground.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-make-a-program-run-in-background-programatically-even-though-the/m-p/11878583#M1960417</link>
      <description>&lt;P&gt;Yes, I believe you have to have two codes..  &lt;/P&gt;&lt;P&gt;If yu can explain me clearly, why you want to execute the same prgram twice as forground and background as well,  then we can have a better solution.&lt;/P&gt;</description>
      <pubDate>Wed, 01 May 2019 09:54:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-make-a-program-run-in-background-programatically-even-though-the/m-p/11878583#M1960417</guid>
      <dc:creator>venkateswaran_k</dc:creator>
      <dc:date>2019-05-01T09:54:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to make a program run in background programatically even though the user runs it in foreground.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-make-a-program-run-in-background-programatically-even-though-the/m-p/11878584#M1960418</link>
      <description>&lt;P&gt;You can use SUBMIT &lt;EM&gt;(with batch option)&lt;/EM&gt; to call the own program. By the time the program is running in background, you're able to manipulate statements by using sy-batch system variable. Just like that:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;IF sy-batch = ' ' .
  CALL FUNCTION 'JOB_OPEN'
    EXPORTING
      jobname  = jobname
    IMPORTING
      jobcount = jobcount .

  SUBMIT &amp;lt;program&amp;gt; WITH &amp;lt;param1&amp;gt; = &amp;lt;im_param1&amp;gt;
                   WITH &amp;lt;param2&amp;gt; = &amp;lt;im_param2&amp;gt;
                        .. and so on ..
  VIA job jobname number jobcount
  USER &amp;lt;user name&amp;gt;
  AND return .

* Schedule and close job.
  CALL FUNCTION 'JOB_CLOSE'
    EXPORTING
      jobcount  = jobcount
      jobname   = jobname
      sdlstrtdt = sy-datum
      sdlstrttm = sy-uzeit .

ELSEIF sy-batch = 'X' .
*  place the program logic here ...
ENDIF .
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Check SM37 for the job results. The result itself is stored in the spool.&lt;/P&gt;&lt;P&gt;KR,&lt;BR /&gt;Arthur Silva&lt;/P&gt;</description>
      <pubDate>Wed, 01 May 2019 09:56:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-make-a-program-run-in-background-programatically-even-though-the/m-p/11878584#M1960418</guid>
      <dc:creator>arthursilva</dc:creator>
      <dc:date>2019-05-01T09:56:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to make a program run in background programatically even though the user runs it in foreground.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-make-a-program-run-in-background-programatically-even-though-the/m-p/11878585#M1960419</link>
      <description>&lt;P&gt;The requirement is to always run that program in background .&lt;/P&gt;&lt;P&gt;It should be scheduled in background only even if the user runs it in the foreground .&lt;/P&gt;</description>
      <pubDate>Wed, 01 May 2019 10:04:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-make-a-program-run-in-background-programatically-even-though-the/m-p/11878585#M1960419</guid>
      <dc:creator>former_member609664</dc:creator>
      <dc:date>2019-05-01T10:04:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to make a program run in background programatically even though the user runs it in foreground.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-make-a-program-run-in-background-programatically-even-though-the/m-p/11878586#M1960420</link>
      <description>&lt;P&gt;I will try doing this.Will come back to you in case of queries &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 01 May 2019 10:11:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-make-a-program-run-in-background-programatically-even-though-the/m-p/11878586#M1960420</guid>
      <dc:creator>former_member609664</dc:creator>
      <dc:date>2019-05-01T10:11:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to make a program run in background programatically even though the user runs it in foreground.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-make-a-program-run-in-background-programatically-even-though-the/m-p/11878587#M1960421</link>
      <description>&lt;P&gt;Please use the COMMENT button if you ask for more details. ANSWER is only to propose a solution. Try to think to future visitors who will have to filter between true and false answers.&lt;/P&gt;</description>
      <pubDate>Wed, 01 May 2019 14:16:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-make-a-program-run-in-background-programatically-even-though-the/m-p/11878587#M1960421</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2019-05-01T14:16:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to make a program run in background programatically even though the user runs it in foreground.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-make-a-program-run-in-background-programatically-even-though-the/m-p/11878588#M1960422</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;IF sy-batch EQ abap_false.
  MESSAGE 'Nope. Only run this program in background' TYPE 'E'.
ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 01 May 2019 17:19:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-make-a-program-run-in-background-programatically-even-though-the/m-p/11878588#M1960422</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2019-05-01T17:19:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to make a program run in background programatically even though the user runs it in foreground.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-make-a-program-run-in-background-programatically-even-though-the/m-p/11878589#M1960423</link>
      <description>&lt;P&gt;if sy-batch = abap_false! and message TYPE 'E' only in the PAI and I would do it only for (sscrfields-)ucomm = 'ONLI'&lt;/P&gt;</description>
      <pubDate>Wed, 01 May 2019 18:01:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-make-a-program-run-in-background-programatically-even-though-the/m-p/11878589#M1960423</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2019-05-01T18:01:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to make a program run in background programatically even though the user runs it in foreground.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-make-a-program-run-in-background-programatically-even-though-the/m-p/11878590#M1960424</link>
      <description>&lt;P&gt;Oops. Fixed now.&lt;/P&gt;</description>
      <pubDate>Thu, 02 May 2019 05:42:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-make-a-program-run-in-background-programatically-even-though-the/m-p/11878590#M1960424</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2019-05-02T05:42:56Z</dc:date>
    </item>
  </channel>
</rss>

