<?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: LOGICAL FILENAME / TCODE FILE in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/logical-filename-tcode-file/m-p/1604337#M271288</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As already mentioned by others..you can use the FM FILE_GET_NAME or FILE_GET_NAME_USING_PATH. Also, you can define the logical to physical file map or name using the transaction FILE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, note that you can define parameters for FILE_GET_NAME and use them for you filename.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Being specific to your case where you want the file name to be &lt;BR /&gt;&amp;lt;system&amp;gt;\hello.txt&lt;/P&gt;&lt;P&gt;Using FILE define the physical path as the above "\&amp;lt;sysid&amp;gt;\" and use the FILE_GET_NAME_USING_PATH and pass the filename as "hello.txt" and logical path as defined during FILE transaction....the outcome would be as your requirement.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 27 Sep 2006 08:43:27 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-09-27T08:43:27Z</dc:date>
    <item>
      <title>LOGICAL FILENAME / TCODE FILE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/logical-filename-tcode-file/m-p/1604332#M271283</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In a selection screen I have put a parameters called p_log type fileintern. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'd like to read this file, is there any function module that would help me to do this or should I use open dataset....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what if the name look like this &lt;BR /&gt;&amp;lt;system&amp;gt;\hello.txt&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks 4 the help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Sep 2006 05:38:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/logical-filename-tcode-file/m-p/1604332#M271283</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-27T05:38:27Z</dc:date>
    </item>
    <item>
      <title>Re: LOGICAL FILENAME / TCODE FILE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/logical-filename-tcode-file/m-p/1604333#M271284</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 you looking a FM to get the physical file name for a logical file then use the FM FILE_NAME_GET..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  If you want to get the file value..Check this code..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: v_buffer(2047) TYPE c.&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF i_buffer OCCURS 0,&lt;/P&gt;&lt;P&gt;       line(2047) TYPE c,&lt;/P&gt;&lt;P&gt;      END OF i_buffer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Open the unix file..&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;OPEN DATASET p_unix FOR INPUT IN TEXT MODE.&lt;/P&gt;&lt;P&gt;IF sy-subrc NE 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CLEAR: v_buffer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    READ DATASET p_unix INTO v_buffer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    IF sy-subrc NE 0.&lt;/P&gt;&lt;P&gt;      EXIT.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    MOVE v_buffer TO i_buffer.&lt;/P&gt;&lt;P&gt;    APPEND i_buffer.&lt;/P&gt;&lt;P&gt;  ENDDO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Sep 2006 05:43:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/logical-filename-tcode-file/m-p/1604333#M271284</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-27T05:43:34Z</dc:date>
    </item>
    <item>
      <title>Re: LOGICAL FILENAME / TCODE FILE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/logical-filename-tcode-file/m-p/1604334#M271285</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;1. look at FM &amp;lt;b&amp;gt;'FILE_GET_NAME_USING_PATH'&amp;lt;/b&amp;gt; to convert the logical file path into physical file (full path)&lt;/P&gt;&lt;P&gt;2. look at FM &amp;lt;b&amp;gt;'FILE_GET_NAME'&amp;lt;/b&amp;gt; that Assigns the Physical File Name Using a Logical File Name&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward if useful..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Sep 2006 05:43:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/logical-filename-tcode-file/m-p/1604334#M271285</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-27T05:43:50Z</dc:date>
    </item>
    <item>
      <title>Re: LOGICAL FILENAME / TCODE FILE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/logical-filename-tcode-file/m-p/1604335#M271286</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Stephan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have to use open data set only to read data from Application Server....... FILE_GET_NAME_USING_PATH not used for reading data, just useful when you maintian logical file name using FILE transaction to make file path operating system independent.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regarding,&lt;/P&gt;&lt;P&gt;Arun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Sep 2006 05:50:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/logical-filename-tcode-file/m-p/1604335#M271286</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-27T05:50:30Z</dc:date>
    </item>
    <item>
      <title>Re: LOGICAL FILENAME / TCODE FILE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/logical-filename-tcode-file/m-p/1604336#M271287</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use OPEN DATASET and READ DATASET.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Sep 2006 06:45:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/logical-filename-tcode-file/m-p/1604336#M271287</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-27T06:45:40Z</dc:date>
    </item>
    <item>
      <title>Re: LOGICAL FILENAME / TCODE FILE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/logical-filename-tcode-file/m-p/1604337#M271288</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As already mentioned by others..you can use the FM FILE_GET_NAME or FILE_GET_NAME_USING_PATH. Also, you can define the logical to physical file map or name using the transaction FILE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, note that you can define parameters for FILE_GET_NAME and use them for you filename.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Being specific to your case where you want the file name to be &lt;BR /&gt;&amp;lt;system&amp;gt;\hello.txt&lt;/P&gt;&lt;P&gt;Using FILE define the physical path as the above "\&amp;lt;sysid&amp;gt;\" and use the FILE_GET_NAME_USING_PATH and pass the filename as "hello.txt" and logical path as defined during FILE transaction....the outcome would be as your requirement.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Sep 2006 08:43:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/logical-filename-tcode-file/m-p/1604337#M271288</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-27T08:43:27Z</dc:date>
    </item>
  </channel>
</rss>

