<?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: READ DATASET in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-dataset/m-p/5957317#M1337098</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 think problem lies in definition &lt;STRONG&gt;data l_item(100) type c.&lt;/STRONG&gt; .&lt;/P&gt;&lt;P&gt;This way you will read 100 char per each loop, and you want to read only 100 records. In case line is wider you will read it in couple steps (not one loop iteration). Give type &lt;EM&gt;char255&lt;/EM&gt; . &lt;/P&gt;&lt;P&gt;Also check is this read string contains CL_ABAP_CHAR_UTILITIES=&amp;gt;CR_LF, so you know where the line ends and then append it to your table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Marcin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 04 Aug 2009 14:08:44 GMT</pubDate>
    <dc:creator>MarcinPciak</dc:creator>
    <dc:date>2009-08-04T14:08:44Z</dc:date>
    <item>
      <title>READ DATASET</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-dataset/m-p/5957313#M1337094</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'm getting problem in reading only 100 records from the application server using the READ DATASET statement. The file on the application server may have 8000 records but i wanted to get only 100 records and process them. Then i wanted to get  next 100 records from the file stored on app.server and process and so on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After I get the 100 records, I wanted to do further operations such as putting them into a custom table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Will the below code work?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA l_item(100) type c.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;*Open the .DAT file for reading
  OPEN DATASET p_file1 FOR INPUT IN TEXT MODE ENCODING UTF-8 MESSAGE
  x_error.

  IF sy-subrc NE 0.
*An error occured during opening the dataset !
    MESSAGE x_error TYPE 'E'.
    CLEAR x_error.
  ENDIF.

  DO.
*Read the .DAT file into an internal table
    READ DATASET p_file1 INTO l_item.

    IF sy-subrc EQ 0.
*split the records into data fields based on delimiter ','
*then append the current record to an internal table
      SPLIT l_item AT ',' INTO
                               x_item-inv_item_id
                               x_item-intl_aa_nbr
                               x_item-intl_pba_nbr
                               x_item-intl_ta_nbr
                               x_item-intl_product_code
                               x_item-descr254
                               x_item-intl_stck_id
                               x_item-awr_disallowed_flg
                               x_item-returnable_flg
                               x_item-fulfillment_flg
                               x_item-refund_only_flg
                               x_item-prod_returnable_flg
                               x_item-stock_cat_id.

      APPEND x_item TO i_item.
      CLEAR x_item.
      
    ELSE.
*Data was read and the end of the file was reached
      MESSAGE i006.
      EXIT.
    ENDIF.
  ENDDO.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Aug 2009 13:57:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-dataset/m-p/5957313#M1337094</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-04T13:57:35Z</dc:date>
    </item>
    <item>
      <title>Re: READ DATASET</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-dataset/m-p/5957314#M1337095</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OPEN DATASET p_file1 FOR INPUT IN TEXT MODE ENCODING UTF-8 MESSAGE&lt;/P&gt;&lt;P&gt;  x_error.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  IF sy-subrc NE 0.&lt;/P&gt;&lt;P&gt;*An error occured during opening the dataset !&lt;/P&gt;&lt;P&gt;    MESSAGE x_error TYPE 'E'.&lt;/P&gt;&lt;P&gt;    CLEAR x_error.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt; DO. &amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&lt;/P&gt;&lt;P&gt;  DO 100 times.&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&lt;/P&gt;&lt;P&gt;*Read the .DAT file into an internal table&lt;/P&gt;&lt;P&gt;    READ DATASET p_file1 INTO l_item.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;    IF sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;*split the records into data fields based on delimiter ','&lt;/P&gt;&lt;P&gt;*then append the current record to an internal table&lt;/P&gt;&lt;P&gt;      SPLIT l_item AT ',' INTO&lt;/P&gt;&lt;P&gt;                               x_item-inv_item_id&lt;/P&gt;&lt;P&gt;                               x_item-intl_aa_nbr&lt;/P&gt;&lt;P&gt;                               x_item-intl_pba_nbr&lt;/P&gt;&lt;P&gt;                               x_item-intl_ta_nbr&lt;/P&gt;&lt;P&gt;                               x_item-intl_product_code&lt;/P&gt;&lt;P&gt;                               x_item-descr254&lt;/P&gt;&lt;P&gt;                               x_item-intl_stck_id&lt;/P&gt;&lt;P&gt;                               x_item-awr_disallowed_flg&lt;/P&gt;&lt;P&gt;                               x_item-returnable_flg&lt;/P&gt;&lt;P&gt;                               x_item-fulfillment_flg&lt;/P&gt;&lt;P&gt;                               x_item-refund_only_flg&lt;/P&gt;&lt;P&gt;                               x_item-prod_returnable_flg&lt;/P&gt;&lt;P&gt;                               x_item-stock_cat_id.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;      APPEND x_item TO i_item.&lt;/P&gt;&lt;P&gt;      CLEAR x_item.&lt;/P&gt;&lt;P&gt;      &lt;/P&gt;&lt;P&gt;    ELSE.&lt;/P&gt;&lt;P&gt;*Data was read and the end of the file was reached&lt;/P&gt;&lt;P&gt;      MESSAGE i006.&lt;/P&gt;&lt;P&gt;      EXIT.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;  ENDDO.&lt;/P&gt;&lt;P&gt;ENDDO.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Aug 2009 14:00:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-dataset/m-p/5957314#M1337095</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-04T14:00:43Z</dc:date>
    </item>
    <item>
      <title>Re: READ DATASET</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-dataset/m-p/5957315#M1337096</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;Use DO 100 times. before using  READ DATASET p_file1 INTO l_item. such that reading will stop after 100 lines are reached and continue with updation of the custom table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Aug 2009 14:04:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-dataset/m-p/5957315#M1337096</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-04T14:04:28Z</dc:date>
    </item>
    <item>
      <title>Re: READ DATASET</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-dataset/m-p/5957316#M1337097</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI SHAMIM,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code that you have give will work fine, but for all the records. It does not handle the condition where in after 100 records you'll process them. You may either refer to the code in the previous post or set a counter to check the record number after reaching the count of 100 process the records accordingly and reset the counter back to 1 for the next set of records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sachin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Aug 2009 14:07:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-dataset/m-p/5957316#M1337097</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-04T14:07:03Z</dc:date>
    </item>
    <item>
      <title>Re: READ DATASET</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-dataset/m-p/5957317#M1337098</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 think problem lies in definition &lt;STRONG&gt;data l_item(100) type c.&lt;/STRONG&gt; .&lt;/P&gt;&lt;P&gt;This way you will read 100 char per each loop, and you want to read only 100 records. In case line is wider you will read it in couple steps (not one loop iteration). Give type &lt;EM&gt;char255&lt;/EM&gt; . &lt;/P&gt;&lt;P&gt;Also check is this read string contains CL_ABAP_CHAR_UTILITIES=&amp;gt;CR_LF, so you know where the line ends and then append it to your table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Marcin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Aug 2009 14:08:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-dataset/m-p/5957317#M1337098</guid>
      <dc:creator>MarcinPciak</dc:creator>
      <dc:date>2009-08-04T14:08:44Z</dc:date>
    </item>
    <item>
      <title>Re: READ DATASET</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-dataset/m-p/5957318#M1337099</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;PRE&gt;&lt;CODE&gt;
