<?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 Problem with select in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select/m-p/5098613#M1183202</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a huge problem with select:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using this one&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; SELECT * FROM bseg&lt;/P&gt;&lt;P&gt;   INTO TABLE t_bseg_aux&lt;/P&gt;&lt;P&gt;   WHERE bukrs = '5500'&lt;/P&gt;&lt;P&gt;   AND belnr IN r_belnr&lt;/P&gt;&lt;P&gt;   AND gjahr IN s_lfgja&lt;/P&gt;&lt;P&gt;   AND koart = 'M'&lt;/P&gt;&lt;P&gt;   AND bschl IN r_bschl &lt;/P&gt;&lt;P&gt;   AND matnr IN s_matnr &lt;/P&gt;&lt;P&gt;   AND bwkey IN s_bwkey &lt;/P&gt;&lt;P&gt;   AND bwtar IN s_bwtar &lt;/P&gt;&lt;P&gt;   AND hkont IN s_hkont. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the funny thing is that sometimes it works and others it doesn't&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sometimes the system gives me a dump -&amp;gt; DBIF_RSQL_INVALID_RSQL&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone know why that happened if i didn't make any changes in this select???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 03 Feb 2009 12:10:20 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-02-03T12:10:20Z</dc:date>
    <item>
      <title>Problem with select</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select/m-p/5098613#M1183202</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a huge problem with select:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using this one&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; SELECT * FROM bseg&lt;/P&gt;&lt;P&gt;   INTO TABLE t_bseg_aux&lt;/P&gt;&lt;P&gt;   WHERE bukrs = '5500'&lt;/P&gt;&lt;P&gt;   AND belnr IN r_belnr&lt;/P&gt;&lt;P&gt;   AND gjahr IN s_lfgja&lt;/P&gt;&lt;P&gt;   AND koart = 'M'&lt;/P&gt;&lt;P&gt;   AND bschl IN r_bschl &lt;/P&gt;&lt;P&gt;   AND matnr IN s_matnr &lt;/P&gt;&lt;P&gt;   AND bwkey IN s_bwkey &lt;/P&gt;&lt;P&gt;   AND bwtar IN s_bwtar &lt;/P&gt;&lt;P&gt;   AND hkont IN s_hkont. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the funny thing is that sometimes it works and others it doesn't&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sometimes the system gives me a dump -&amp;gt; DBIF_RSQL_INVALID_RSQL&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone know why that happened if i didn't make any changes in this select???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Feb 2009 12:10:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select/m-p/5098613#M1183202</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-03T12:10:20Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with select</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select/m-p/5098614#M1183203</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;is this right (bold marked)? Can you show the definion of your selections?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
SELECT * FROM bseg
INTO TABLE t_bseg_aux
WHERE bukrs = '5500'
*AND belnr IN r_belnr*
AND gjahr IN s_lfgja
AND koart = 'M'
*AND bschl IN r_bschl* 
AND matnr IN s_matnr 
AND bwkey IN s_bwkey 
AND bwtar IN s_bwtar 
AND hkont IN s_hkont. 
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, Dieter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Feb 2009 12:24:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select/m-p/5098614#M1183203</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-03T12:24:30Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with select</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select/m-p/5098615#M1183204</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Depends on how your selection ranges are filled. If you are filling too many single values, you will end up with that dump. The exact maximum number is difficult to determine, it depends on the overall size of the SQL statement that is being passed to the database, but it is somewhere between 1000 and 3000 in my experience.&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P.S. nice user name&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Feb 2009 12:25:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select/m-p/5098615#M1183204</guid>
      <dc:creator>ThomasZloch</dc:creator>
      <dc:date>2009-02-03T12:25:22Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with select</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select/m-p/5098616#M1183205</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello thanks for your answer, dieter.....but i think thomas got the point, i'll check it and i'll post it if it's right&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my ranges are:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; r_belnr LIKE RANGE OF bkpf-belnr&lt;/P&gt;&lt;P&gt;  r_bschl LIKE RANGE OF bseg-bschl&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do you think it's because of the type i declared them?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Lolita Lupi on Feb 3, 2009 1:29 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Feb 2009 12:29:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select/m-p/5098616#M1183205</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-03T12:29:26Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with select</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select/m-p/5098617#M1183206</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Lolita,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how do you fille these ranges?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards, Dieter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Feb 2009 12:32:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select/m-p/5098617#M1183206</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-03T12:32:01Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with select</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select/m-p/5098618#M1183207</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Thomas...i think you got the point my range r_belnr's got too many single values...i'll try take it off and if i suceed i'll mark this thread as answered...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much and my user name is my real name.... &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Feb 2009 12:32:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select/m-p/5098618#M1183207</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-03T12:32:04Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with select</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select/m-p/5098619#M1183208</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i think it is due to this which u told lolita.&lt;/P&gt;&lt;P&gt;u have to use inner join on bseg and bkpf.&lt;/P&gt;&lt;P&gt;but u cant make inner join on the cluster table bseg transparent tabke bkpf.&lt;/P&gt;&lt;P&gt;u have to select data one by one from both tables and then process them again.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Feb 2009 12:32:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select/m-p/5098619#M1183208</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-03T12:32:04Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with select</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select/m-p/5098620#M1183209</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;Bseg is a clsuter table and it will have huge data..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;instead of using * , take only those fields which are required... and see.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;also u might be filling too many single values for the ranges..please check&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nagaraj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Feb 2009 12:32:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select/m-p/5098620#M1183209</guid>
      <dc:creator>former_member404244</dc:creator>
      <dc:date>2009-02-03T12:32:08Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with select</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select/m-p/5098621#M1183210</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Declare like this&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
Ranges: r_belnr FOR bkpf-belnr,
             r_bschl FOR bseg-bschl
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Feb 2009 12:32:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select/m-p/5098621#M1183210</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-03T12:32:45Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with select</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select/m-p/5098622#M1183211</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;Yes Thomas was right...the problem was my range belnr&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It worked out just fine with that:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; SELECT bukrs belnr gjahr buzei koart shkzg matnr werks bwkey bwtar&lt;/P&gt;&lt;P&gt;  dmbtr hkont lifnr FROM bseg&lt;/P&gt;&lt;P&gt;   INTO TABLE t_bseg_aux&lt;/P&gt;&lt;P&gt;   FOR ALL ENTRIES IN t_bkpf&lt;/P&gt;&lt;P&gt;   WHERE bukrs = '5500'&lt;/P&gt;&lt;P&gt;   AND belnr = t_bkpf-belnr&lt;/P&gt;&lt;P&gt;   AND gjahr = t_bkpf-gjahr&lt;/P&gt;&lt;P&gt;   AND koart = 'M'&lt;/P&gt;&lt;P&gt;   AND bschl IN r_bschl&lt;/P&gt;&lt;P&gt;   AND matnr IN s_matnr&lt;/P&gt;&lt;P&gt;   AND bwkey IN s_bwkey&lt;/P&gt;&lt;P&gt;   AND bwtar IN s_bwtar&lt;/P&gt;&lt;P&gt;   AND hkont IN s_hkont.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;one more thing: I had chosen the fields like you said but it wasn't working anyway....the way above it worked!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for everyone!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Feb 2009 12:54:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select/m-p/5098622#M1183211</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-03T12:54:26Z</dc:date>
    </item>
  </channel>
</rss>

