<?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: query in KONV table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/query-in-konv-table/m-p/6285457#M1389009</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you can use for all entries here. I'll show you with an example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select knumv posnr&lt;/P&gt;&lt;P&gt;from vbak as vbak inner join vbap as vbap on vbak&lt;SUB&gt;vbeln = vbap&lt;/SUB&gt;vbeln&lt;/P&gt;&lt;P&gt;into corresponding fields of lt_data&lt;/P&gt;&lt;P&gt;where            " write what ever condition you like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if lt_data[] is not initial.          " this chk is needed as if the lt_vbak is blank it will fetch all the records from konv table&lt;/P&gt;&lt;P&gt;   select KAWRT, KBERT&lt;/P&gt;&lt;P&gt;from KONV&lt;/P&gt;&lt;P&gt;for all entries in lt_data&lt;/P&gt;&lt;P&gt;where&lt;/P&gt;&lt;P&gt;KNUMV=lt_data-KNUMV,&lt;/P&gt;&lt;P&gt;KPOSN=lt_data-POSNR,&lt;/P&gt;&lt;P&gt;KSCHL='ZPDE'.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;note that there is no posnr in vbak table. so you need to take it from vbap&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 28 Oct 2009 12:19:46 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-10-28T12:19:46Z</dc:date>
    <item>
      <title>query in KONV table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/query-in-konv-table/m-p/6285455#M1389007</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;We need execute the following query:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select KAWRT, KBERT&lt;/P&gt;&lt;P&gt;from KONV&lt;/P&gt;&lt;P&gt;where&lt;/P&gt;&lt;P&gt;KNUMV=VBAK.KNUMV,&lt;/P&gt;&lt;P&gt;KPOSN=VBAK.POSNR,&lt;/P&gt;&lt;P&gt;KSCHL='ZPDE'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but we have a problem because table KONV is a cluster table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anybody know how can we do this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance and best Regards,&lt;/P&gt;&lt;P&gt;Néstor.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Oct 2009 11:58:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/query-in-konv-table/m-p/6285455#M1389007</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-28T11:58:32Z</dc:date>
    </item>
    <item>
      <title>Re: query in KONV table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/query-in-konv-table/m-p/6285456#M1389008</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You mean you can't use a JOIN because KONV is a cluster table? Use a two step select, first VBAK then KONV with FOR ALL ENTRIES.&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Oct 2009 12:13:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/query-in-konv-table/m-p/6285456#M1389008</guid>
      <dc:creator>ThomasZloch</dc:creator>
      <dc:date>2009-10-28T12:13:59Z</dc:date>
    </item>
    <item>
      <title>Re: query in KONV table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/query-in-konv-table/m-p/6285457#M1389009</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you can use for all entries here. I'll show you with an example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select knumv posnr&lt;/P&gt;&lt;P&gt;from vbak as vbak inner join vbap as vbap on vbak&lt;SUB&gt;vbeln = vbap&lt;/SUB&gt;vbeln&lt;/P&gt;&lt;P&gt;into corresponding fields of lt_data&lt;/P&gt;&lt;P&gt;where            " write what ever condition you like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if lt_data[] is not initial.          " this chk is needed as if the lt_vbak is blank it will fetch all the records from konv table&lt;/P&gt;&lt;P&gt;   select KAWRT, KBERT&lt;/P&gt;&lt;P&gt;from KONV&lt;/P&gt;&lt;P&gt;for all entries in lt_data&lt;/P&gt;&lt;P&gt;where&lt;/P&gt;&lt;P&gt;KNUMV=lt_data-KNUMV,&lt;/P&gt;&lt;P&gt;KPOSN=lt_data-POSNR,&lt;/P&gt;&lt;P&gt;KSCHL='ZPDE'.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;note that there is no posnr in vbak table. so you need to take it from vbap&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Oct 2009 12:19:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/query-in-konv-table/m-p/6285457#M1389009</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-28T12:19:46Z</dc:date>
    </item>
  </channel>
</rss>

