<?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 regarding package size in select statement in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-package-size-in-select-statement/m-p/5631108#M1282077</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 have coded select statement as below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: lv_n type i value 10000.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       lv_n1 TYPE i VALUE 10000.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Fetching data from mara and A073&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  select a~matnr "article code&lt;/P&gt;&lt;P&gt;         a~mtart "article type&lt;/P&gt;&lt;P&gt;         a~matkl "mc code&lt;/P&gt;&lt;P&gt;         a~meins "UOM&lt;/P&gt;&lt;P&gt;         a~satnr "Style Code&lt;/P&gt;&lt;P&gt;         b~kappl "application&lt;/P&gt;&lt;P&gt;         b~kschl "condition type&lt;/P&gt;&lt;P&gt;         b~vkorg "s.org&lt;/P&gt;&lt;P&gt;         b~vrkme "sales unit&lt;/P&gt;&lt;P&gt;         b~datbi " to date&lt;/P&gt;&lt;P&gt;         b~datab " from date&lt;/P&gt;&lt;P&gt;         b~knumh "condition record number&lt;/P&gt;&lt;P&gt;    from mara as a&lt;/P&gt;&lt;P&gt;         inner join&lt;/P&gt;&lt;P&gt;         a073 as b on a&lt;SUB&gt;matnr = b&lt;/SUB&gt;matnr&lt;/P&gt;&lt;P&gt;    into table it_mara&lt;/P&gt;&lt;P&gt;    package size lv_n&lt;/P&gt;&lt;P&gt;   where a~matnr in s_matnr&lt;/P&gt;&lt;P&gt;     and a~mtart in s_mtart&lt;/P&gt;&lt;P&gt;     and a~matkl in s_matkl&lt;/P&gt;&lt;P&gt;     and b~vkorg = p_vkorg&lt;/P&gt;&lt;P&gt;    and b~datab in s_date.&lt;/P&gt;&lt;P&gt;endselect.&lt;/P&gt;&lt;P&gt;  if sy-subrc eq 0.&lt;/P&gt;&lt;P&gt;    sort it_mara by matnr matkl.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now the issue is as i have given 10000 for lv_n onli 10000 records are displayed or all the records are displayed?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 11 May 2009 12:33:22 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-05-11T12:33:22Z</dc:date>
    <item>
      <title>regarding package size in select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-package-size-in-select-statement/m-p/5631108#M1282077</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 have coded select statement as below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: lv_n type i value 10000.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       lv_n1 TYPE i VALUE 10000.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Fetching data from mara and A073&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  select a~matnr "article code&lt;/P&gt;&lt;P&gt;         a~mtart "article type&lt;/P&gt;&lt;P&gt;         a~matkl "mc code&lt;/P&gt;&lt;P&gt;         a~meins "UOM&lt;/P&gt;&lt;P&gt;         a~satnr "Style Code&lt;/P&gt;&lt;P&gt;         b~kappl "application&lt;/P&gt;&lt;P&gt;         b~kschl "condition type&lt;/P&gt;&lt;P&gt;         b~vkorg "s.org&lt;/P&gt;&lt;P&gt;         b~vrkme "sales unit&lt;/P&gt;&lt;P&gt;         b~datbi " to date&lt;/P&gt;&lt;P&gt;         b~datab " from date&lt;/P&gt;&lt;P&gt;         b~knumh "condition record number&lt;/P&gt;&lt;P&gt;    from mara as a&lt;/P&gt;&lt;P&gt;         inner join&lt;/P&gt;&lt;P&gt;         a073 as b on a&lt;SUB&gt;matnr = b&lt;/SUB&gt;matnr&lt;/P&gt;&lt;P&gt;    into table it_mara&lt;/P&gt;&lt;P&gt;    package size lv_n&lt;/P&gt;&lt;P&gt;   where a~matnr in s_matnr&lt;/P&gt;&lt;P&gt;     and a~mtart in s_mtart&lt;/P&gt;&lt;P&gt;     and a~matkl in s_matkl&lt;/P&gt;&lt;P&gt;     and b~vkorg = p_vkorg&lt;/P&gt;&lt;P&gt;    and b~datab in s_date.&lt;/P&gt;&lt;P&gt;endselect.&lt;/P&gt;&lt;P&gt;  if sy-subrc eq 0.&lt;/P&gt;&lt;P&gt;    sort it_mara by matnr matkl.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now the issue is as i have given 10000 for lv_n onli 10000 records are displayed or all the records are displayed?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 May 2009 12:33:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-package-size-in-select-statement/m-p/5631108#M1282077</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-11T12:33:22Z</dc:date>
    </item>
    <item>
      <title>Re: regarding package size in select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-package-size-in-select-statement/m-p/5631109#M1282078</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;All will be, but at one shot it will pull only 10000.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It will pull like first 10000 at one shot and then next 10000....and so on... if you use append in between select and endselect all records will be captured. If you dont then it will replace captured records and update with the next bunch...and so on. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your case it will have last 10000 or less number of records...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Satya suresh Donepudi on May 11, 2009 7:53 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 May 2009 12:37:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-package-size-in-select-statement/m-p/5631109#M1282078</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-11T12:37:17Z</dc:date>
    </item>
    <item>
      <title>Re: regarding package size in select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-package-size-in-select-statement/m-p/5631110#M1282079</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;your select will fetch only last 10000 records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so maintain all the logic between select....&amp;amp; endselct.&lt;/P&gt;&lt;P&gt;Use the Endselct statement after dispalying the records.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
