<?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: Execute Batch file present in Application Server in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/execute-batch-file-present-in-application-server/m-p/9032236#M1700351</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Look at SM49 for external commands executed on AS. You can execute those commands with FMs like SXPG_CALL_SYSTEM or SXPG_COMMAND_EXECUTE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raymond&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 09 Oct 2012 14:35:32 GMT</pubDate>
    <dc:creator>RaymondGiuseppi</dc:creator>
    <dc:date>2012-10-09T14:35:32Z</dc:date>
    <item>
      <title>Execute Batch file present in Application Server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/execute-batch-file-present-in-application-server/m-p/9032235#M1700350</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to&lt;STRONG&gt; run the batch file&lt;/STRONG&gt; present on the&lt;STRONG&gt; Application server&lt;/STRONG&gt; not on the Presentation server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know if it is in presentation server we can use the below methods: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'GUI_EXEC&amp;nbsp; or WS_EXECUTE or by using method CL_GUI_FRONTEND_SERVICES=&amp;gt;EXECUTE '&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By using OPEN DATASET we can read/write/change normal file present in application server but how to &lt;STRONG&gt;run&lt;/STRONG&gt; the batch file present on the Application Server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Venkat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Oct 2012 14:03:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/execute-batch-file-present-in-application-server/m-p/9032235#M1700350</guid>
      <dc:creator>venkat_aileni</dc:creator>
      <dc:date>2012-10-09T14:03:59Z</dc:date>
    </item>
    <item>
      <title>Re: Execute Batch file present in Application Server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/execute-batch-file-present-in-application-server/m-p/9032236#M1700351</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Look at SM49 for external commands executed on AS. You can execute those commands with FMs like SXPG_CALL_SYSTEM or SXPG_COMMAND_EXECUTE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raymond&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Oct 2012 14:35:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/execute-batch-file-present-in-application-server/m-p/9032236#M1700351</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2012-10-09T14:35:32Z</dc:date>
    </item>
    <item>
      <title>Re: Execute Batch file present in Application Server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/execute-batch-file-present-in-application-server/m-p/9032237#M1700352</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use SXPG_COMMAND_EXECUTE to execute command for your operating system for the application server. You can use SM69/SM49 to create command.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Oct 2012 14:37:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/execute-batch-file-present-in-application-server/m-p/9032237#M1700352</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-10-09T14:37:26Z</dc:date>
    </item>
    <item>
      <title>Re: Execute Batch file present in Application Server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/execute-batch-file-present-in-application-server/m-p/9032238#M1700353</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Raymond and Roy for your quick responses.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just want to know whether do we have any other option rather than creating external commands.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Like specifying the batch file path so that it(FM or Class) triggers all the commands in the file like we do for batch files present on the presentation server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks, &lt;/P&gt;&lt;P&gt;Venkat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Oct 2012 16:31:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/execute-batch-file-present-in-application-server/m-p/9032238#M1700353</guid>
      <dc:creator>venkat_aileni</dc:creator>
      <dc:date>2012-10-09T16:31:01Z</dc:date>
    </item>
    <item>
      <title>Re: Execute Batch file present in Application Server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/execute-batch-file-present-in-application-server/m-p/9032239#M1700354</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This depends mostly on the OS of the AS, some have some "command.com" like command that execute a script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Raymond&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Oct 2012 18:09:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/execute-batch-file-present-in-application-server/m-p/9032239#M1700354</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2012-10-09T18:09:11Z</dc:date>
    </item>
    <item>
      <title>Re: Execute Batch file present in Application Server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/execute-batch-file-present-in-application-server/m-p/9032240#M1700355</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Conclusion:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As suggested by Raymond and Roy i have created External Command using transaction code SM69.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the Operating system command i have placed my Batch file path which consists of multiple commands.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And i have passed this external command name as import parameter to FM 'SXPG_COMMAND_EXECUTE'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks all for your support,&lt;/P&gt;&lt;P&gt;Venkat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Oct 2012 04:48:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/execute-batch-file-present-in-application-server/m-p/9032240#M1700355</guid>
      <dc:creator>venkat_aileni</dc:creator>
      <dc:date>2012-10-10T04:48:32Z</dc:date>
    </item>
  </channel>
</rss>

