<?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: Retrieving the Data from KONV Table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/retrieving-the-data-from-konv-table/m-p/1721025#M314701</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your SELECT looks pretty good to me. But there are a couple of things you can try.&lt;/P&gt;&lt;P&gt;Check that the FOR ALL ENTRIES table has values.&lt;/P&gt;&lt;P&gt;Since KONV is a cluster table, it may be running into trouble on the ORs for KSCHL. So try:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
CHECK NOT ig_salestax[] IS INITIAL.
SELECT k~knumv k~kposn k~kschl k~kbetr k~kwert FROM konv AS k
  INTO CORRESPONDING FIELDS OF TABLE ig_value
  FOR ALL ENTRIES IN ig_salestax
  WHERE knumv = ig_salestax-knumv AND
        kposn = ig_salestax-posnr AND.

DELETE ig_value WHERE
  kschl &amp;lt;&amp;gt; 'JIN1' AND kschl &amp;lt;&amp;gt; 'JIN2' AND
  kschl &amp;lt;&amp;gt; 'JIN4' AND kschl &amp;lt;&amp;gt; 'JIN5'.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 25 Nov 2006 19:21:46 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-11-25T19:21:46Z</dc:date>
    <item>
      <title>Retrieving the Data from KONV Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/retrieving-the-data-from-konv-table/m-p/1721020#M314696</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;&lt;/P&gt;&lt;P&gt;We have a problem in retrieving the Sales data from KONV Table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below is the code we used to retrieve the data from KONV table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;SELECT K&lt;SUB&gt;KNUMV K&lt;/SUB&gt;KPOSN K&lt;SUB&gt;KSCHL K&lt;/SUB&gt;KBETR K~KWERT FROM KONV AS K&lt;/P&gt;&lt;P&gt;              INTO CORRESPONDING FIELDS OF TABLE IG_VALUE&lt;/P&gt;&lt;P&gt;                                               FOR ALL ENTRIES IN IG_SALESTAX&lt;/P&gt;&lt;P&gt;                                              WHERE KNUMV = IG_SALESTAX-KNUMV AND&lt;/P&gt;&lt;P&gt;                                                    KPOSN = IG_SALESTAX-POSNR AND&lt;/P&gt;&lt;P&gt;                                              KSCHL = 'JIN1' OR KSCHL = 'JIN2' OR&lt;/P&gt;&lt;P&gt;                                              KSCHL = 'JIN4' OR KSCHL = 'JIN5'.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the testing server when the program is executed it giving "Session Timed Out" error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is ther any alternative way to retrieve the data from KONV table or is there any Funtion Module specifically used to retrevive the Sales details.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suggestions and Help will be much appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ramesh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 25 Nov 2006 09:39:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/retrieving-the-data-from-konv-table/m-p/1721020#M314696</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-25T09:39:36Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieving the Data from KONV Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/retrieving-the-data-from-konv-table/m-p/1721021#M314697</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT KNUMV KPOSN KSCHL KBETR KWERT FROM KONV&lt;/P&gt;&lt;P&gt;INTO CORRESPONDING FIELDS OF TABLE IG_VALUE&lt;/P&gt;&lt;P&gt;FOR ALL ENTRIES IN IG_SALESTAX&lt;/P&gt;&lt;P&gt;WHERE KNUMV = IG_SALESTAX-KNUMV AND&lt;/P&gt;&lt;P&gt;      KPOSN = IG_SALESTAX-POSNR AND&lt;/P&gt;&lt;P&gt;	     ( KSCHL = 'JIN1' OR &lt;/P&gt;&lt;P&gt;	       KSCHL = 'JIN2' OR&lt;/P&gt;&lt;P&gt;	       KSCHL = 'JIN4' OR &lt;/P&gt;&lt;P&gt;	       KSCHL = 'JIN5' ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Kathirvel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 25 Nov 2006 09:41:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/retrieving-the-data-from-konv-table/m-p/1721021#M314697</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-25T09:41:58Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieving the Data from KONV Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/retrieving-the-data-from-konv-table/m-p/1721022#M314698</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi rmaesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pls remove tha INTO CORRESSPONDING.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;create an internal table in same selection format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT K&lt;SUB&gt;KNUMV K&lt;/SUB&gt;KPOSN K&lt;SUB&gt;KSCHL K&lt;/SUB&gt;KBETR K~KWERT FROM KONV AS K&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;INTO TABLE&amp;lt;/b&amp;gt; IG_VALUE&lt;/P&gt;&lt;P&gt;FOR ALL ENTRIES IN IG_SALESTAX&lt;/P&gt;&lt;P&gt;WHERE KNUMV = IG_SALESTAX-KNUMV AND&lt;/P&gt;&lt;P&gt;KPOSN = IG_SALESTAX-POSNR AND&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;( KSCHL = 'JIN1' OR KSCHL = 'JIN2' OR&lt;/P&gt;&lt;P&gt;KSCHL = 'JIN4' OR KSCHL = 'JIN5' ).&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rgds&lt;/P&gt;&lt;P&gt;Anver&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pls mark all hlpful answers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 25 Nov 2006 09:46:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/retrieving-the-data-from-konv-table/m-p/1721022#M314698</guid>
      <dc:creator>anversha_s</dc:creator>
      <dc:date>2006-11-25T09:46:13Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieving the Data from KONV Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/retrieving-the-data-from-konv-table/m-p/1721023#M314699</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;Dont use into corresponding fields.... its a heavy statement..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use into table...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try doing the both and find the performance yourself....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 25 Nov 2006 10:17:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/retrieving-the-data-from-konv-table/m-p/1721023#M314699</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-25T10:17:01Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieving the Data from KONV Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/retrieving-the-data-from-konv-table/m-p/1721024#M314700</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;Try with RV_KONV_SELECT .&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raghav&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 25 Nov 2006 10:50:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/retrieving-the-data-from-konv-table/m-p/1721024#M314700</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-25T10:50:04Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieving the Data from KONV Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/retrieving-the-data-from-konv-table/m-p/1721025#M314701</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your SELECT looks pretty good to me. But there are a couple of things you can try.&lt;/P&gt;&lt;P&gt;Check that the FOR ALL ENTRIES table has values.&lt;/P&gt;&lt;P&gt;Since KONV is a cluster table, it may be running into trouble on the ORs for KSCHL. So try:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
