<?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: SXPG_COMMAND_EXECUTE in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/sxpg-command-execute/m-p/962906#M67876</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you checked return table EXEC_PROTOCOL? It usually provides good e.g. unix/nt line-command feedback.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 29 Sep 2010 08:37:59 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-09-29T08:37:59Z</dc:date>
    <item>
      <title>SXPG_COMMAND_EXECUTE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sxpg-command-execute/m-p/962903#M67873</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 tried the following code for Windows NT to move a file from one directory to another but its not working.Can you please suggest what is going wrong&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;am using operating system command 'MOVE' while creating external command&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ws_file_path = 'D:\usr\sap\UKR\DVEBMGS00\work\ENQLOG00.DAT'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;p_tg_dir = 'D:\usr\sap\UKR\DVEBMGS00\data'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Forming the command&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;concatenate ws_file_path p_tg_dir into ws_comm_winnt&lt;/P&gt;&lt;P&gt;separated by space.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Call function to execute 'ZMV' command defined in SM69 CALL FUNCTION&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call function 'SXPG_COMMAND_EXECUTE'&lt;/P&gt;&lt;P&gt;exporting&lt;/P&gt;&lt;P&gt;commandname = 'ZMV'&lt;/P&gt;&lt;P&gt;additional_parameters = ws_comm_winnt&lt;/P&gt;&lt;P&gt;operatingsystem = sy-opsys&lt;/P&gt;&lt;P&gt;stdout = 'X'&lt;/P&gt;&lt;P&gt;stderr = 'X'&lt;/P&gt;&lt;P&gt;terminationwait = 'X'&lt;/P&gt;&lt;P&gt;importing&lt;/P&gt;&lt;P&gt;status = ws_zstat&lt;/P&gt;&lt;P&gt;exitcode = ws_zexit&lt;/P&gt;&lt;P&gt;tables&lt;/P&gt;&lt;P&gt;exec_protocol = t_move&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The funny thing is, if i debug the program, the files are moving correctly... Without debug if i execute the program it's not working....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jul 2005 08:48:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sxpg-command-execute/m-p/962903#M67873</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-07-11T08:48:19Z</dc:date>
    </item>
    <item>
      <title>Re: SXPG_COMMAND_EXECUTE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sxpg-command-execute/m-p/962904#M67874</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you have check SM21 ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Frédéric&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jul 2005 08:59:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sxpg-command-execute/m-p/962904#M67874</guid>
      <dc:creator>FredericGirod</dc:creator>
      <dc:date>2005-07-11T08:59:47Z</dc:date>
    </item>
    <item>
      <title>Re: SXPG_COMMAND_EXECUTE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sxpg-command-execute/m-p/962905#M67875</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are facing exactly the same problem at the moment. However, in our case the move works partially, that is, if a list of files needs to be moved from one (shared Windows) directory to another, some of the files are moved, and some remain where they are. Upon debugging however, all files are moved correctly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you found any solution to the problem?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Joë&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Oct 2005 19:03:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sxpg-command-execute/m-p/962905#M67875</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-10-20T19:03:42Z</dc:date>
    </item>
    <item>
      <title>Re: SXPG_COMMAND_EXECUTE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sxpg-command-execute/m-p/962906#M67876</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you checked return table EXEC_PROTOCOL? It usually provides good e.g. unix/nt line-command feedback.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Sep 2010 08:37:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sxpg-command-execute/m-p/962906#M67876</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-09-29T08:37:59Z</dc:date>
    </item>
  </channel>
</rss>

