<?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 Error in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-error/m-p/2952810#M696388</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi..&lt;/P&gt;&lt;P&gt;U can use the following piece of code..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;For checking it file exists:&amp;lt;/b&amp;gt;&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;P&gt;*&amp;amp;      Form  sub_validate_appl_file&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;         --&amp;gt;P_FILE     text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&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; This routine is used to check the file existence on application&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; server. First check is whether entered file is directory or not&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; and second check is for file&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM sub_validate_appl_file USING p_file TYPE string.&lt;/P&gt;&lt;P&gt;  DATA : tl_file_tbl TYPE STANDARD TABLE OF salfldir, "Files table&lt;/P&gt;&lt;P&gt;         wl_msg TYPE string.                          "Message&lt;/P&gt;&lt;P&gt;&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&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      file_tbl       = tl_file_tbl&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 = 0.&lt;/P&gt;&lt;P&gt;    DESCRIBE TABLE tl_file_tbl LINES sy-tfill.&lt;/P&gt;&lt;P&gt;    IF sy-tfill &amp;gt; 0.&lt;/P&gt;&lt;P&gt;*This is &amp;amp; directory and not a file&lt;/P&gt;&lt;P&gt;      MESSAGE e016(zcaxx) WITH p_file.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CATCH SYSTEM-EXCEPTIONS convt_codepage_init       = 2&lt;/P&gt;&lt;P&gt;                          convt_codepage            = 3&lt;/P&gt;&lt;P&gt;                          open_dataset_no_authority = 4&lt;/P&gt;&lt;P&gt;                          dataset_too_many_files    = 5&lt;/P&gt;&lt;P&gt;                          OTHERS                    = 6.&lt;/P&gt;&lt;P&gt;    OPEN DATASET p_file FOR INPUT IN BINARY MODE MESSAGE wl_msg.&lt;/P&gt;&lt;P&gt;  ENDCATCH.&lt;/P&gt;&lt;P&gt;  IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;*System message&lt;/P&gt;&lt;P&gt;    MESSAGE e000(zcaxx) WITH wl_msg p_file.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;  CLOSE DATASET p_file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  REFRESH : tl_file_tbl.&lt;/P&gt;&lt;P&gt;  FREE    : tl_file_tbl.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;For Fetching data:&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM sub_get_data_from_unix USING    pw_file  TYPE string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*--Work areas&lt;/P&gt;&lt;P&gt;  DATA : wal_data   TYPE type_all_data,  "For preparing structured data&lt;/P&gt;&lt;P&gt;         wl_seperator TYPE char1,     "For specifying the file seperator&lt;/P&gt;&lt;P&gt;         wal_data_fix TYPE type_data, "For processing fixed length file&lt;/P&gt;&lt;P&gt;         wl_string TYPE string.       "For processing appl. server file&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*--Field symbols&lt;/P&gt;&lt;P&gt;  FIELD-SYMBOLS : &amp;lt;l_pt_table&amp;gt; TYPE LINE OF tt_data_tab.&lt;/P&gt;&lt;P&gt;  "For processing fixed length file&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*--Initializing variables and work areas.&lt;/P&gt;&lt;P&gt;  CLEAR : wal_data,&lt;/P&gt;&lt;P&gt;          wal_data_fix,&lt;/P&gt;&lt;P&gt;          wl_string,&lt;/P&gt;&lt;P&gt;          wl_seperator,&lt;/P&gt;&lt;P&gt;          w_mesg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*--Reading file from application server&lt;/P&gt;&lt;P&gt;*--Open the server file&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CATCH SYSTEM-EXCEPTIONS convt_codepage_init       = 1&lt;/P&gt;&lt;P&gt;                          convt_codepage            = 2&lt;/P&gt;&lt;P&gt;                          open_dataset_no_authority = 3&lt;/P&gt;&lt;P&gt;                          open_pipe_no_authority    = 4&lt;/P&gt;&lt;P&gt;                          dataset_too_many_files    = 5&lt;/P&gt;&lt;P&gt;                          OTHERS                    = 6.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    OPEN DATASET pw_file FOR INPUT IN TEXT MODE ENCODING DEFAULT&lt;/P&gt;&lt;P&gt;                                                 MESSAGE w_mesg.&lt;/P&gt;&lt;P&gt;*--If error on opening file give error message&lt;/P&gt;&lt;P&gt;    IF sy-subrc NE 0.&lt;/P&gt;&lt;P&gt;*--   Error message&lt;/P&gt;&lt;P&gt;      MESSAGE i019 WITH w_mesg.&lt;/P&gt;&lt;P&gt;      LEAVE LIST-PROCESSING.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;  ENDCATCH.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*--Read the data from file&lt;/P&gt;&lt;P&gt;  DO.&lt;/P&gt;&lt;P&gt;    READ DATASET pw_file INTO wl_string.&lt;/P&gt;&lt;P&gt;    IF sy-subrc NE 0.&lt;/P&gt;&lt;P&gt;      EXIT.                          "end of file. exit loop&lt;/P&gt;&lt;P&gt;    ELSE.&lt;/P&gt;&lt;P&gt;      APPEND wl_string TO t_data_table.&lt;/P&gt;&lt;P&gt;      CLEAR wl_string.&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;*--Close the server file&lt;/P&gt;&lt;P&gt;  CLOSE DATASET pw_file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Plz reward...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Himanshu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 12 Oct 2007 05:55:17 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-10-12T05:55:17Z</dc:date>
    <item>
      <title>OPEN DATASET Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-error/m-p/2952807#M696385</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi gurus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls help me to solve this problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    f_filename = '/usr/sap/DBI/INVD.txt'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    OPEN DATASET f_filename FOR OUTPUT IN TEXT MODE ENCODING DEFAULT&lt;/P&gt;&lt;P&gt;  MESSAGE mess.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Above statement sometime giving me an error saying 'No such a file or directory'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to handle this situation. I needs always  to create or overwrite the text file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Thanura&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Oct 2007 05:49:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-error/m-p/2952807#M696385</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-12T05:49:22Z</dc:date>
    </item>
    <item>
      <title>Re: OPEN DATASET Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-error/m-p/2952808#M696386</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;Make sure you have the given the correct filename with the exact case..As the filename is case sensitive&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check if the filename is there..in AL11&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check if you have authorization to read the file&lt;/P&gt;&lt;P&gt;&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>Fri, 12 Oct 2007 05:52:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-error/m-p/2952808#M696386</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-12T05:52:50Z</dc:date>
    </item>
    <item>
      <title>Re: OPEN DATASET Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-error/m-p/2952809#M696387</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;Try this code,&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