DATA l_item(100) type c.
data: lv_times type i.
*Open the .DAT file for reading
  OPEN DATASET p_file1 FOR INPUT IN TEXT MODE ENCODING UTF-8 MESSAGE
  x_error.
  IF sy-subrc NE 0.
*An error occured during opening the dataset !
    MESSAGE x_error TYPE 'E'.
    CLEAR x_error.
  ENDIF.
  DO.
*Read the .DAT file into an internal table
    READ DATASET p_file1 INTO l_item.
    IF sy-subrc EQ 0.
*split the records into data fields based on delimiter ','
*then append the current record to an internal table
      SPLIT l_item AT ',' INTO
                               x_item-inv_item_id
                               x_item-intl_aa_nbr
                               x_item-intl_pba_nbr
                               x_item-intl_ta_nbr
                               x_item-intl_product_code
                               x_item-descr254
                               x_item-intl_stck_id
                               x_item-awr_disallowed_flg
                               x_item-returnable_flg
                               x_item-fulfillment_flg
                               x_item-refund_only_flg
                               x_item-prod_returnable_flg
                               x_item-stock_cat_id.
      APPEND x_item TO i_item.
      CLEAR x_item.
      lv_times = lv_times + 1.
     if lv_times = 100.
       Process records here.
     clear x_items.
   refresh x_items.
    endif.
    ELSE.
