<?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: To call an external executable program from a background process in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/to-call-an-external-executable-program-from-a-background-process/m-p/7744373#M1582079</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can make use of the function 'SXPG_COMMAND_EXECUTE'. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Google it, read the documentation available on SDN. There are many relevant posts available.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 07 Apr 2011 05:09:58 GMT</pubDate>
    <dc:creator>SuhaSaha</dc:creator>
    <dc:date>2011-04-07T05:09:58Z</dc:date>
    <item>
      <title>To call an external executable program from a background process</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/to-call-an-external-executable-program-from-a-background-process/m-p/7744372#M1582078</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there any method to call an external executable program (exe) from a background process in ABAP.&lt;/P&gt;&lt;P&gt;CL_GUI_FRONTEND_SERVICES-&amp;gt;execute will not work  since the process is working in background.&lt;/P&gt;&lt;P&gt;Is there any background substitute for this method?.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Apr 2011 03:47:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/to-call-an-external-executable-program-from-a-background-process/m-p/7744372#M1582078</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-04-07T03:47:42Z</dc:date>
    </item>
    <item>
      <title>Re: To call an external executable program from a background process</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/to-call-an-external-executable-program-from-a-background-process/m-p/7744373#M1582079</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can make use of the function 'SXPG_COMMAND_EXECUTE'. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Google it, read the documentation available on SDN. There are many relevant posts available.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Apr 2011 05:09:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/to-call-an-external-executable-program-from-a-background-process/m-p/7744373#M1582079</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2011-04-07T05:09:58Z</dc:date>
    </item>
    <item>
      <title>Re: To call an external executable program from a background process</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/to-call-an-external-executable-program-from-a-background-process/m-p/7744374#M1582080</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi John,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this code. Hope this is what you are looking for.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;  
DATA LOAD_JOB TYPE TBTCJOB-JOBNAME
 DATA load_count LIKE tbtcjob-jobcount.

      CALL FUNCTION 'JOB_OPEN'
        EXPORTING
          jobname  = 'LOAD_JOB'
        IMPORTING
          jobcount = load_count.


      SUBMIT zprog_back
         VIA JOB 'LOAD_JOB'
             NUMBER load_count  AND RETURN.
*


      CALL FUNCTION 'JOB_CLOSE'
         EXPORTING
              jobcount  = load_count
              jobname   = 'LOAD_JOB'
*            SDLSTRTDT =
*            SDLSTRTTM =
              strtimmed = 'X'
              .
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will call program zprog_back using a background job 'LOAD_JOB' and will execute in background immediately.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;reminder removed by moderator&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards &lt;/P&gt;&lt;P&gt;Naveen Vajja&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Thomas Zloch on Apr 7, 2011 10:02 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Apr 2011 05:24:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/to-call-an-external-executable-program-from-a-background-process/m-p/7744374#M1582080</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-04-07T05:24:21Z</dc:date>
    </item>
    <item>
      <title>Re: To call an external executable program from a background process</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/to-call-an-external-executable-program-from-a-background-process/m-p/7744375#M1582081</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Naveen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think your answered code is to execute an ABAP program in background. That thing I am already doing with SM36.&lt;/P&gt;&lt;P&gt;But my issue is to call/execute an external executable program (not ABAP program), from an ABAP program that is running in&lt;/P&gt;&lt;P&gt;background.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Apr 2011 05:53:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/to-call-an-external-executable-program-from-a-background-process/m-p/7744375#M1582081</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-04-07T05:53:03Z</dc:date>
    </item>
    <item>
      <title>Re: To call an external executable program from a background process</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/to-call-an-external-executable-program-from-a-background-process/m-p/7744376#M1582082</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;/SDF/S_TCC_COMMAND_EXECUTE     OS: Command Execute&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CAT_EXTERNAL_EXECUTE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These are the FM's I know....but never tried executing in background. Sorry&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;DEL&gt;To pass parameters as well, you can also use FM gui_run&lt;/DEL&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;DEL&gt;Tiny word of caution though. This only runs Windows Scripts. So if you are in a UNIX environment, thats a different story (and I'm not completely aware of such cases. Though I think you use SM69).&lt;/DEL&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But as an idea.... you can write scripts to execute via a job. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are application specific FM's as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;reminder removed by moderator&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards &lt;/P&gt;&lt;P&gt;Naveen Vajja&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Ncvajja on Apr 7, 2011 8:54 AM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Thomas Zloch on Apr 7, 2011 10:03 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Apr 2011 06:48:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/to-call-an-external-executable-program-from-a-background-process/m-p/7744376#M1582082</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-04-07T06:48:47Z</dc:date>
    </item>
  </channel>
</rss>