OPEN DATASET f_filename IN TEXT MODE FOR OUTPUT ENCODING DEFAULT&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Reward If Helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Oct 2007 05:53:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-error/m-p/2952809#M696387</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-12T05:53:55Z</dc:date>
    </item>
    <item>
      <title>Re: OPEN DATASET Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-error/m-p/2952810#M696388</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi..&lt;/P&gt;&lt;P&gt;U can use the following piece of code..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;For checking it file exists:&amp;lt;/b&amp;gt;&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;P&gt;*&amp;amp;      Form  sub_validate_appl_file&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;         --&amp;gt;P_FILE     text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&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; This routine is used to check the file existence on application&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; server. First check is whether entered file is directory or not&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; and second check is for file&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM sub_validate_appl_file USING p_file TYPE string.&lt;/P&gt;&lt;P&gt;  DATA : tl_file_tbl TYPE STANDARD TABLE OF salfldir, "Files table&lt;/P&gt;&lt;P&gt;         wl_msg TYPE string.                          "Message&lt;/P&gt;&lt;P&gt;&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&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      file_tbl       = tl_file_tbl&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 = 0.&lt;/P&gt;&lt;P&gt;    DESCRIBE TABLE tl_file_tbl LINES sy-tfill.&lt;/P&gt;&lt;P&gt;    IF sy-tfill &amp;gt; 0.&lt;/P&gt;&lt;P&gt;*This is &amp;amp; directory and not a file&lt;/P&gt;&lt;P&gt;      MESSAGE e016(zcaxx) WITH p_file.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CATCH SYSTEM-EXCEPTIONS convt_codepage_init       = 2&lt;/P&gt;&lt;P&gt;                          convt_codepage            = 3&lt;/P&gt;&lt;P&gt;                          open_dataset_no_authority = 4&lt;/P&gt;&lt;P&gt;                          dataset_too_many_files    = 5&lt;/P&gt;&lt;P&gt;                          OTHERS                    = 6.&lt;/P&gt;&lt;P&gt;    OPEN DATASET p_file FOR INPUT IN BINARY MODE MESSAGE wl_msg.&lt;/P&gt;&lt;P&gt;  ENDCATCH.&lt;/P&gt;&lt;P&gt;  IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;*System message&lt;/P&gt;&lt;P&gt;    MESSAGE e000(zcaxx) WITH wl_msg p_file.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;  CLOSE DATASET p_file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  REFRESH : tl_file_tbl.&lt;/P&gt;&lt;P&gt;  FREE    : tl_file_tbl.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;For Fetching data:&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM sub_get_data_from_unix USING    pw_file  TYPE string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*--Work areas&lt;/P&gt;&lt;P&gt;  DATA : wal_data   TYPE type_all_data,  "For preparing structured data&lt;/P&gt;&lt;P&gt;         wl_seperator TYPE char1,     "For specifying the file seperator&lt;/P&gt;&lt;P&gt;         wal_data_fix TYPE type_data, "For processing fixed length file&lt;/P&gt;&lt;P&gt;         wl_string TYPE string.       "For processing appl. server file&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*--Field symbols&lt;/P&gt;&lt;P&gt;  FIELD-SYMBOLS : &amp;lt;l_pt_table&amp;gt; TYPE LINE OF tt_data_tab.&lt;/P&gt;&lt;P&gt;  "For processing fixed length file&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*--Initializing variables and work areas.&lt;/P&gt;&lt;P&gt;  CLEAR : wal_data,&lt;/P&gt;&lt;P&gt;          wal_data_fix,&lt;/P&gt;&lt;P&gt;          wl_string,&lt;/P&gt;&lt;P&gt;          wl_seperator,&lt;/P&gt;&lt;P&gt;          w_mesg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*--Reading file from application server&lt;/P&gt;&lt;P&gt;*--Open the server file&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CATCH SYSTEM-EXCEPTIONS convt_codepage_init       = 1&lt;/P&gt;&lt;P&gt;                          convt_codepage            = 2&lt;/P&gt;&lt;P&gt;                          open_dataset_no_authority = 3&lt;/P&gt;&lt;P&gt;                          open_pipe_no_authority    = 4&lt;/P&gt;&lt;P&gt;                          dataset_too_many_files    = 5&lt;/P&gt;&lt;P&gt;                          OTHERS                    = 6.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    OPEN DATASET pw_file FOR INPUT IN TEXT MODE ENCODING DEFAULT&lt;/P&gt;&lt;P&gt;                                                 MESSAGE w_mesg.&lt;/P&gt;&lt;P&gt;*--If error on opening file give error message&lt;/P&gt;&lt;P&gt;    IF sy-subrc NE 0.&lt;/P&gt;&lt;P&gt;*--   Error message&lt;/P&gt;&lt;P&gt;      MESSAGE i019 WITH w_mesg.&lt;/P&gt;&lt;P&gt;      LEAVE LIST-PROCESSING.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;  ENDCATCH.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*--Read the data from file&lt;/P&gt;&lt;P&gt;  DO.&lt;/P&gt;&lt;P&gt;    READ DATASET pw_file INTO wl_string.&lt;/P&gt;&lt;P&gt;    IF sy-subrc NE 0.&lt;/P&gt;&lt;P&gt;      EXIT.                          "end of file. exit loop&lt;/P&gt;&lt;P&gt;    ELSE.&lt;/P&gt;&lt;P&gt;      APPEND wl_string TO t_data_table.&lt;/P&gt;&lt;P&gt;      CLEAR wl_string.&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;*--Close the server file&lt;/P&gt;&lt;P&gt;  CLOSE DATASET pw_file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Plz reward...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Himanshu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Oct 2007 05:55:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-error/m-p/2952810#M696388</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-12T05:55:17Z</dc:date>
    </item>
    <item>
      <title>Re: OPEN DATASET Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-error/m-p/2952811#M696389</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi thanura,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here path of the file name should be CASE SENSITIVE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;make sure that you have given the file name in right case(Upper/Lower case including Extention of the file name).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chandra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Oct 2007 05:57:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-error/m-p/2952811#M696389</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-12T05:57:13Z</dc:date>
    </item>
    <item>
      <title>Re: OPEN DATASET Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-error/m-p/2952812#M696390</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Above statement does not care if the file is in existance or ot. If it is, it is deleted recreated it it is not, it is created.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So it must be an error in the directory structure. Or the file might be locked by another process.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Oct 2007 05:58:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-error/m-p/2952812#M696390</guid>
      <dc:creator>rainer_hbenthal</dc:creator>
      <dc:date>2007-10-12T05:58:20Z</dc:date>
    </item>
    <item>
      <title>Re: OPEN DATASET Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-error/m-p/2952813#M696391</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;good&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check your given path for f_filename and go through this code and use accordingly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA FNAME(60).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FNAME = '/tmp/myfile'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OPEN DATASET 'myfile'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OPEN DATASET FNAME.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This example works as long as your R/3 System is running under UNIX. The program opens the file "myfile" in the directory in which the R/3 System is running, and also opens the file "myfile" in directory "/tmp". However, you would have to change the filename for other operating systems. For example, for OpenVMS, you could write the following: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FNAME = '[TMP]myfile.BIN'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OPEN DATASET 'myfile.BIN'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward point if helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;mrutyun^&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Oct 2007 06:00:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-error/m-p/2952813#M696391</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-12T06:00:29Z</dc:date>
    </item>
    <item>
      <title>Re: OPEN DATASET Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-error/m-p/2952814#M696392</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 it is locked, How to check and how to release, or how to handle the situation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Thanura&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Oct 2007 06:01:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-error/m-p/2952814#M696392</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-12T06:01:02Z</dc:date>
    </item>
    <item>
      <title>Re: OPEN DATASET Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-error/m-p/2952815#M696393</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 using AS/400. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to use the file path in AS400.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Thanura&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Oct 2007 06:02:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-error/m-p/2952815#M696393</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-12T06:02:37Z</dc:date>
    </item>
  </channel>
</rss>

