<?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 resolve DATA_BUFFER_EXCEEDED exception in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-resolve-data-buffer-exceeded-exception/m-p/1785940#M338499</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Exactly.&lt;/P&gt;&lt;P&gt;Ignore my previous post:&lt;/P&gt;&lt;P&gt;structure DATA could not be different from TAB512, so parameter LINE_LENGTH will be always set to 512.&lt;/P&gt;&lt;P&gt;You can only move in two ways:&lt;/P&gt;&lt;P&gt;Do not fecth any data, but only table structure (NO_DATA = 'X').&lt;/P&gt;&lt;P&gt;Do not fetch all of table fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;R.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 13 Dec 2006 11:41:05 GMT</pubDate>
    <dc:creator>former_member199581</dc:creator>
    <dc:date>2006-12-13T11:41:05Z</dc:date>
    <item>
      <title>How to resolve DATA_BUFFER_EXCEEDED exception</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-resolve-data-buffer-exceeded-exception/m-p/1785935#M338494</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;When I am executing function module RFC_READ_TABLE by passing table name &lt;/P&gt;&lt;P&gt;(EX: EKPO or EKKO or LFA!) as a an argument for QUERY_TABLE, i am getting &lt;/P&gt;&lt;P&gt;DATA_BUFFER_EXCEEDED exception.&lt;/P&gt;&lt;P&gt;PLZ any one help me how to resolve this issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regds,&lt;/P&gt;&lt;P&gt;Ramesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Dec 2006 11:00:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-resolve-data-buffer-exceeded-exception/m-p/1785935#M338494</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-13T11:00:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to resolve DATA_BUFFER_EXCEEDED exception</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-resolve-data-buffer-exceeded-exception/m-p/1785936#M338495</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There are too many rows that are being fetched.&lt;/P&gt;&lt;P&gt;If you are looking at getting the PO details, why don't you try BAPI_PO_GETDETAIL rather than RFC_READ_TABLE.  You can use BAPI_PO_GET_LIST to get the list of PO's so that you dealing with limited data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is a limitation in terms of amount of data that can be processed, and that is what is happening in your case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;P&gt;Note - Please mark all the helpful answers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Dec 2006 11:04:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-resolve-data-buffer-exceeded-exception/m-p/1785936#M338495</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-13T11:04:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to resolve DATA_BUFFER_EXCEEDED exception</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-resolve-data-buffer-exceeded-exception/m-p/1785937#M338496</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use system command $Tab. This is to be done by basis ppl&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check with basis for more help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vivek&lt;/P&gt;&lt;P&gt;Reward if suggestion helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Dec 2006 11:04:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-resolve-data-buffer-exceeded-exception/m-p/1785937#M338496</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-13T11:04:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to resolve DATA_BUFFER_EXCEEDED exception</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-resolve-data-buffer-exceeded-exception/m-p/1785938#M338497</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The FM raises that exception here:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;LINE_CURSOR = LINE_CURSOR + TABLE_STRUCTURE-LENG.
  IF LINE_CURSOR &amp;gt; LINE_LENGTH AND NO_DATA EQ SPACE.
  RAISE DATA_BUFFER_EXCEEDED.
ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Line Length it's the length of the structure DATA that you pass to the FM by the TABLES parameter.&lt;/P&gt;&lt;P&gt;Line cursor it's computed in two steps: first, it contains the length of the parameter DELIMITER. Then, it's value it's added to the length of the table structure you want to read.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The exception raises up when line cursor it's bigger than line length.&lt;/P&gt;&lt;P&gt;So, if you expand the structure DATA you should not raise any exception.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try the Test Environment for this FM.&lt;/P&gt;&lt;P&gt;Insert table EKPO as query_table.&lt;/P&gt;&lt;P&gt;Enter in debug mode, then modify the variable LINE_LENGTH from 512 to an higher value. I've tried with 2000. &lt;/P&gt;&lt;P&gt;&amp;lt;i&amp;gt;Rembember that LINE_LENGTH it's computed like this:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;ASSIGN COMPONENT 0  OF STRUCTURE DATA TO &amp;lt;D&amp;gt;.
DESCRIBE FIELD &amp;lt;D&amp;gt; LENGTH line_length.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;In your program, you can simply pass a longer DATA parameter.&amp;lt;/i&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Otherwise, if you only need to fetch the structure of query_table and not the data, you should set parameter NO_DATA to 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You should not get any exception.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Roberto.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Roberto Pagni&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Roberto Pagni&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Dec 2006 11:07:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-resolve-data-buffer-exceeded-exception/m-p/1785938#M338497</guid>
      <dc:creator>former_member199581</dc:creator>
      <dc:date>2006-12-13T11:07:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to resolve DATA_BUFFER_EXCEEDED exception</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-resolve-data-buffer-exceeded-exception/m-p/1785939#M338498</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;its not the number of records, its the length of a record which will create this problem. try to fetch only the fields you require.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Raja&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Dec 2006 11:30:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-resolve-data-buffer-exceeded-exception/m-p/1785939#M338498</guid>
      <dc:creator>athavanraja</dc:creator>
      <dc:date>2006-12-13T11:30:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to resolve DATA_BUFFER_EXCEEDED exception</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-resolve-data-buffer-exceeded-exception/m-p/1785940#M338499</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Exactly.&lt;/P&gt;&lt;P&gt;Ignore my previous post:&lt;/P&gt;&lt;P&gt;structure DATA could not be different from TAB512, so parameter LINE_LENGTH will be always set to 512.&lt;/P&gt;&lt;P&gt;You can only move in two ways:&lt;/P&gt;&lt;P&gt;Do not fecth any data, but only table structure (NO_DATA = 'X').&lt;/P&gt;&lt;P&gt;Do not fetch all of table fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;R.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Dec 2006 11:41:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-resolve-data-buffer-exceeded-exception/m-p/1785940#M338499</guid>
      <dc:creator>former_member199581</dc:creator>
      <dc:date>2006-12-13T11:41:05Z</dc:date>
    </item>
  </channel>
</rss>

