<?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 a .exe file present in the Application Server in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/execute-a-exe-file-present-in-the-application-server/m-p/2865701#M672095</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is an example of executing operating systems commands from ABAP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA  unixcmd(200) TYPE c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONCATENATE g_dirn lh_rpt1-filen INTO unixcmd.&lt;/P&gt;&lt;P&gt;CONCATENATE 'mv' unixcmd g_dirn INTO unixcmd SEPARATED BY space.&lt;/P&gt;&lt;P&gt;CONCATENATE unixcmd 'bpcs/' lh_rpt1-filen INTO unixcmd.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Executing the system commands witin ABAP.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        CALL 'SYSTEM' ID 'COMMAND' FIELD  unixcmd.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 28 Sep 2007 14:36:47 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-09-28T14:36:47Z</dc:date>
    <item>
      <title>Execute a .exe file present in the Application Server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/execute-a-exe-file-present-in-the-application-server/m-p/2865698#M672092</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a requiremnet where in we have to execute an .exe file present in the Application server .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know ASAP if there any Function Modules or methods to perform this operation .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Points to be rewarded.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Sep 2007 13:19:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/execute-a-exe-file-present-in-the-application-server/m-p/2865698#M672092</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-28T13:19:41Z</dc:date>
    </item>
    <item>
      <title>Re: Execute a .exe file present in the Application Server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/execute-a-exe-file-present-in-the-application-server/m-p/2865699#M672093</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please respond&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Sep 2007 13:45:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/execute-a-exe-file-present-in-the-application-server/m-p/2865699#M672093</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-28T13:45:37Z</dc:date>
    </item>
    <item>
      <title>Re: Execute a .exe file present in the Application Server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/execute-a-exe-file-present-in-the-application-server/m-p/2865700#M672094</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Haritha,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please try the below mentioned code.It might help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT  zexe_0002.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;DATA: idata_tab TYPE TABLE OF string.&lt;/P&gt;&lt;P&gt;DATA: xdata_tab TYPE string.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;data: file1 type string.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;PARAMETERS: p_file1 TYPE localfile DEFAULT 'c:\sapcar.exe',&lt;/P&gt;&lt;P&gt;            p_file2 TYPE localfile DEFAULT '\usr\nsp\sys\sapcar.exe'.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;start-of-selection.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;file1 = p_file1.&lt;/P&gt;&lt;P&gt;call method cl_gui_frontend_services=&amp;gt;gui_upload&lt;/P&gt;&lt;P&gt;   EXPORTING&lt;/P&gt;&lt;P&gt;    filename                = file1&lt;/P&gt;&lt;P&gt;    filetype                = 'ASC'&lt;/P&gt;&lt;P&gt;  CHANGING&lt;/P&gt;&lt;P&gt;    data_tab                = idata_tab&lt;/P&gt;&lt;P&gt;  EXCEPTIONS&lt;/P&gt;&lt;P&gt;    file_open_error         = 1&lt;/P&gt;&lt;P&gt;    file_read_error         = 2&lt;/P&gt;&lt;P&gt;    no_batch                = 3&lt;/P&gt;&lt;P&gt;    gui_refuse_filetransfer = 4&lt;/P&gt;&lt;P&gt;    invalid_type            = 5&lt;/P&gt;&lt;P&gt;    no_authority            = 6&lt;/P&gt;&lt;P&gt;    unknown_error           = 7&lt;/P&gt;&lt;P&gt;    bad_data_format         = 8&lt;/P&gt;&lt;P&gt;    header_not_allowed      = 9&lt;/P&gt;&lt;P&gt;    separator_not_allowed   = 10&lt;/P&gt;&lt;P&gt;    header_too_long         = 11&lt;/P&gt;&lt;P&gt;    unknown_dp_error        = 12&lt;/P&gt;&lt;P&gt;    access_denied           = 13&lt;/P&gt;&lt;P&gt;    dp_out_of_memory        = 14&lt;/P&gt;&lt;P&gt;    disk_full               = 15&lt;/P&gt;&lt;P&gt;    dp_timeout              = 16&lt;/P&gt;&lt;P&gt;    not_supported_by_gui    = 17&lt;/P&gt;&lt;P&gt;    error_no_gui            = 18.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;OPEN DATASET p_file2 FOR OUTPUT IN BINARY MODE.&lt;/P&gt;&lt;P&gt;CHECK sy-subrc = 0.&lt;/P&gt;&lt;P&gt;LOOP AT idata_tab INTO xdata_tab.&lt;/P&gt;&lt;P&gt;  TRANSFER xdata_tab TO p_file2.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;CLOSE DATASET p_file2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In order to execute the file on the Application Server,you will have to go to AL11 and manually execute it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In case you have any further clarifications,do let me know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Puneet Jhari.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Sep 2007 14:23:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/execute-a-exe-file-present-in-the-application-server/m-p/2865700#M672094</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-28T14:23:31Z</dc:date>
    </item>
    <item>
      <title>Re: Execute a .exe file present in the Application Server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/execute-a-exe-file-present-in-the-application-server/m-p/2865701#M672095</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is an example of executing operating systems commands from ABAP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA  unixcmd(200) TYPE c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONCATENATE g_dirn lh_rpt1-filen INTO unixcmd.&lt;/P&gt;&lt;P&gt;CONCATENATE 'mv' unixcmd g_dirn INTO unixcmd SEPARATED BY space.&lt;/P&gt;&lt;P&gt;CONCATENATE unixcmd 'bpcs/' lh_rpt1-filen INTO unixcmd.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Executing the system commands witin ABAP.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        CALL 'SYSTEM' ID 'COMMAND' FIELD  unixcmd.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Sep 2007 14:36:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/execute-a-exe-file-present-in-the-application-server/m-p/2865701#M672095</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-28T14:36:47Z</dc:date>
    </item>
    <item>
      <title>Re: Execute a .exe file present in the Application Server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/execute-a-exe-file-present-in-the-application-server/m-p/2865702#M672096</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Go to SM69, maintain your exe as external command and then call it in your code using SXPG_COMMAND_EXECUTE.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Sep 2007 14:37:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/execute-a-exe-file-present-in-the-application-server/m-p/2865702#M672096</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-28T14:37:22Z</dc:date>
    </item>
    <item>
      <title>Re: Execute a .exe file present in the Application Server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/execute-a-exe-file-present-in-the-application-server/m-p/2865703#M672097</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi fred,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanx for your reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can u please be more specific in the usage of this code .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have checked with the below code&lt;/P&gt;&lt;P&gt;CONCATENATE '\usr\sap\R3S\SYS\exe\run\' 'MT.EXE' INTO unixcmd.&lt;/P&gt;&lt;P&gt;CONCATENATE 'mv' unixcmd '\usr\sap\R3S\SYS\exe\run\' INTO unixcmd SEPARATED BY space.&lt;/P&gt;&lt;P&gt;CONCATENATE unixcmd 'bpcs/' 'MT.EXE' INTO unixcmd.&lt;/P&gt;&lt;P&gt;CALL 'SYSTEM' ID 'COMMAND' FIELD unixcmd.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but i am not getting the required functionality.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My requirement is, suppose one EXE file has some functionality such one URL that should get opened. so that i can process that URL.Is it possible??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Sep 2007 15:16:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/execute-a-exe-file-present-in-the-application-server/m-p/2865703#M672097</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-28T15:16:09Z</dc:date>
    </item>
    <item>
      <title>Re: Execute a .exe file present in the Application Server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/execute-a-exe-file-present-in-the-application-server/m-p/2865704#M672098</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Srinivas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can u please explain  the process of creating external command as i am not having any idea regarding this.Also give the procedure if possible.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Sep 2007 15:19:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/execute-a-exe-file-present-in-the-application-server/m-p/2865704#M672098</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-28T15:19:44Z</dc:date>
    </item>
    <item>
      <title>Re: Execute a .exe file present in the Application Server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/execute-a-exe-file-present-in-the-application-server/m-p/2865705#M672099</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is the purpose of this exe and what parameters do you have to pass to it and what is it going to return back?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Sep 2007 15:34:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/execute-a-exe-file-present-in-the-application-server/m-p/2865705#M672099</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-28T15:34:30Z</dc:date>
    </item>
    <item>
      <title>Re: Execute a .exe file present in the Application Server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/execute-a-exe-file-present-in-the-application-server/m-p/2865706#M672100</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Haritha,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can execute a .exe file present on the application server using the followng code.  Just assign the path and executable file name to the unixcmd variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: unixcmd(100) type c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;unixcmd = '/directory/application.exe'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Executing the system commands witin ABAP.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;CALL 'SYSTEM' ID 'COMMAND' FIELD unixcmd.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Sep 2007 18:52:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/execute-a-exe-file-present-in-the-application-server/m-p/2865706#M672100</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-28T18:52:21Z</dc:date>
    </item>
  </channel>
</rss>

