<?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 Error on SXPG_COMMAND_EXECUTE in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-on-sxpg-command-execute/m-p/5688677#M1292777</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 want to execute a DIR on a external system and I've created a SM69 commant named ZTEST_DIR to do it. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code of the DIR is RUNRMTCMD CMD('dir t:\docs\cdphtesp ') RMTLOCNAME(XXXXX *IP) RMTUSER(XXXX) RMTPWD('XXX') and it works fine. (with two slash but it does not show)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The probles is that the directory must be variable so, I need to user the additional parameters ( the flag to allow that is checked ). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then the code of the command is RUNRMTCMD CMD('dir ') RMTLOCNAME(IXXXX *IP) RMTUSER(XXXX) RMTPWD('XXXX') and on the additional parameteres I put the directory as 't:\docs\cdphtesp' (with two slash but it does not show) but it does not work fine it returns an error String '\DOCS\CDPH' contains a character that is not valid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've created also a test program to execute it on the SXPG_COMMAND_EXECUTE (I paste the code at bottom) but with the same result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anybody help me? &lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: d_commandname LIKE sxpgcolist-name,&lt;/P&gt;&lt;P&gt;      d_exit_code LIKE extcmdexex-exitcode,&lt;/P&gt;&lt;P&gt;      d_status LIKE extcmdexex-status,&lt;/P&gt;&lt;P&gt;      d_aditional_parameters like SXPGCOLIST-PARAMETERS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: li_execution LIKE btcxpm OCCURS 0 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;d_commandname = 'ZTEST_DIR'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;d_aditional_parameters = 't:\docs\cdphtesp'. (again two slashes)&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                         = d_commandname&lt;/P&gt;&lt;P&gt;    ADDITIONAL_PARAMETERS               = d_aditional_parameters&lt;/P&gt;&lt;P&gt;    terminationwait                     = 'X'&lt;/P&gt;&lt;P&gt; IMPORTING&lt;/P&gt;&lt;P&gt;   status                              = d_status&lt;/P&gt;&lt;P&gt;   exitcode                            = d_exit_code&lt;/P&gt;&lt;P&gt; TABLES&lt;/P&gt;&lt;P&gt;   exec_protocol                       = li_execution&lt;/P&gt;&lt;P&gt; EXCEPTIONS&lt;/P&gt;&lt;P&gt;   no_permission                       = 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Legoles_ dlb on Jun 10, 2009 3:56 PM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Legoles_ dlb on Jun 10, 2009 3:58 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 10 Jun 2009 13:56:11 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-06-10T13:56:11Z</dc:date>
    <item>
      <title>Error on SXPG_COMMAND_EXECUTE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-on-sxpg-command-execute/m-p/5688677#M1292777</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 want to execute a DIR on a external system and I've created a SM69 commant named ZTEST_DIR to do it. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code of the DIR is RUNRMTCMD CMD('dir t:\docs\cdphtesp ') RMTLOCNAME(XXXXX *IP) RMTUSER(XXXX) RMTPWD('XXX') and it works fine. (with two slash but it does not show)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The probles is that the directory must be variable so, I need to user the additional parameters ( the flag to allow that is checked ). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then the code of the command is RUNRMTCMD CMD('dir ') RMTLOCNAME(IXXXX *IP) RMTUSER(XXXX) RMTPWD('XXXX') and on the additional parameteres I put the directory as 't:\docs\cdphtesp' (with two slash but it does not show) but it does not work fine it returns an error String '\DOCS\CDPH' contains a character that is not valid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've created also a test program to execute it on the SXPG_COMMAND_EXECUTE (I paste the code at bottom) but with the same result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anybody help me? &lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: d_commandname LIKE sxpgcolist-name,&lt;/P&gt;&lt;P&gt;      d_exit_code LIKE extcmdexex-exitcode,&lt;/P&gt;&lt;P&gt;      d_status LIKE extcmdexex-status,&lt;/P&gt;&lt;P&gt;      d_aditional_parameters like SXPGCOLIST-PARAMETERS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: li_execution LIKE btcxpm OCCURS 0 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;d_commandname = 'ZTEST_DIR'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;d_aditional_parameters = 't:\docs\cdphtesp'. (again two slashes)&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                         = d_commandname&lt;/P&gt;&lt;P&gt;    ADDITIONAL_PARAMETERS               = d_aditional_parameters&lt;/P&gt;&lt;P&gt;    terminationwait                     = 'X'&lt;/P&gt;&lt;P&gt; IMPORTING&lt;/P&gt;&lt;P&gt;   status                              = d_status&lt;/P&gt;&lt;P&gt;   exitcode                            = d_exit_code&lt;/P&gt;&lt;P&gt; TABLES&lt;/P&gt;&lt;P&gt;   exec_protocol                       = li_execution&lt;/P&gt;&lt;P&gt; EXCEPTIONS&lt;/P&gt;&lt;P&gt;   no_permission                       = 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Legoles_ dlb on Jun 10, 2009 3:56 PM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Legoles_ dlb on Jun 10, 2009 3:58 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jun 2009 13:56:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-on-sxpg-command-execute/m-p/5688677#M1292777</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-10T13:56:11Z</dc:date>
    </item>
    <item>
      <title>Re: Error on SXPG_COMMAND_EXECUTE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-on-sxpg-command-execute/m-p/5688678#M1292778</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Finally the problem was resolved; Special characters must be escaped. &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Jun 2010 08:39:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-on-sxpg-command-execute/m-p/5688678#M1292778</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-11T08:39:22Z</dc:date>
    </item>
  </channel>
</rss>