*Data was read and the end of the file was reached
      MESSAGE i006.
      EXIT.
    ENDIF.
  ENDDO.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Aug 2009 14:09:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-dataset/m-p/5957318#M1337099</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-04T14:09:25Z</dc:date>
    </item>
    <item>
      <title>Re: READ DATASET</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-dataset/m-p/5957319#M1337100</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 want to process every 100 records once,  you can in ways.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.   &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DO.&lt;/P&gt;&lt;P&gt;*Read the .DAT file into an internal table&lt;/P&gt;&lt;P&gt;    READ DATASET p_file1 INTO l_item.&lt;/P&gt;&lt;P&gt;    IF sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;*split the records into data fields based on delimiter ','&lt;/P&gt;&lt;P&gt;*then append the current record to an internal table&lt;/P&gt;&lt;P&gt;      SPLIT l_item AT ',' INTO&lt;/P&gt;&lt;P&gt;                               x_item-inv_item_id&lt;/P&gt;&lt;P&gt;                               x_item-intl_aa_nbr&lt;/P&gt;&lt;P&gt;                               x_item-intl_pba_nbr&lt;/P&gt;&lt;P&gt;                               x_item-intl_ta_nbr&lt;/P&gt;&lt;P&gt;                               x_item-intl_product_code&lt;/P&gt;&lt;P&gt;                               x_item-descr254&lt;/P&gt;&lt;P&gt;                               x_item-intl_stck_id&lt;/P&gt;&lt;P&gt;                               x_item-awr_disallowed_flg&lt;/P&gt;&lt;P&gt;                               x_item-returnable_flg&lt;/P&gt;&lt;P&gt;                               x_item-fulfillment_flg&lt;/P&gt;&lt;P&gt;                               x_item-refund_only_flg&lt;/P&gt;&lt;P&gt;                               x_item-prod_returnable_flg&lt;/P&gt;&lt;P&gt;                               x_item-stock_cat_id.&lt;/P&gt;&lt;P&gt;      APPEND x_item TO i_item.&lt;/P&gt;&lt;P&gt;      CLEAR x_item.&lt;/P&gt;&lt;P&gt;      lv_count = lv_count + 1.&lt;/P&gt;&lt;P&gt;     if lv_count = 100.&lt;/P&gt;&lt;P&gt;       perform process 100 records.&lt;/P&gt;&lt;P&gt;        clear: lv_count, x_items.&lt;/P&gt;&lt;P&gt;        refresh x_items.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;    ELSE.&lt;/P&gt;&lt;P&gt;*Data was read and the end of the file was reached&lt;/P&gt;&lt;P&gt;      MESSAGE i006.&lt;/P&gt;&lt;P&gt;      EXIT.&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;&lt;/P&gt;&lt;P&gt;2.   Download all records into an internal table once.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then loop internaltable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: lv_count type i,&lt;/P&gt;&lt;P&gt;         lv_count1 type i,&lt;/P&gt;&lt;P&gt;         lv_previous type i.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;lv_count = lv_count  + 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;lv_count1 = lv_count1 + 1.&lt;/P&gt;&lt;P&gt;if lv_count1 &amp;lt; = 100.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;copy 100 records into another internal table2.&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;     lv_previous = lv_count - lv_previous.&lt;/P&gt;&lt;P&gt;   &lt;/P&gt;&lt;P&gt;if lv_previous = 100.&lt;/P&gt;&lt;P&gt;    process records.&lt;/P&gt;&lt;P&gt;   clear: lv_count1,  internal table2.&lt;/P&gt;&lt;P&gt;   refresh internal table2 &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;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ganesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Aug 2009 14:47:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-dataset/m-p/5957319#M1337100</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-04T14:47:15Z</dc:date>
    </item>
    <item>
      <title>Re: READ DATASET</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-dataset/m-p/5957320#M1337101</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN __default_attr="blue" __jive_macro_name="color"&gt;Hi Shamim,
Try this way.&lt;PRE&gt;&lt;CODE&gt;
data: count type p.                                             "New changes      
*Open the .DAT file for reading
  OPEN DATASET p_file1 FOR INPUT IN TEXT MODE ENCODING UTF-8 MESSAGE x_error.
  IF sy-subrc NE 0.
*   An error occured during opening the dataset !
    MESSAGE x_error TYPE 'E'.
    CLEAR x_error.
  ENDIF.
  DO.
*   Read the .DAT file into an internal table
    count = sy-index div 100.                                   "New changes
    READ DATASET p_file1 INTO l_item.
    IF sy-subrc EQ 0.
*     split the records into data fields based on delimiter ','
*     then append the current record to an internal table
      CASE count.                                               "New changes
       WHEN 1.                                                  "New changes
        SPLIT l_item AT ',' INTO
                               x_item-inv_item_id
                               x_item-intl_aa_nbr
                               x_item-intl_pba_nbr
                               x_item-intl_ta_nbr
                               x_item-intl_product_code
                               x_item-descr254
                               x_item-intl_stck_id
                               x_item-awr_disallowed_flg
                               x_item-returnable_flg
                               x_item-fulfillment_flg
                               x_item-refund_only_flg
                               x_item-prod_returnable_flg
                               x_item-stock_cat_id.
        APPEND x_item TO i_item.
        CLEAR x_item.
       WHEN 2.                                                 "New changes
       WHEN 3.                                                 "New changes
       WHEN 4.                                                 "New changes
       WHEN 5.                                                 "New changes
       WHEN 6.                                                 "New changes
       WHEN others.                                            "New changes
      ENDCASE.                                                 "New changes
    ELSE.
*     Data was read and the end of the file was reached
      MESSAGE i006.
      EXIT.
    ENDIF.
  ENDDO.
&lt;/CODE&gt;&lt;/PRE&gt;Thanks,
Venkat.O&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Aug 2009 14:50:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-dataset/m-p/5957320#M1337101</guid>
      <dc:creator>venkat_o</dc:creator>
      <dc:date>2009-08-04T14:50:54Z</dc:date>
    </item>
    <item>
      <title>Re: READ DATASET</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-dataset/m-p/5957321#M1337102</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks everybody,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i've used all your suggestions especially the counter method...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i'm increating counter every time inside the loop and when it reaches 100, taking all records into an internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;shamim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 08 Aug 2009 09:45:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-dataset/m-p/5957321#M1337102</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-08T09:45:29Z</dc:date>
    </item>
  </channel>
</rss>

