<?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 command not working. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/external-command-not-working/m-p/909862#M56843</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Peter,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The critical point maybe is this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"Operating system command&lt;/P&gt;&lt;P&gt;C:\CopyFilesCreatedToday.bat"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dont't use the local drive C:! Use a network-drive instead.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 14 Nov 2005 13:47:06 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-11-14T13:47:06Z</dc:date>
    <item>
      <title>External command not working.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/external-command-not-working/m-p/909854#M56835</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 have written a batch program which copies files from SAP Application Server(4.6B) to external machine in LAN. This machine is mapped on SAP App Server. The contents of this file are:-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;@ECHO OFF&lt;/P&gt;&lt;P&gt;FOR /f "delims=" %%a in ('date /t') do set DATE=%%a&lt;/P&gt;&lt;P&gt;SET CUR-DATE=%DATE:~4,10% &lt;/P&gt;&lt;P&gt;XCOPY H:\source &lt;BR /&gt;ust-ght3dxp0097\fullc /D:%CUR-DATE%&lt;/P&gt;&lt;P&gt;XCOPY H:\source Z:\ /D:%CUR-DATE%&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where ust-ght3dxp0097 is the external machine and Z is the mapped drive on SAP App server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now this batch file works fine when executed from commandline. I want to execute this from my ABAP program.&lt;/P&gt;&lt;P&gt;Hence I created an external command from SM69 as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Operating system command&lt;/P&gt;&lt;P&gt;          C:\CopyFilesCreatedToday.bat &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This batch file is place in C drive of SAP Application Server.&lt;/P&gt;&lt;P&gt;When I try to execute this external command from SM49 it gives the following error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Invalid Drive Specification&lt;/P&gt;&lt;P&gt;0 files copied&lt;/P&gt;&lt;P&gt;Invalid Drive Specification&lt;/P&gt;&lt;P&gt;0 files copied&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can somebody help me with this error.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Mar 2005 11:07:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/external-command-not-working/m-p/909854#M56835</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-03-01T11:07:00Z</dc:date>
    </item>
    <item>
      <title>Re: External command not working.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/external-command-not-working/m-p/909855#M56836</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;are you sure that you are on the correct application server? If you have more than one app-server running, this might be the error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Siggi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Mar 2005 11:14:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/external-command-not-working/m-p/909855#M56836</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-03-01T11:14:17Z</dc:date>
    </item>
    <item>
      <title>Re: External command not working.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/external-command-not-working/m-p/909856#M56837</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Stephen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's little hard to read your code, but I see a lot of time the same error in shell script : do you check there is no space in your file / directory  name ? &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>Tue, 01 Mar 2005 11:15:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/external-command-not-working/m-p/909856#M56837</guid>
      <dc:creator>FredericGirod</dc:creator>
      <dc:date>2005-03-01T11:15:47Z</dc:date>
    </item>
    <item>
      <title>Re: External command not working.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/external-command-not-working/m-p/909857#M56838</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Frederic/Siggi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is no space in between file / directory name.&lt;/P&gt;&lt;P&gt;And also there is only one Applicaion server running.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Stephen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Mar 2005 11:21:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/external-command-not-working/m-p/909857#M56838</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-03-01T11:21:47Z</dc:date>
    </item>
    <item>
      <title>Re: External command not working.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/external-command-not-working/m-p/909858#M56839</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you try to do an echo ? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Don't know Microsoft Shell, but in Unix shell that display the content of a data.&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>Tue, 01 Mar 2005 12:21:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/external-command-not-working/m-p/909858#M56839</guid>
      <dc:creator>FredericGirod</dc:creator>
      <dc:date>2005-03-01T12:21:20Z</dc:date>
    </item>
    <item>
      <title>Re: External command not working.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/external-command-not-working/m-p/909859#M56840</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;if echo is not possible, you can try to output variables from your batch file to some output/file in order to check if they kept the values you expect, or even more, to check the existence of the files in your directories - calling dir &amp;lt;myDirectoryVariavle&amp;gt; or similar depending on your os. I've similar problems in the past - not with SAP appl. server, but with MS SQL server and execution of the batch-files via stored procedures - in some Windows (w2k, xp, 2003).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;Ivaylo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Mar 2005 13:37:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/external-command-not-working/m-p/909859#M56840</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-03-01T13:37:46Z</dc:date>
    </item>
    <item>
      <title>Re: External command not working.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/external-command-not-working/m-p/909860#M56841</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you sure your 'H' and 'D' drives are also accessable from SAP server?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Srinivas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Mar 2005 21:28:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/external-command-not-working/m-p/909860#M56841</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-03-01T21:28:54Z</dc:date>
    </item>
    <item>
      <title>Re: External command not working.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/external-command-not-working/m-p/909861#M56842</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Srivivas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"H:\Source" is on SAP server from where it is copied to &lt;/P&gt;&lt;P&gt;"&lt;BR /&gt;ust-ght3dxp0097\fullc".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Drive "Z" is the mapped drive on SAP server of "&lt;BR /&gt;ust-ght3dxp0097\fullc".&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Mar 2005 06:19:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/external-command-not-working/m-p/909861#M56842</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-03-02T06:19:59Z</dc:date>
    </item>
    <item>
      <title>Re: External command not working.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/external-command-not-working/m-p/909862#M56843</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Peter,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The critical point maybe is this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"Operating system command&lt;/P&gt;&lt;P&gt;C:\CopyFilesCreatedToday.bat"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dont't use the local drive C:! Use a network-drive instead.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Nov 2005 13:47:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/external-command-not-working/m-p/909862#M56843</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-14T13:47:06Z</dc:date>
    </item>
    <item>
      <title>Re: External command not working.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/external-command-not-working/m-p/909863#M56844</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; Hi Peter,&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; The critical point maybe is this:&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; "Operating system command&lt;/P&gt;&lt;P&gt;&amp;gt; C:\CopyFilesCreatedToday.bat"&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; Dont't use the local drive C:! Use a network-drive&lt;/P&gt;&lt;P&gt;&amp;gt; instead.&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; BR&lt;/P&gt;&lt;P&gt;&amp;gt; Michael&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi Michael,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you family of Jack Bauer? &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt; Just kidding sorry for the inconvenience&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Stephan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Nov 2005 13:53:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/external-command-not-working/m-p/909863#M56844</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-14T13:53:58Z</dc:date>
    </item>
  </channel>
</rss>

