<?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: How to remove dump when using Open Data set, i get dump in Read data set in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-remove-dump-when-using-open-data-set-i-get-dump-in-read-data-set/m-p/6908991#M1482578</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you show us the declaration of the internal table rec? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vikranth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 11 May 2010 07:52:34 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-05-11T07:52:34Z</dc:date>
    <item>
      <title>How to remove dump when using Open Data set, i get dump in Read data set</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-remove-dump-when-using-open-data-set-i-get-dump-in-read-data-set/m-p/6908990#M1482577</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;I have a problem regarding OPEN DATA SET.....when user provide blank file....it produce shot dump.....the code i written is given below....file name is blank and path is '/data/intrface/send/'   &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OPEN DATASET p_file FOR INPUT IN TEXT MODE ENCODING UTF-8 IGNORING CONVERSION ERRORS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;    WRITE : /3 'Error opening file, check your file name'.&lt;/P&gt;&lt;P&gt;    STOP.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;  wc_flag = 'T'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DO.&lt;/P&gt;&lt;P&gt;    CLEAR rec.&lt;/P&gt;&lt;P&gt;    READ DATASET p_file INTO rec.&lt;/P&gt;&lt;P&gt;    IF wc_flag = 'T'.&lt;/P&gt;&lt;P&gt;      wc_rectype = rec(6).&lt;/P&gt;&lt;P&gt;      wc_flag = 'F'.      &lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and i get below Shot dump&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Runtime Error          DATASET_READ_ERROR&lt;/P&gt;&lt;P&gt;Exception              CX_SY_FILE_IO&lt;/P&gt;&lt;P&gt;       Occurred on     05/10/2010 at   14:41:10&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Error occurred while reading file "/data/intrface/send/"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-------------" /&gt;&lt;P&gt;What happened?&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The program "ZSDRB05" had to be terminated because a read error occurred&lt;/P&gt;&lt;P&gt;during data retrieval.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="---------------" /&gt;&lt;P&gt;What can you do?&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="---------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Print out the error message (using the "Print" function)&lt;/P&gt;&lt;P&gt;and make a note of the actions and input that caused the&lt;/P&gt;&lt;P&gt;error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To resolve the problem, contact your SAP system administrator.&lt;/P&gt;&lt;P&gt;You can use transaction ST22 (ABAP Dump Analysis) to view and administer&lt;/P&gt;&lt;P&gt; termination messages, especially those beyond their normal deletion&lt;/P&gt;&lt;P&gt;date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-------------" /&gt;&lt;P&gt;Error analysis&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;An exception occurred. This exception will be dealt with in more detail&lt;/P&gt;&lt;P&gt;below. The exception, assigned to the class 'CX_SY_FILE_IO', was not caught,&lt;/P&gt;&lt;P&gt; which&lt;/P&gt;&lt;P&gt; led to a runtime error. The reason for this exception is:&lt;/P&gt;&lt;P&gt;An error occurred while reading file "/data/intrface/send/".&lt;/P&gt;&lt;P&gt;Error text: "Is a directory"&lt;/P&gt;&lt;P&gt;Error code: 21&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="------------------" /&gt;&lt;P&gt;Source code extract&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;000960   CLEAR jtab_srepsn_outrec.&lt;/P&gt;&lt;P&gt;000970   REFRESH jtab_srepsn_outrec.&lt;/P&gt;&lt;P&gt;000980   CLEAR jtab_srepse_outrec.&lt;/P&gt;&lt;P&gt;000990   REFRESH jtab_srepse_outrec.&lt;/P&gt;&lt;P&gt;001000&lt;/P&gt;&lt;P&gt;001010   * D47K9A08E2 +&lt;/P&gt;&lt;P&gt;001020   *AT SELECTION-SCREEN ON so_sernr.&lt;/P&gt;&lt;P&gt;001030   *  IF NOT so_sernr IS INITIAL .&lt;/P&gt;&lt;P&gt;001040   *    PERFORM validate_serial_number.&lt;/P&gt;&lt;P&gt;001050   *  ENDIF.&lt;/P&gt;&lt;P&gt;001060&lt;/P&gt;&lt;P&gt;001070   *AT SELECTION-SCREEN ON BLOCK b8. "OUTPUT.&lt;/P&gt;&lt;P&gt;001080   *  PERFORM modify_screen.&lt;/P&gt;&lt;P&gt;001090   * D47K9A08E2 +&lt;/P&gt;&lt;P&gt;001100&lt;/P&gt;&lt;P&gt;001110   START-OF-SELECTION.                                      " D47K9A08E2 +&lt;/P&gt;&lt;P&gt;001120&lt;/P&gt;&lt;P&gt;001130   **start Prashanth&lt;/P&gt;&lt;P&gt;001140   *OPEN DATASET p_file IN TEXT MODE.&lt;/P&gt;&lt;P&gt;001150     OPEN DATASET p_file FOR INPUT IN TEXT MODE ENCODING UTF-8 IGNORING CON&lt;/P&gt;&lt;P&gt;001160   **end Prashanth&lt;/P&gt;&lt;P&gt;001170   *--- Start Mod # 0001&lt;/P&gt;&lt;P&gt;001180     IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;001190       WRITE :/3 'Error opening file, check your file name'.&lt;/P&gt;&lt;P&gt;001200       STOP.&lt;/P&gt;&lt;P&gt;001210     ENDIF.&lt;/P&gt;&lt;P&gt;001220     wc_flag = 'T'.&lt;/P&gt;&lt;P&gt;001230   *--- End Mod # 0001&lt;/P&gt;&lt;P&gt;001240     DO.&lt;/P&gt;&lt;P&gt;001250       CLEAR rec.&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="----" /&gt;&lt;P&gt;&amp;gt;       READ DATASET p_file INTO rec.&lt;/P&gt;&lt;P&gt;001270       IF wc_flag = 'T'.&lt;/P&gt;&lt;P&gt;001280         wc_rectype = rec(6).&lt;/P&gt;&lt;P&gt;001290         wc_flag = 'F'.                                        "add - 0001&lt;/P&gt;&lt;P&gt;001300       ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please resolve the problem&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 May 2010 07:38:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-remove-dump-when-using-open-data-set-i-get-dump-in-read-data-set/m-p/6908990#M1482577</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-11T07:38:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove dump when using Open Data set, i get dump in Read data set</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-remove-dump-when-using-open-data-set-i-get-dump-in-read-data-set/m-p/6908991#M1482578</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you show us the declaration of the internal table rec? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vikranth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 May 2010 07:52:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-remove-dump-when-using-open-data-set-i-get-dump-in-read-data-set/m-p/6908991#M1482578</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-11T07:52:34Z</dc:date>
    </item>
  </channel>
</rss>

