<?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: External System command is not working in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/external-system-command-is-not-working/m-p/5523630#M1262340</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Yogesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How did u solve the problem, in my case I am not using PGP file instead of batch file. I am getting the same error you were getting previously when I execute it with sm69&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 01 Oct 2010 08:27:24 GMT</pubDate>
    <dc:creator>former_member16044</dc:creator>
    <dc:date>2010-10-01T08:27:24Z</dc:date>
    <item>
      <title>External System command is not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/external-system-command-is-not-working/m-p/5523624#M1262334</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 a requirement to copy some files (K&amp;amp;R ) from one directory to another directory on my application server. For that I made one external operating systems command through Tcode sm69.&lt;/P&gt;&lt;P&gt;I took operating system as "DOS" and put the operating system command &lt;/P&gt;&lt;P&gt;"copy d:\usr\sap\e70-trans\data\r900425.e70 d:\usr\sap\trans\test"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and left the "Parameters for operating system command" blank. I executed it by FM SXPG_COMMAND_EXECUTE., it gives me an error message&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can't exec external program (No such file or directory)&lt;/P&gt;&lt;P&gt;WaitForSingleObject failedwith %d (No such device or address)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the above DOS command is working fine when i am running it directly from dos prompt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I didn't give any RFC in above FM. and changed the operating system to DOS by default it comes as Windows NT, gave the command name. Remaining things were defaulted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My application server is on Windows Server 2003.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please let me know what I am missing?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Yogesh Gupta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Apr 2009 21:36:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/external-system-command-is-not-working/m-p/5523624#M1262334</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-14T21:36:25Z</dc:date>
    </item>
    <item>
      <title>Re: External System command is not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/external-system-command-is-not-working/m-p/5523625#M1262335</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Frankly I have never tried your way to copy the file from PC to App.Server. One catching eye thing here is:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;copy d:\usr\sap\e70-trans\data\r900425.e70 d:\usr\sap\trans\test&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;I guess there is no such directory d:\usr\sap\... as this is UNIX right? Try changing the second argument to meet unix convention and leave the first using DOS. Not sure if that works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nevetherless if you want to just put some files on App.Sever you can use t-code &lt;STRONG&gt;CG3Z&lt;/STRONG&gt; and &lt;STRONG&gt;CG3Y&lt;/STRONG&gt; for uploading and downloading files respectively.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Marcin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Apr 2009 22:07:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/external-system-command-is-not-working/m-p/5523625#M1262335</guid>
      <dc:creator>MarcinPciak</dc:creator>
      <dc:date>2009-04-14T22:07:39Z</dc:date>
    </item>
    <item>
      <title>Re: External System command is not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/external-system-command-is-not-working/m-p/5523626#M1262336</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Yogesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the OS of your current SAP system, are you sure it's 'DOS'? Check the OS from menu system-&amp;gt;status.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the OS is correct, have you tried to execute the command from SM69? Is it correctly done?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Lim...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Apr 2009 01:46:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/external-system-command-is-not-working/m-p/5523626#M1262336</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-15T01:46:12Z</dc:date>
    </item>
    <item>
      <title>Re: External System command is not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/external-system-command-is-not-working/m-p/5523627#M1262337</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;Since you ave tried it from command prompt, simplest would be create a batch file &amp;amp; include your copy command in that &amp;amp; in SM69 define a new command say ZCOPY, give operating system command as batch file name along with full path. Test the above via SM49. If it works then just use:&lt;/P&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            = 'zcopy'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;          additional_parameters  = w_additional_parameters&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;            status                              = statusline&lt;/P&gt;&lt;P&gt;         TABLES&lt;/P&gt;&lt;P&gt;            exec_protocol                       = t_copy&lt;/P&gt;&lt;P&gt;         EXCEPTIONS&lt;/P&gt;&lt;P&gt;            no_permission                       = 1&lt;/P&gt;&lt;P&gt;            command_not_found                   = 2&lt;/P&gt;&lt;P&gt;            parameters_too_long                 = 3&lt;/P&gt;&lt;P&gt;            security_risk                       = 4&lt;/P&gt;&lt;P&gt;            wrong_check_call_interface          = 5&lt;/P&gt;&lt;P&gt;            program_start_error                 = 6&lt;/P&gt;&lt;P&gt;            program_termination_error           = 7&lt;/P&gt;&lt;P&gt;            x_error                             = 8&lt;/P&gt;&lt;P&gt;            parameter_expected                  = 9&lt;/P&gt;&lt;P&gt;            too_many_parameters                 = 10&lt;/P&gt;&lt;P&gt;            illegal_command                     = 11&lt;/P&gt;&lt;P&gt;            wrong_asynchronous_parameters       = 12&lt;/P&gt;&lt;P&gt;            cant_enq_tbtco_entry                = 13&lt;/P&gt;&lt;P&gt;            jobcount_generation_error           = 14&lt;/P&gt;&lt;P&gt;        OTHERS                              = 15&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Raju Chitale&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Raju Chitale on Apr 15, 2009 8:16 AM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Raju Chitale on Apr 15, 2009 8:18 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Apr 2009 06:15:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/external-system-command-is-not-working/m-p/5523627#M1262337</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-15T06:15:46Z</dc:date>
    </item>
    <item>
      <title>Re: External System command is not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/external-system-command-is-not-working/m-p/5523628#M1262338</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;It almost soved my issue but during this i came up with one more issue&lt;/P&gt;&lt;P&gt; when i try to copy in this way from one direcory to another directory (both the directory are on the same server) it works fine. but when i try to do the same when these directories are on different servers, it gives following error&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;D:\usr\sap\E70\DVEBMGS08\work&amp;gt;copy d:\usr\sap\trans\test\r900425.e70 &lt;BR /&gt;tc-demo1\sapmnt\trans\test                                                                                Logon failure: unknown user name or bad password.                                                                                0 file(s) copied.                                                                                External program terminated with exit code 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But when i use the same command directly from the one sever it works fine without asking any user name and password, could you please tell me how can i add userid and password in the batch file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As of now my batch file content is as following&lt;/P&gt;&lt;P&gt;copy d:\usr\sap\trans\test\r900425.e70 &lt;BR /&gt;tc-demo1\sapmnt\trans\test                                                                                &lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;YG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Apr 2009 21:48:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/external-system-command-is-not-working/m-p/5523628#M1262338</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-15T21:48:09Z</dc:date>
    </item>
    <item>
      <title>Re: External System command is not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/external-system-command-is-not-working/m-p/5523629#M1262339</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Need to pass the user id and password in BAT file&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Jun 2010 20:47:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/external-system-command-is-not-working/m-p/5523629#M1262339</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-10T20:47:19Z</dc:date>
    </item>
    <item>
      <title>Re: External System command is not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/external-system-command-is-not-working/m-p/5523630#M1262340</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Yogesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How did u solve the problem, in my case I am not using PGP file instead of batch file. I am getting the same error you were getting previously when I execute it with sm69&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Oct 2010 08:27:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/external-system-command-is-not-working/m-p/5523630#M1262340</guid>
      <dc:creator>former_member16044</dc:creator>
      <dc:date>2010-10-01T08:27:24Z</dc:date>
    </item>
  </channel>
</rss>

