<?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: executing  dos command in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/executing-dos-command/m-p/1083109#M98432</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi amit &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;basically i don have the basis rights.&lt;/P&gt;&lt;P&gt;Any way tell me about FM gui_exec.&lt;/P&gt;&lt;P&gt;what can be don with that.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 16 Dec 2005 14:02:54 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-12-16T14:02:54Z</dc:date>
    <item>
      <title>executing  dos command</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/executing-dos-command/m-p/1083106#M98429</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi experts &lt;/P&gt;&lt;P&gt;I have this scenario.&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;I have to ping to a server and get the result into a file.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;1.&amp;lt;/b&amp;gt;I tried with dsvas_doc_ws_execute_50 in se37 directly but no response only c:\programfiles poped up. Any idea on what i should  do with this function module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;2.&amp;lt;/b&amp;gt;I am not aurthorized to use SXPG_COMMAND_EXECUTE.&lt;/P&gt;&lt;P&gt;Try from ur side and What will the result if do this se37 &lt;/P&gt;&lt;P&gt;COMMANDNAME            ping &lt;/P&gt;&lt;P&gt;ADDITIONAL_PARAMETERS  xxxxxx &lt;/P&gt;&lt;P&gt;OPERATINGSYSTEM        windows nt &lt;/P&gt;&lt;P&gt;TARGETSYSTEM           application server ip&lt;/P&gt;&lt;P&gt;DESTINATION            don know what to give. try giving a&lt;/P&gt;&lt;P&gt;                    file path and try to upload any file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;all worthy replies will be appriciated.&lt;/P&gt;&lt;P&gt;don give any link as an answer. &lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;try it out on ur side and let me know.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Dec 2005 13:36:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/executing-dos-command/m-p/1083106#M98429</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-16T13:36:31Z</dc:date>
    </item>
    <item>
      <title>Re: executing  dos command</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/executing-dos-command/m-p/1083107#M98430</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;CALL METHOD cl_gui_frontend_services=&amp;gt;execute
  EXPORTING
*    DOCUMENT               =
    application            = 'CMD.EXE'
    parameter              = 'ping ip'
*    DEFAULT_DIRECTORY      =
    MAXIMIZED              =  'X'
*    MINIMIZED              =
*    SYNCHRONOUS            =
*    OPERATION              = 'OPEN'
  EXCEPTIONS
    cntl_error             = 1
    error_no_gui           = 2
    bad_parameter          = 3
    file_not_found         = 4
    path_not_found         = 5
    file_extension_unknown = 6
    error_execute_failed   = 7
    synchronous_failed     = 8
    not_supported_by_gui   = 9
    OTHERS                 = 10
        .
