<?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: dbtran ERROR (prepare_bulk_cond) in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/dbtran-error-prepare-bulk-cond/m-p/1654292#M290438</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The statement looks like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select a&lt;SUB&gt;pspnr posid psphi stufe usr10 usr11 a&lt;/SUB&gt;objnr&lt;/P&gt;&lt;P&gt;       belnr refbk refbn refgj blart zlenr wkgbtr&lt;/P&gt;&lt;P&gt;       bukrs gjahr cpudt cputm&lt;/P&gt;&lt;P&gt;       aworg awtyp kokrs ebeln ebelp buzei budat&lt;/P&gt;&lt;P&gt;       gkont poski&lt;/P&gt;&lt;P&gt;       into corresponding fields of table t_covp3&lt;/P&gt;&lt;P&gt;       from prps as a inner join covp as b&lt;/P&gt;&lt;P&gt;           on a&lt;SUB&gt;mandt = b&lt;/SUB&gt;mandt and a&lt;SUB&gt;objnr = b&lt;/SUB&gt;objnr&lt;/P&gt;&lt;P&gt;           inner join proj as c on&lt;/P&gt;&lt;P&gt;             a&lt;SUB&gt;psphi = c&lt;/SUB&gt;pspnr&lt;/P&gt;&lt;P&gt;       for all entries in t_bkpf2&lt;/P&gt;&lt;P&gt;==&amp;gt;      where  pspid in r_proj1 and&lt;/P&gt;&lt;P&gt;            posid in s_posid and&lt;/P&gt;&lt;P&gt;             ( stufe = 4      or&lt;/P&gt;&lt;P&gt;               stufe = 5 )    and&lt;/P&gt;&lt;P&gt;              refbk = t_bkpf2-bukrs and&lt;/P&gt;&lt;P&gt;              refbn = t_bkpf2-belnr and&lt;/P&gt;&lt;P&gt;              refgj = t_bkpf2-gjahr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Previously statement worked when 7th line up was:&lt;/P&gt;&lt;P&gt;==&amp;gt; where pspid = t_proj-pspid&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't know which SAP memory area may change outcome, is "dbtan ERROR" indicative of "RSQL"?  Looping through pspid may work but I'm wondering if that can avoided.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 26 Oct 2006 05:58:01 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-10-26T05:58:01Z</dc:date>
    <item>
      <title>dbtran ERROR (prepare_bulk_cond)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dbtran-error-prepare-bulk-cond/m-p/1654290#M290436</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;Error reported in R/3 developer trace file:&lt;/P&gt;&lt;P&gt;B  *** ERROR =&amp;gt; dbtran ERROR (prepare_bulk_cond): FOR ALL ENTRIES statement too big&lt;/P&gt;&lt;P&gt; size = 1577 + n * 14895 &amp;lt;-&amp;gt; max. size         = 32000&lt;/P&gt;&lt;P&gt; token count = 165 + n * 14292 &amp;lt;-&amp;gt; max. token count = 32767&lt;/P&gt;&lt;P&gt; marker count = n * 7105 &amp;lt;-&amp;gt; max. marker count = 32767, table='PRPS'&lt;/P&gt;&lt;P&gt; [dbtran.c     14933]&lt;/P&gt;&lt;P&gt;B  ***LOG BYK=&amp;gt; current SQL statement exceeds a database limit [dbtran#6 @ 14936] [dbtran  1493 6]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Question:&lt;/P&gt;&lt;P&gt;My select statement uses  "for all entries" and got too big.  Is this error due to a limitation in our database (in this case UDB) or is this an RSQL (db independent) or ABAP limitation?  There's no sql error code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Greg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Oct 2006 05:18:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dbtran-error-prepare-bulk-cond/m-p/1654290#M290436</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-26T05:18:35Z</dc:date>
    </item>
    <item>
      <title>Re: dbtran ERROR (prepare_bulk_cond)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dbtran-error-prepare-bulk-cond/m-p/1654291#M290437</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is nothing like ABAP limitation in this regard,&lt;/P&gt;&lt;P&gt;Try increasing the memory for your program in your system. &lt;/P&gt;&lt;P&gt;Or add some code to restrict to some n lines of table and repeat this for all entries. you can use a temperary table for the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Sandeep Josyula&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Mark helpful answers !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Oct 2006 05:45:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dbtran-error-prepare-bulk-cond/m-p/1654291#M290437</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-26T05:45:26Z</dc:date>
    </item>
    <item>
      <title>Re: dbtran ERROR (prepare_bulk_cond)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dbtran-error-prepare-bulk-cond/m-p/1654292#M290438</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The statement looks like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select a&lt;SUB&gt;pspnr posid psphi stufe usr10 usr11 a&lt;/SUB&gt;objnr&lt;/P&gt;&lt;P&gt;       belnr refbk refbn refgj blart zlenr wkgbtr&lt;/P&gt;&lt;P&gt;       bukrs gjahr cpudt cputm&lt;/P&gt;&lt;P&gt;       aworg awtyp kokrs ebeln ebelp buzei budat&lt;/P&gt;&lt;P&gt;       gkont poski&lt;/P&gt;&lt;P&gt;       into corresponding fields of table t_covp3&lt;/P&gt;&lt;P&gt;       from prps as a inner join covp as b&lt;/P&gt;&lt;P&gt;           on a&lt;SUB&gt;mandt = b&lt;/SUB&gt;mandt and a&lt;SUB&gt;objnr = b&lt;/SUB&gt;objnr&lt;/P&gt;&lt;P&gt;           inner join proj as c on&lt;/P&gt;&lt;P&gt;             a&lt;SUB&gt;psphi = c&lt;/SUB&gt;pspnr&lt;/P&gt;&lt;P&gt;       for all entries in t_bkpf2&lt;/P&gt;&lt;P&gt;==&amp;gt;      where  pspid in r_proj1 and&lt;/P&gt;&lt;P&gt;            posid in s_posid and&lt;/P&gt;&lt;P&gt;             ( stufe = 4      or&lt;/P&gt;&lt;P&gt;               stufe = 5 )    and&lt;/P&gt;&lt;P&gt;              refbk = t_bkpf2-bukrs and&lt;/P&gt;&lt;P&gt;              refbn = t_bkpf2-belnr and&lt;/P&gt;&lt;P&gt;              refgj = t_bkpf2-gjahr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Previously statement worked when 7th line up was:&lt;/P&gt;&lt;P&gt;==&amp;gt; where pspid = t_proj-pspid&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't know which SAP memory area may change outcome, is "dbtan ERROR" indicative of "RSQL"?  Looping through pspid may work but I'm wondering if that can avoided.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Oct 2006 05:58:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dbtran-error-prepare-bulk-cond/m-p/1654292#M290438</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-26T05:58:01Z</dc:date>
    </item>
    <item>
      <title>Re: dbtran ERROR (prepare_bulk_cond)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dbtran-error-prepare-bulk-cond/m-p/1654293#M290439</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Correction: "dbtran ERROR (prepare_bulk_cond)"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Oct 2006 06:00:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dbtran-error-prepare-bulk-cond/m-p/1654293#M290439</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-26T06:00:55Z</dc:date>
    </item>
    <item>
      <title>Re: dbtran ERROR (prepare_bulk_cond)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dbtran-error-prepare-bulk-cond/m-p/1654294#M290440</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I believe that there are limits and that your statement has reached them. Try chunking the statement with package size:&lt;/P&gt;&lt;P&gt;data: current_start type sy-tabix value 1.&lt;/P&gt;&lt;P&gt;data: current_end type sy-tabix value 1.&lt;/P&gt;&lt;P&gt;data: pack_size like sytabix value 50000.&lt;/P&gt;&lt;P&gt;data: totrex type sytabix.&lt;/P&gt;&lt;P&gt;describe data itab entries totrex.&lt;/P&gt;&lt;P&gt;loopc = totrex / packsize.&lt;/P&gt;&lt;P&gt;loopc = loopc + 1.&lt;/P&gt;&lt;P&gt;do loopc times.&lt;/P&gt;&lt;P&gt;current_end = current_start + pack_size - 1.&lt;/P&gt;&lt;P&gt;refresh smalltab.&lt;/P&gt;&lt;P&gt;loop at itab from current_start to current_end.&lt;/P&gt;&lt;P&gt;append itab to small_tab.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;SELECT * INTO TABLE itabout PACKAGE SIZE 20 FROM scarr&lt;/P&gt;&lt;P&gt;for all entries in small_tab&lt;/P&gt;&lt;P&gt;where .......... &lt;/P&gt;&lt;P&gt;current_start = current_start + pack_size.&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;or for your example:&lt;/P&gt;&lt;P&gt;data: current_start type sy-tabix value 1.&lt;/P&gt;&lt;P&gt;data: current_end type sy-tabix value 1.&lt;/P&gt;&lt;P&gt;data: pack_size like sytabix value 50000.&lt;/P&gt;&lt;P&gt;data: totrex type sytabix.&lt;/P&gt;&lt;P&gt;describe data itab entries totrex.&lt;/P&gt;&lt;P&gt;loopc = totrex / packsize.&lt;/P&gt;&lt;P&gt;loopc = loopc + 1.&lt;/P&gt;&lt;P&gt;do loopc times.&lt;/P&gt;&lt;P&gt;current_end = current_start + pack_size - 1.&lt;/P&gt;&lt;P&gt;refresh t_bkpf_small.&lt;/P&gt;&lt;P&gt;loop at t_bkpf2 from current_start to current_end.&lt;/P&gt;&lt;P&gt;append t_bkpf2 to t_bkpf_small.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select a&lt;SUB&gt;pspnr posid psphi stufe usr10 usr11 a&lt;/SUB&gt;objnr&lt;/P&gt;&lt;P&gt;belnr refbk refbn refgj blart zlenr wkgbtr&lt;/P&gt;&lt;P&gt;bukrs gjahr cpudt cputm&lt;/P&gt;&lt;P&gt;aworg awtyp kokrs ebeln ebelp buzei budat&lt;/P&gt;&lt;P&gt;gkont poski&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;appending&amp;lt;/b&amp;gt; corresponding fields of table t_covp3&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;PACKAGE SIZE pack_size&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;from prps as a inner join covp as b&lt;/P&gt;&lt;P&gt;on a&lt;SUB&gt;mandt = b&lt;/SUB&gt;mandt and a&lt;SUB&gt;objnr = b&lt;/SUB&gt;objnr&lt;/P&gt;&lt;P&gt;inner join proj as c on&lt;/P&gt;&lt;P&gt;a&lt;SUB&gt;psphi = c&lt;/SUB&gt;pspnr&lt;/P&gt;&lt;P&gt;for all entries in &amp;lt;b&amp;gt;t_bkpf_small&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;where pspid in r_proj1 and&lt;/P&gt;&lt;P&gt;posid in s_posid and&lt;/P&gt;&lt;P&gt;( stufe = 4 or&lt;/P&gt;&lt;P&gt;stufe = 5 ) and&lt;/P&gt;&lt;P&gt;refbk = &amp;lt;b&amp;gt;t_bkpf_small-bukrs and&lt;/P&gt;&lt;P&gt;refbn = t_bkpf_small-belnr and&lt;/P&gt;&lt;P&gt;refgj = t_bkpf_small-gjahr.&lt;/P&gt;&lt;P&gt;current_start = current_start + pack_size.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDdo.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Oct 2006 06:07:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dbtran-error-prepare-bulk-cond/m-p/1654294#M290440</guid>
      <dc:creator>former_member186741</dc:creator>
      <dc:date>2006-10-26T06:07:00Z</dc:date>
    </item>
  </channel>
</rss>

