<?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: Opening a file in Application Server in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/opening-a-file-in-application-server/m-p/4784796#M1120763</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;   Use the function module open_dataset and pass the parameter using abc.txt and check it out&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Thiru.r&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 24 Nov 2008 06:09:54 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-11-24T06:09:54Z</dc:date>
    <item>
      <title>Opening a file in Application Server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/opening-a-file-in-application-server/m-p/4784794#M1120761</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Friends, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a file 'abc' in application server, and i don't know the extension of it . while trying to open it using OPEN DATASET   statement, it fails because of no extension. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried using 'abc.*'  in the open dataset   statement but it doesnt work....so is there any function module or is there any other way to open and read it.........&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Nov 2008 05:57:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/opening-a-file-in-application-server/m-p/4784794#M1120761</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-24T05:57:18Z</dc:date>
    </item>
    <item>
      <title>Re: Opening a file in Application Server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/opening-a-file-in-application-server/m-p/4784795#M1120762</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shylaja,&lt;/P&gt;&lt;P&gt;could you able to open the file abc in application layer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Rasheed&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Nov 2008 06:04:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/opening-a-file-in-application-server/m-p/4784795#M1120762</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-24T06:04:26Z</dc:date>
    </item>
    <item>
      <title>Re: Opening a file in Application Server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/opening-a-file-in-application-server/m-p/4784796#M1120763</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;   Use the function module open_dataset and pass the parameter using abc.txt and check it out&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Thiru.r&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Nov 2008 06:09:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/opening-a-file-in-application-server/m-p/4784796#M1120763</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-24T06:09:54Z</dc:date>
    </item>
    <item>
      <title>Re: Opening a file in Application Server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/opening-a-file-in-application-server/m-p/4784797#M1120764</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; I have a file 'abc' in application server, and i don't know the extension of it . while trying to open it using OPEN DATASET   statement, it fails because of no extension. &lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Its totally wrong to say OPEN DATASET statement failed because of no extension of the file! Actually, the &lt;STRONG&gt;&lt;U&gt;ABAP run-time does not care whether the file has an extension or not&lt;/U&gt;&lt;/STRONG&gt;. In most cases, the app server (file system) datasets/files are stored without any extension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's how to approach your issue:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Read the Keyword Documentation of OPEN DATASET&lt;/P&gt;&lt;P&gt;2. Check the Sy-Subrc after OPEN DATASET statement and if its unequal to 0;&lt;/P&gt;&lt;P&gt;        a. Check the file name/path you are passing is correct&lt;/P&gt;&lt;P&gt;        b. Check you are using OPEN DATASET for &lt;U&gt;READ&lt;/U&gt; &lt;/P&gt;&lt;P&gt;        c. Depending you are in a Unicode/Non-Unicode system, check the file is not already open&lt;/P&gt;&lt;P&gt;        d. Make sure the file you are trying to open physically exists in the app server!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once you are able to OPEN the file then use READ DATASET command to read it.&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;Cheers,&lt;/P&gt;&lt;P&gt;Sougata.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Nov 2008 06:18:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/opening-a-file-in-application-server/m-p/4784797#M1120764</guid>
      <dc:creator>Sougata</dc:creator>
      <dc:date>2008-11-24T06:18:32Z</dc:date>
    </item>
  </channel>
</rss>

