<?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 Execution of command from SAP in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/execution-of-command-from-sap/m-p/8238418#M1629855</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;There is a requirement wherein one folder is created on presentation server ( Desktop ) in which we are putting excel files from &lt;/P&gt;&lt;P&gt;SAP ABAP using FM GUI_DOWNLOAD and now that folder contain file in excel forma lets say that folder name is INPUT. We have also created one more folder named OUTPUT and now the requirement is there is one executable converter file .exe in another folder lets say CONVERTER . Now the requirement is i need to execute that .exe file on  excel  file which it will then convert into necessary format which can be uploaded in bank site. The command works fine from windows i need to incorporate and execute the same command from SAP Kindly suggest any Function module,syntax or class n method exists for same.&lt;/P&gt;&lt;P&gt;The command which executed successfully from windows command prompt is&lt;/P&gt;&lt;P&gt;c:\&amp;gt;CONVERTER\ converter.exe  C:\INPUT\FILE.XLS C:\OUTPUT\&lt;/P&gt;&lt;P&gt;The same command i need to execute it from SAP Report&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Parag&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 30 Sep 2011 10:56:42 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-09-30T10:56:42Z</dc:date>
    <item>
      <title>Execution of command from SAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/execution-of-command-from-sap/m-p/8238418#M1629855</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;There is a requirement wherein one folder is created on presentation server ( Desktop ) in which we are putting excel files from &lt;/P&gt;&lt;P&gt;SAP ABAP using FM GUI_DOWNLOAD and now that folder contain file in excel forma lets say that folder name is INPUT. We have also created one more folder named OUTPUT and now the requirement is there is one executable converter file .exe in another folder lets say CONVERTER . Now the requirement is i need to execute that .exe file on  excel  file which it will then convert into necessary format which can be uploaded in bank site. The command works fine from windows i need to incorporate and execute the same command from SAP Kindly suggest any Function module,syntax or class n method exists for same.&lt;/P&gt;&lt;P&gt;The command which executed successfully from windows command prompt is&lt;/P&gt;&lt;P&gt;c:\&amp;gt;CONVERTER\ converter.exe  C:\INPUT\FILE.XLS C:\OUTPUT\&lt;/P&gt;&lt;P&gt;The same command i need to execute it from SAP Report&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Parag&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Sep 2011 10:56:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/execution-of-command-from-sap/m-p/8238418#M1629855</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-09-30T10:56:42Z</dc:date>
    </item>
    <item>
      <title>Re: Execution of command from SAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/execution-of-command-from-sap/m-p/8238419#M1629856</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Parag,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Most of such actions can be done with use of class CL_GUI_FRONTEND_SERVICES. In your case&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CL_GUI_FRONTEND_SERVICES=&amp;gt;EXECUTE with use of APPLICATION parameter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Marcin Cholewczuk&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Sep 2011 11:16:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/execution-of-command-from-sap/m-p/8238419#M1629856</guid>
      <dc:creator>marcin_cholewczuk</dc:creator>
      <dc:date>2011-09-30T11:16:57Z</dc:date>
    </item>
    <item>
      <title>Re: Execution of command from SAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/execution-of-command-from-sap/m-p/8238420#M1629857</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;Try with this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL METHOD cl_gui_frontend_services=&amp;gt;execute&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    application             = u2018C:\CONVERTER\converter.exeu2019&lt;/P&gt;&lt;P&gt;    parameter               = u2018C:\INPUT\FILE.XLS C:\OUTPUT\u2019&lt;/P&gt;&lt;P&gt;    minimized               = u2018Xu2019&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; EXCEPTIONS&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   cntl_error             = 1&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   error_no_gui           = 2&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   bad_parameter          = 3&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   file_not_found         = 4&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   path_not_found         = 5&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   file_extension_unknown = 6&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   error_execute_failed   = 7&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   synchronous_failed     = 8&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   not_supported_by_gui   = 9&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   others                 = 10.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Sep 2011 14:42:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/execution-of-command-from-sap/m-p/8238420#M1629857</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-09-30T14:42:24Z</dc:date>
    </item>
    <item>
      <title>Re: Execution of command from SAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/execution-of-command-from-sap/m-p/8238421#M1629858</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Parag&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try the code written below. I hope this will help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      CALL FUNCTION 'WS_EXECUTE'&lt;/P&gt;&lt;P&gt;           EXPORTING&lt;/P&gt;&lt;P&gt;                commandline       = 'converter.exe C:\INPUT\FILE.XLS C:\OUTPUT\'       "filename&lt;/P&gt;&lt;P&gt;                program               = 'c:\&amp;gt;CONVERTER\'                                               "prg_location&lt;/P&gt;&lt;P&gt;           EXCEPTIONS&lt;/P&gt;&lt;P&gt;                frontend_error     = 1&lt;/P&gt;&lt;P&gt;                no_batch           = 2&lt;/P&gt;&lt;P&gt;                prog_not_found     = 3&lt;/P&gt;&lt;P&gt;                illegal_option     = 4&lt;/P&gt;&lt;P&gt;                gui_refuse_execute = 5&lt;/P&gt;&lt;P&gt;                OTHERS             = 6.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Ashkar Rizvi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 01 Oct 2011 15:21:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/execution-of-command-from-sap/m-p/8238421#M1629858</guid>
      <dc:creator>syedashkar_rizvi</dc:creator>
      <dc:date>2011-10-01T15:21:43Z</dc:date>
    </item>
    <item>
      <title>Re: Execution of command from SAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/execution-of-command-from-sap/m-p/8238422#M1629859</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Parag,&lt;/P&gt;&lt;P&gt; It is advisable to use OO method of invoking these commands as mentioned above CL_GUI_FRONTEND_SERVICES=&amp;gt;EXECUTE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Best Regards,&lt;/P&gt;&lt;P&gt;Dinesh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 02 Oct 2011 10:08:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/execution-of-command-from-sap/m-p/8238422#M1629859</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-10-02T10:08:53Z</dc:date>
    </item>
  </channel>
</rss>

