<?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 TCode : FILE in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/tcode-file/m-p/3517508#M846024</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In my sap directory(AL11) , /usr/sap/&amp;lt;sysid&amp;gt; is already mapped and im creating notepad file (txt) at run time at this location. I could see the file created with the specified name successfully. But if i want to move my notepad file to another subfolder under this &amp;lt;sysid&amp;gt;, im unable to create the txt file even though i  assigned physical paths to logical path .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;P=DIR_INTERFACE&amp;gt;/&amp;lt;SYSID&amp;gt;/&lt;STRONG&gt;ZTEST&lt;/STRONG&gt;/&amp;lt;FILENAME&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 27 Feb 2008 11:15:56 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-02-27T11:15:56Z</dc:date>
    <item>
      <title>TCode : FILE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/tcode-file/m-p/3517508#M846024</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In my sap directory(AL11) , /usr/sap/&amp;lt;sysid&amp;gt; is already mapped and im creating notepad file (txt) at run time at this location. I could see the file created with the specified name successfully. But if i want to move my notepad file to another subfolder under this &amp;lt;sysid&amp;gt;, im unable to create the txt file even though i  assigned physical paths to logical path .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;P=DIR_INTERFACE&amp;gt;/&amp;lt;SYSID&amp;gt;/&lt;STRONG&gt;ZTEST&lt;/STRONG&gt;/&amp;lt;FILENAME&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Feb 2008 11:15:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/tcode-file/m-p/3517508#M846024</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-27T11:15:56Z</dc:date>
    </item>
    <item>
      <title>Re: TCode : FILE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/tcode-file/m-p/3517509#M846025</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Check whether do you have write access to that folder?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Feb 2008 11:35:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/tcode-file/m-p/3517509#M846025</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-27T11:35:35Z</dc:date>
    </item>
    <item>
      <title>Re: TCode : FILE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/tcode-file/m-p/3517510#M846026</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;First you read the file in output mode using Open dataset and Read dataset statement with the initial application server path.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then write this data back to another file path by opening the file in Input mode and using Transfer statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;open dataset &amp;lt;file1&amp;gt; mode output encding default.&lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;do.&lt;/P&gt;&lt;P&gt;read dataset &amp;lt;file1&amp;gt; into wa_itab.&lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;append wa_itab to itab.&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;exit.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;enddo.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;open dataset &amp;lt;file2&amp;gt; mode input encding default.&lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;loop at itab into wa_itab.&lt;/P&gt;&lt;P&gt;transfer wa_itab to &amp;lt;file2&amp;gt;.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Feb 2008 11:49:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/tcode-file/m-p/3517510#M846026</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-27T11:49:42Z</dc:date>
    </item>
    <item>
      <title>Re: TCode : FILE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/tcode-file/m-p/3517511#M846027</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This message was moderated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Dec 2010 05:26:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/tcode-file/m-p/3517511#M846027</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-12-07T05:26:40Z</dc:date>
    </item>
  </channel>
</rss>