IF sy-subrc &amp;lt;&amp;gt; 0.
  MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
             WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Vijay Babu Dudla&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Dec 2005 13:46:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/executing-dos-command/m-p/1083107#M98430</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-16T13:46:11Z</dc:date>
    </item>
    <item>
      <title>Re: executing  dos command</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/executing-dos-command/m-p/1083108#M98431</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi vijayasarathy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. The FM is right.&lt;/P&gt;&lt;P&gt;   But definitely u must have rights&lt;/P&gt;&lt;P&gt;  for executing OS command.&lt;/P&gt;&lt;P&gt;  (ur basis team might help u)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Secondly, ur applciation server&lt;/P&gt;&lt;P&gt;   must be window based (i suppose)&lt;/P&gt;&lt;P&gt;   for ping.exe&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. In SM69 a new command must be there&lt;/P&gt;&lt;P&gt;   where the command name should be PING.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. U can execute the command thru FM&lt;/P&gt;&lt;P&gt;   and pass parameters.&lt;/P&gt;&lt;P&gt;   machinename &amp;gt; d:\abc.txt&lt;/P&gt;&lt;P&gt;   &lt;/P&gt;&lt;P&gt;  so that the output of PING command gets into &lt;/P&gt;&lt;P&gt;  a text file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;5. Ater that u need to fetch the info from file&lt;/P&gt;&lt;P&gt;   using DATASET.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope it helps.&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;amit m.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Dec 2005 13:47:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/executing-dos-command/m-p/1083108#M98431</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-16T13:47:49Z</dc:date>
    </item>
    <item>
      <title>Re: executing  dos command</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/executing-dos-command/m-p/1083109#M98432</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi amit &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;basically i don have the basis rights.&lt;/P&gt;&lt;P&gt;Any way tell me about FM gui_exec.&lt;/P&gt;&lt;P&gt;what can be don with that.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Dec 2005 14:02:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/executing-dos-command/m-p/1083109#M98432</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-16T14:02:54Z</dc:date>
    </item>
    <item>
      <title>Re: executing  dos command</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/executing-dos-command/m-p/1083110#M98433</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sorry vijay babu&lt;/P&gt;&lt;P&gt;My abap version does not support cl_gui_frontend_services.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Dec 2005 14:03:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/executing-dos-command/m-p/1083110#M98433</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-16T14:03:47Z</dc:date>
    </item>
    <item>
      <title>Re: executing  dos command</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/executing-dos-command/m-p/1083111#M98434</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;what is with:&lt;/P&gt;&lt;P&gt;- abap RSRFCPIN&lt;/P&gt;&lt;P&gt;- fm RFC_PING&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andreas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Dec 2005 14:31:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/executing-dos-command/m-p/1083111#M98434</guid>
      <dc:creator>andreas_mann3</dc:creator>
      <dc:date>2005-12-16T14:31:00Z</dc:date>
    </item>
    <item>
      <title>Re: executing  dos command</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/executing-dos-command/m-p/1083112#M98435</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi again,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. u are right. One way is that&lt;/P&gt;&lt;P&gt;    we can us the FM GUI_EXEC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. This will execute OS command&lt;/P&gt;&lt;P&gt;   on the front-end (And not on app server)&lt;/P&gt;&lt;P&gt;   (So we assume that ping.exe is on the front-end&lt;/P&gt;&lt;P&gt;   server and its a window based system)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. In the FM &lt;/P&gt;&lt;P&gt;   there is a parameter COMMAND.&lt;/P&gt;&lt;P&gt;   in that just pass:&lt;/P&gt;&lt;P&gt;   CMD /C PING computername &amp;gt; D:\DEF.TXT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  [ Pls note that just using PING will not work.&lt;/P&gt;&lt;P&gt;    We also have to use CMD along with PING ]&lt;/P&gt;&lt;P&gt;   &lt;/P&gt;&lt;P&gt;4. It will do what u require.&lt;/P&gt;&lt;P&gt;5. I just tried at my end and it works fantastic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;amit m.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Dec 2005 04:34:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/executing-dos-command/m-p/1083112#M98435</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-19T04:34:31Z</dc:date>
    </item>
    <item>
      <title>Re: executing  dos command</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/executing-dos-command/m-p/1083113#M98436</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;I amit i tried same way as u did but it did not work for me.&lt;/P&gt;&lt;P&gt;Also what is the difference in execute in front end  and on application server.&lt;/P&gt;&lt;P&gt; Can u send ur screen shots to this mail id.&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;rvjoy_sarathy@yahoo.co.in.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regrads&lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Dec 2005 06:05:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/executing-dos-command/m-p/1083113#M98436</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-19T06:05:18Z</dc:date>
    </item>
    <item>
      <title>Re: executing  dos command</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/executing-dos-command/m-p/1083114#M98437</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi again,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.what is the difference in execute in front end and on application server&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  a) the pc u are working on is called the&lt;/P&gt;&lt;P&gt;     front-end.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  b) The R/3 instance running on the server.&lt;/P&gt;&lt;P&gt;     That server is called application server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2.  Accessing files on both these computers.&lt;/P&gt;&lt;P&gt;   (ie front-end local pc, and server)&lt;/P&gt;&lt;P&gt;    cannot be done in just 1 way.&lt;/P&gt;&lt;P&gt;  There are 2 different methods.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. I assume that u are working on a computer&lt;/P&gt;&lt;P&gt;   having windows operating system&lt;/P&gt;&lt;P&gt;   (98, XP, windows 2000 etc.&lt;/P&gt;&lt;P&gt;   Bcos it will have ping .exe)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. Goto SE37&lt;/P&gt;&lt;P&gt;5. Execute the FM GUI_EXEC&lt;/P&gt;&lt;P&gt;6. In the COMMAND parameter, type&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  cmd /c ping computername &amp;gt; d:\def.txt&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;7. Please note that &lt;/P&gt;&lt;P&gt;   computername is the computer u want to ping.&lt;/P&gt;&lt;P&gt;   d:\def.txt  is the file where u want the results&lt;/P&gt;&lt;P&gt;   of the ping command.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;8. Now EXECUTE the FM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;9 A Black Window (DOS Prompt window )&lt;/P&gt;&lt;P&gt;   will appear for 3 - 5 seconds&lt;/P&gt;&lt;P&gt;   and disappear thereafter.&lt;/P&gt;&lt;P&gt;10. Goto your director d:\ (as mentioned in the parameter)&lt;/P&gt;&lt;P&gt;   and check the file &lt;/P&gt;&lt;P&gt;  def.txt&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;11. It works fantastic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope it helps.&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;amit m.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Dec 2005 06:13:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/executing-dos-command/m-p/1083114#M98437</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-19T06:13:58Z</dc:date>
    </item>
  </channel>
</rss>

