<?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: Open dataset not working in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-not-working/m-p/2932779#M691049</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;What exactly is your requirement. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;Abhishek&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Abhishek Jolly&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 14 Oct 2007 17:07:35 GMT</pubDate>
    <dc:creator>former_member195698</dc:creator>
    <dc:date>2007-10-14T17:07:35Z</dc:date>
    <item>
      <title>Open dataset not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-not-working/m-p/2932778#M691048</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guru's&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am reading from the UNIX application server.&lt;/P&gt;&lt;P&gt;Even if I dont give the file name.Sy-subrc remains zero after open dataset.&lt;/P&gt;&lt;P&gt;I am giving this file path in initialization '/devabap/if/hcm/out/'&lt;/P&gt;&lt;P&gt;but after that i am not giving any file name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OPEN DATASET p_infile FOR INPUT IN TEXT MODE ENCODING DEFAULT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    DO.&lt;/P&gt;&lt;P&gt;      READ DATASET p_infile INTO wa_file.&lt;/P&gt;&lt;P&gt;      IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;        APPEND wa_file TO t_file.&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;&lt;/P&gt;&lt;P&gt;    ENDDO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ELSE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    MESSAGE i030 WITH p_infile.&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;  CLOSE DATASET p_infile.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 14 Oct 2007 15:25:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-not-working/m-p/2932778#M691048</guid>
      <dc:creator>manubhutani</dc:creator>
      <dc:date>2007-10-14T15:25:46Z</dc:date>
    </item>
    <item>
      <title>Re: Open dataset not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-not-working/m-p/2932779#M691049</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;What exactly is your requirement. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;Abhishek&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Abhishek Jolly&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 14 Oct 2007 17:07:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-not-working/m-p/2932779#M691049</guid>
      <dc:creator>former_member195698</dc:creator>
      <dc:date>2007-10-14T17:07:35Z</dc:date>
    </item>
    <item>
      <title>Re: Open dataset not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-not-working/m-p/2932780#M691050</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 am reading a file from UNIX app server.&lt;/P&gt;&lt;P&gt;Even if i dont gve filename on sel screen.&lt;/P&gt;&lt;P&gt;after open dataset sy-subrc returns 0&lt;/P&gt;&lt;P&gt;i dont know y its returnig it and from where its reading the garbage values&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 14 Oct 2007 17:22:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-not-working/m-p/2932780#M691050</guid>
      <dc:creator>manubhutani</dc:creator>
      <dc:date>2007-10-14T17:22:49Z</dc:date>
    </item>
    <item>
      <title>Re: Open dataset not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-not-working/m-p/2932781#M691051</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My assumption would be - it reads dierctory as File,so whatever under directory ,it shows data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;open dataset will give sy-subrc eq 0 ,if file opens ,so here directory becomes file and it is opening.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Seshu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 14 Oct 2007 17:53:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-not-working/m-p/2932781#M691051</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-14T17:53:51Z</dc:date>
    </item>
    <item>
      <title>Re: Open dataset not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-not-working/m-p/2932782#M691052</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;are you able to see this file in AL11..if no then path may be incorrect..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Oct 2007 06:14:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-not-working/m-p/2932782#M691052</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-15T06:14:08Z</dc:date>
    </item>
    <item>
      <title>Re: Open dataset not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-not-working/m-p/2932783#M691053</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Manu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;             What might be happening is the path which u r giving......&amp;lt;b&amp;gt;at that path a dir mite be existing...&amp;lt;/b&amp;gt;So u can use 2 separate FM to identify this.... &amp;lt;b&amp;gt;&amp;lt;i&amp;gt;Use the following piece of code&amp;lt;/b&amp;gt;&amp;lt;/i&amp;gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Form  sub_file_presence_check&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       Checking the existence of the file on application server&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM sub_file_presence_check .&lt;/P&gt;&lt;P&gt;*--Local data declaration&lt;/P&gt;&lt;P&gt;  DATA : tl_file TYPE STANDARD TABLE OF spflist."returned table by FM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF NOT p_file IS INITIAL.&lt;/P&gt;&lt;P&gt;*--Check to see if it is a directory or file and make sure it is a file&lt;/P&gt;&lt;P&gt;    CALL FUNCTION 'RZL_READ_DIR'&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        name           = p_file  "file name to be verified&lt;/P&gt;&lt;P&gt;      TABLES&lt;/P&gt;&lt;P&gt;        file_tbl       = tl_file  "returned table by FM&lt;/P&gt;&lt;P&gt;      EXCEPTIONS&lt;/P&gt;&lt;P&gt;        argument_error = 1&lt;/P&gt;&lt;P&gt;        not_found      = 2&lt;/P&gt;&lt;P&gt;        send_error     = 3&lt;/P&gt;&lt;P&gt;        system_failure = 4&lt;/P&gt;&lt;P&gt;        OTHERS         = 5.&lt;/P&gt;&lt;P&gt;*--If file does not exist&lt;/P&gt;&lt;P&gt;    IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;*--This is a directory&lt;/P&gt;&lt;P&gt;      MESSAGE e000 WITH text-005.&lt;/P&gt;&lt;P&gt;    ELSEIF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;*--Check for file name&lt;/P&gt;&lt;P&gt;      CALL FUNCTION 'RZL_READ_FILE'&lt;/P&gt;&lt;P&gt;        EXPORTING&lt;/P&gt;&lt;P&gt;          name           = p_file  "file name to be verified&lt;/P&gt;&lt;P&gt;        TABLES&lt;/P&gt;&lt;P&gt;          line_tbl       = tl_file "returned table by FM&lt;/P&gt;&lt;P&gt;        EXCEPTIONS&lt;/P&gt;&lt;P&gt;          argument_error = 1&lt;/P&gt;&lt;P&gt;          not_found      = 2&lt;/P&gt;&lt;P&gt;          send_error     = 3&lt;/P&gt;&lt;P&gt;          system_failure = 4&lt;/P&gt;&lt;P&gt;          OTHERS         = 5.&lt;/P&gt;&lt;P&gt;      IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;        MESSAGE e000 WITH text-006."'No such file exists'.&lt;/P&gt;&lt;P&gt;      ENDIF.&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;  ELSE.  "of if p_file is not initial&lt;/P&gt;&lt;P&gt;*--Please enter a file name&lt;/P&gt;&lt;P&gt;    MESSAGE e000 WITH text-007.&lt;/P&gt;&lt;P&gt;  ENDIF. ""of if p_file is not initial&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.                    " sub_file_presence_check&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Oct 2007 09:51:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-not-working/m-p/2932783#M691053</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-15T09:51:02Z</dc:date>
    </item>
    <item>
      <title>Re: Open dataset not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-not-working/m-p/2932784#M691054</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Plz reward&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Oct 2007 09:53:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-not-working/m-p/2932784#M691054</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-15T09:53:37Z</dc:date>
    </item>
  </channel>
</rss>