CHECK NOT ig_salestax[] IS INITIAL.
SELECT k~knumv k~kposn k~kschl k~kbetr k~kwert FROM konv AS k
  INTO CORRESPONDING FIELDS OF TABLE ig_value
  FOR ALL ENTRIES IN ig_salestax
  WHERE knumv = ig_salestax-knumv AND
        kposn = ig_salestax-posnr AND.

DELETE ig_value WHERE
  kschl &amp;lt;&amp;gt; 'JIN1' AND kschl &amp;lt;&amp;gt; 'JIN2' AND
  kschl &amp;lt;&amp;gt; 'JIN4' AND kschl &amp;lt;&amp;gt; 'JIN5'.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 25 Nov 2006 19:21:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/retrieving-the-data-from-konv-table/m-p/1721025#M314701</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-25T19:21:46Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieving the Data from KONV Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/retrieving-the-data-from-konv-table/m-p/1721026#M314702</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ramesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the reason for timeout definitely comes from the missing brackets around the OR comditions as already suggested.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You don't need an alias ' KONV AS K'. Especially as you do not JOIN anything. Even if you JOIN: You need an alias only if you JOIN a table on itself.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't know who is respoisible for the useless use of alias (AS ...). In almost every case it just helps to confuse, nothingh else.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: OR is 'weaker' than AND. So in your case all conditions sopecvified are checked but the fulfillment of  KSCHL = 'JIN1' OR KSCHL = 'JIN2' OR  KSCHL = 'JIN4' OR KSCHL = 'JIN5' is enough to select the record; the whole condition vealuates to TRUE and no index can be used because the whole table must be scanned sequentially.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is a widespread (and unfortunately supported by SAP) urban legend that  INTO CORRESPONDING FIELDS is such a heavy performance breaker when selecting just 5 fields. Performance measures never show significant difference; most time is used by the database to retrieve data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Clemens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 25 Nov 2006 23:04:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/retrieving-the-data-from-konv-table/m-p/1721026#M314702</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2006-11-25T23:04:27Z</dc:date>
    </item>
  </channel>
</rss>

