<?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 Packet size in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/packet-size/m-p/2181056#M463779</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;Iam getting dump when my select statement is fetching lots of records.&lt;/P&gt;&lt;P&gt;iam selection from PA0105 which contains some lakhs of records.&lt;/P&gt;&lt;P&gt;and all the records needs to be selected from this table.&lt;/P&gt;&lt;P&gt;so how do i avoid dump.&lt;/P&gt;&lt;P&gt;if i use packet size of 10,000 records then how will i seelct the rest of the records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can some please give me some sample code for this .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;iam sending my code which i have written.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LOOP AT t_dd03l INTO w_dd03l.&lt;/P&gt;&lt;P&gt;    REFRESH T_FIELDCAT[].&lt;/P&gt;&lt;P&gt;    CALL FUNCTION 'LVC_FIELDCATALOG_MERGE'&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        i_structure_name       = w_dd03l-tabname&lt;/P&gt;&lt;P&gt;      CHANGING&lt;/P&gt;&lt;P&gt;        ct_fieldcat            = t_fieldcat&lt;/P&gt;&lt;P&gt;      EXCEPTIONS&lt;/P&gt;&lt;P&gt;        inconsistent_interface = 1&lt;/P&gt;&lt;P&gt;        program_error          = 2&lt;/P&gt;&lt;P&gt;        OTHERS                 = 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Create dynamic internal table and assign to FS&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    CALL METHOD cl_alv_table_create=&amp;gt;create_dynamic_table&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        it_fieldcatalog = t_fieldcat&lt;/P&gt;&lt;P&gt;      IMPORTING&lt;/P&gt;&lt;P&gt;        ep_table        = t_new_table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    ASSIGN t_new_table-&amp;gt;* TO &amp;lt;l_fs_dyn_table&amp;gt;.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Create dynamic work area and assign to FS&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    CREATE DATA w_newline LIKE LINE OF &amp;lt;l_fs_dyn_table&amp;gt;.&lt;/P&gt;&lt;P&gt;    ASSIGN w_newline-&amp;gt;* TO &amp;lt;l_fs_dyn_wa&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Select data from the dynamic table&lt;/P&gt;&lt;P&gt;    g_table = w_dd03l-tabname .&lt;/P&gt;&lt;P&gt;    IF NOT t_pa0001[] IS INITIAL.&lt;/P&gt;&lt;P&gt;      SELECT * FROM (g_table)&lt;/P&gt;&lt;P&gt;             INTO CORRESPONDING FIELDS OF TABLE &amp;lt;l_fs_dyn_table&amp;gt;&lt;/P&gt;&lt;P&gt;            package size 10,000&lt;/P&gt;&lt;P&gt;             FOR ALL ENTRIES IN t_pa0001&lt;/P&gt;&lt;P&gt;             WHERE pernr = t_pa0001-pernr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Download data in infotype&lt;/P&gt;&lt;P&gt;    PERFORM download_infotype_data USING &amp;lt;l_fs_dyn_table&amp;gt;.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 09 May 2007 06:20:49 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-05-09T06:20:49Z</dc:date>
    <item>
      <title>Packet size</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/packet-size/m-p/2181056#M463779</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;Iam getting dump when my select statement is fetching lots of records.&lt;/P&gt;&lt;P&gt;iam selection from PA0105 which contains some lakhs of records.&lt;/P&gt;&lt;P&gt;and all the records needs to be selected from this table.&lt;/P&gt;&lt;P&gt;so how do i avoid dump.&lt;/P&gt;&lt;P&gt;if i use packet size of 10,000 records then how will i seelct the rest of the records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can some please give me some sample code for this .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;iam sending my code which i have written.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LOOP AT t_dd03l INTO w_dd03l.&lt;/P&gt;&lt;P&gt;    REFRESH T_FIELDCAT[].&lt;/P&gt;&lt;P&gt;    CALL FUNCTION 'LVC_FIELDCATALOG_MERGE'&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        i_structure_name       = w_dd03l-tabname&lt;/P&gt;&lt;P&gt;      CHANGING&lt;/P&gt;&lt;P&gt;        ct_fieldcat            = t_fieldcat&lt;/P&gt;&lt;P&gt;      EXCEPTIONS&lt;/P&gt;&lt;P&gt;        inconsistent_interface = 1&lt;/P&gt;&lt;P&gt;        program_error          = 2&lt;/P&gt;&lt;P&gt;        OTHERS                 = 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Create dynamic internal table and assign to FS&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    CALL METHOD cl_alv_table_create=&amp;gt;create_dynamic_table&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        it_fieldcatalog = t_fieldcat&lt;/P&gt;&lt;P&gt;      IMPORTING&lt;/P&gt;&lt;P&gt;        ep_table        = t_new_table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    ASSIGN t_new_table-&amp;gt;* TO &amp;lt;l_fs_dyn_table&amp;gt;.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Create dynamic work area and assign to FS&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    CREATE DATA w_newline LIKE LINE OF &amp;lt;l_fs_dyn_table&amp;gt;.&lt;/P&gt;&lt;P&gt;    ASSIGN w_newline-&amp;gt;* TO &amp;lt;l_fs_dyn_wa&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Select data from the dynamic table&lt;/P&gt;&lt;P&gt;    g_table = w_dd03l-tabname .&lt;/P&gt;&lt;P&gt;    IF NOT t_pa0001[] IS INITIAL.&lt;/P&gt;&lt;P&gt;      SELECT * FROM (g_table)&lt;/P&gt;&lt;P&gt;             INTO CORRESPONDING FIELDS OF TABLE &amp;lt;l_fs_dyn_table&amp;gt;&lt;/P&gt;&lt;P&gt;            package size 10,000&lt;/P&gt;&lt;P&gt;             FOR ALL ENTRIES IN t_pa0001&lt;/P&gt;&lt;P&gt;             WHERE pernr = t_pa0001-pernr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Download data in infotype&lt;/P&gt;&lt;P&gt;    PERFORM download_infotype_data USING &amp;lt;l_fs_dyn_table&amp;gt;.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 May 2007 06:20:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/packet-size/m-p/2181056#M463779</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-09T06:20:49Z</dc:date>
    </item>
    <item>
      <title>Re: Packet size</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/packet-size/m-p/2181057#M463780</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi neha.&lt;/P&gt;&lt;P&gt;just in select statement , u have to use packet size multiple times.&lt;/P&gt;&lt;P&gt;so that what ever datas necessary u can store under package.&lt;/P&gt;&lt;P&gt;try this. if any problem u face then again contact us.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 May 2007 08:39:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/packet-size/m-p/2181057#M463780</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-09T08:39:54Z</dc:date>
    </item>
    <item>
      <title>Re: Packet size</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/packet-size/m-p/2181058#M463781</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Neha&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try to use the following version of the SELECT statement:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT * FROM (g_table)
  APPENDING INTO CORRESPONDING FIELDS OF TABLE &amp;lt;l_fs_dyn_table&amp;gt;
    PACKAGE SIZE 1000  " perhaps reduce this number
FOR ALL ENTRIES IN t_pa0001
WHERE pernr = t_pa0001-pernr.
ENDSELECT.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;  Uwe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 May 2007 09:00:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/packet-size/m-p/2181058#M463781</guid>
      <dc:creator>uwe_schieferstein</dc:creator>
      <dc:date>2007-05-09T09:00:19Z</dc:date>
    </item>
    <item>
      <title>Re: Packet size</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/packet-size/m-p/2181059#M463782</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Neha , &lt;/P&gt;&lt;P&gt;You can divide data selection part from SQL query into smaller modules .&lt;/P&gt;&lt;P&gt;First select 1000 entries and store it into internal table .&lt;/P&gt;&lt;P&gt;Inthe next 1000 entries are fetched again and appended to this internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so on..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I thinks this helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: Reward if it helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 May 2007 09:00:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/packet-size/m-p/2181059#M463782</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-09T09:00:19Z</dc:date>
    </item>
  </channel>
</rss>

