<?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: OS Command net use, SM69 - write to networkdrive in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/os-command-net-use-sm69-write-to-networkdrive/m-p/1893734#M373742</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mathias,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sorry I don't remember the details: I think you have to or have &amp;lt;b&amp;gt;not&amp;lt;/b&amp;gt; to enclose the parameter values in quotes. Try both.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then it may be important if you specified the command in upper/lower case letters - try both. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think the command entry should be just 'net', the rest to be passed as  PARAMETERS.&lt;/P&gt;&lt;P&gt;It may help to issue the net comand first with parameter 'use /delete' to free the drive letter if it is already occupied,&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;Clemens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 27 Jan 2007 22:50:29 GMT</pubDate>
    <dc:creator>Clemenss</dc:creator>
    <dc:date>2007-01-27T22:50:29Z</dc:date>
    <item>
      <title>OS Command net use, SM69 - write to networkdrive</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/os-command-net-use-sm69-write-to-networkdrive/m-p/1893733#M373741</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;we are on a 4 .7 system.&lt;/P&gt;&lt;P&gt;we need to write from ABAP to a networkdrive by first initializing the connection to it, as it is not permanently mapped to the sap application server. There is a dos os-command&lt;/P&gt;&lt;P&gt;"net use &amp;lt;drive&amp;gt;: &lt;BR /&gt;remoteserver\share password /user:domainname\username" which works fine fom dos prompt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i put it in a sm69 command.&lt;/P&gt;&lt;P&gt;testing in sm49 shows:&lt;/P&gt;&lt;P&gt;if the drive letter already exists on the sending server, I get an error message, that tells exactly the driveletter is occupied.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;otherwise I get:&lt;/P&gt;&lt;P&gt;                                               &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt; System error 67 has occurred.                 
                                               
 The network name cannot be found.             
                                               
 External program terminated with exit code 2 &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my case I noticed, that I can miss out the password/user part and the sm49 test seems to work, if the driveletter is free - I don't get any other messages, neither success or failure&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now I  put the command (without password/user) in FM SXPG_CALL_SYSTEM, which only expects the commandname and one optional parameter, but I get an exception:&lt;/P&gt;&lt;P&gt;X_ERROR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if I use the FM with the longer version including password/user I get the same error as above:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt; System error 67 has occurred.                 
                                               
 The network name cannot be found.             
                                               
 External program terminated with exit code 2 &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;some ideas about this?&lt;/P&gt;&lt;P&gt;regards, matthias&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ps: I can't reply before Monday as I am out of office, but will surely return on Monday &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Matthias Kasig&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jan 2007 15:50:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/os-command-net-use-sm69-write-to-networkdrive/m-p/1893733#M373741</guid>
      <dc:creator>matthias_kasig2</dc:creator>
      <dc:date>2007-01-26T15:50:30Z</dc:date>
    </item>
    <item>
      <title>Re: OS Command net use, SM69 - write to networkdrive</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/os-command-net-use-sm69-write-to-networkdrive/m-p/1893734#M373742</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mathias,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sorry I don't remember the details: I think you have to or have &amp;lt;b&amp;gt;not&amp;lt;/b&amp;gt; to enclose the parameter values in quotes. Try both.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then it may be important if you specified the command in upper/lower case letters - try both. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think the command entry should be just 'net', the rest to be passed as  PARAMETERS.&lt;/P&gt;&lt;P&gt;It may help to issue the net comand first with parameter 'use /delete' to free the drive letter if it is already occupied,&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;Clemens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 27 Jan 2007 22:50:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/os-command-net-use-sm69-write-to-networkdrive/m-p/1893734#M373742</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2007-01-27T22:50:29Z</dc:date>
    </item>
  </channel>
</rss>