select a~matnr "article code
a~mtart "article type
a~matkl "mc code
a~meins "UOM
a~satnr "Style Code
b~kappl "application
b~kschl "condition type
b~vkorg "s.org
b~vrkme "sales unit
b~datbi " to date
b~datab " from date
b~knumh "condition record number
from mara as a
inner join
a073 as b on a~matnr = b~matnr
into table it_mara
package size lv_n
where a~matnr in s_matnr
and a~mtart in s_mtart
and a~matkl in s_matkl
and b~vkorg = p_vkorg
and b~datab in s_date.

if sy-subrc eq 0.
sort it_mara by matnr matkl.
endif.

* displaying data ...if required

endselect.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Naveen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 May 2009 12:46:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-package-size-in-select-statement/m-p/5631110#M1282079</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-11T12:46:10Z</dc:date>
    </item>
    <item>
      <title>Re: regarding package size in select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-package-size-in-select-statement/m-p/5631111#M1282080</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the output is 10000 or less.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if the selct query where  condition satisfies more than 10000 ,it shows the last 10000 satisfid records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if the selct query where  condition satisfies less than 10000 it shows the satisfid records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Prabhudas&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Prabhu Das on May 11, 2009 6:17 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 May 2009 12:46:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-package-size-in-select-statement/m-p/5631111#M1282080</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-11T12:46:37Z</dc:date>
    </item>
    <item>
      <title>Re: regarding package size in select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-package-size-in-select-statement/m-p/5631112#M1282081</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;where to keep append statement? and whether this statement is performance issue?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 May 2009 13:09:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-package-size-in-select-statement/m-p/5631112#M1282081</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-11T13:09:35Z</dc:date>
    </item>
    <item>
      <title>Re: regarding package size in select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-package-size-in-select-statement/m-p/5631113#M1282082</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;Below I have mentioned, where you need to add 'APPENDING'. Please check the code.&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This should not create a Performance issue, but the internal Table will keep on building in size&lt;/P&gt;&lt;P&gt;depending on the volume of records to be picked. In some scenarios where there are millions&lt;/P&gt;&lt;P&gt;of records processed during a single execution, it might cause Memory overflow and cause dumps. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Chandy &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Fetching data from mara and A073&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;select a~matnr "article code&lt;/P&gt;&lt;P&gt;a~mtart "article type&lt;/P&gt;&lt;P&gt;a~matkl "mc code&lt;/P&gt;&lt;P&gt;a~meins "UOM&lt;/P&gt;&lt;P&gt;a~satnr "Style Code&lt;/P&gt;&lt;P&gt;b~kappl "application&lt;/P&gt;&lt;P&gt;b~kschl "condition type&lt;/P&gt;&lt;P&gt;b~vkorg "s.org&lt;/P&gt;&lt;P&gt;b~vrkme "sales unit&lt;/P&gt;&lt;P&gt;b~datbi " to date&lt;/P&gt;&lt;P&gt;b~datab " from date&lt;/P&gt;&lt;P&gt;b~knumh "condition record number&lt;/P&gt;&lt;P&gt;from mara as a&lt;/P&gt;&lt;P&gt;inner join&lt;/P&gt;&lt;P&gt;a073 as b on a&lt;SUB&gt;matnr = b&lt;/SUB&gt;matnr&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;into table it_mara                         "Comment old code&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;APPENDING TABLE it_mara         "New Code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;package size lv_n&lt;/P&gt;&lt;P&gt;where a~matnr in s_matnr&lt;/P&gt;&lt;P&gt;and a~mtart in s_mtart&lt;/P&gt;&lt;P&gt;and a~matkl in s_matkl&lt;/P&gt;&lt;P&gt;and b~vkorg = p_vkorg&lt;/P&gt;&lt;P&gt;and b~datab in s_date.&lt;/P&gt;&lt;P&gt;endselect.&lt;/P&gt;&lt;P&gt;if sy-subrc eq 0.&lt;/P&gt;&lt;P&gt;sort it_mara by matnr matkl.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 May 2009 19:34:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-package-size-in-select-statement/m-p/5631113#M1282082</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-11T19:34:53Z</dc:date>
    </item>
    <item>
      <title>Re: regarding package size in select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-package-size-in-select-statement/m-p/5631114#M1282083</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What's the point of specifying "package size" if you are going to just append to an internal table? Wouldn't you be better off not using package size at all?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The idea is to prevent memory overflow. When you receive data in chunks of 10000 rows, you are supposed to process the data, REDUCE THE MEMORY FOOTPRINT, and then get the next chunk.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 May 2009 21:26:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-package-size-in-select-statement/m-p/5631114#M1282083</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-11T21:26:14Z</dc:date>
    </item>
  </channel>
</rss>

