<?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: modification in the query in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/modification-in-the-query/m-p/930557#M60746</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;it is throwing an error&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"FROM..." "CONNECTION..." "BYPASSING BUFFER" "UP... TO...ROWS" expected after ijha.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Santhosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 05 Jul 2005 20:41:58 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-07-05T20:41:58Z</dc:date>
    <item>
      <title>modification in the query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modification-in-the-query/m-p/930555#M60744</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi folks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need help in writing this query.This is what I have been working...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select kposn kschl krech kawrt kbetr kwert from&lt;/P&gt;&lt;P&gt;konv INNER JOIN jhak on konv&lt;SUB&gt;knumv = jhak&lt;/SUB&gt;knumv inner join jhaga on  jhak&lt;SUB&gt;avm_nr = jhaga&lt;/SUB&gt;avm_nr into table cdata where jhaga~inserent = p_custid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to extract data from table 'konv'(cluster table)and the way you link the fields has to be this way.&amp;lt;b&amp;gt;I know using cluster table I cannot use JOIN statements&amp;lt;/b&amp;gt; but the data i want is stored in cluster table while the selection field is located is 'jhaga' (transparent table)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone help me in modifying this query without changing the where condition?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Santhosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jul 2005 20:12:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modification-in-the-query/m-p/930555#M60744</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-07-05T20:12:50Z</dc:date>
    </item>
    <item>
      <title>Re: modification in the query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modification-in-the-query/m-p/930556#M60745</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm not really sure if this will work for you or not.  I don't have those 2 tables(jhak and jhaga) in my system.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

report zrich_0001.

data: begin of cdata occurs 0,
      kposn type konv-kposn,
      kschl type konv-kschl,
      krech type konv-krech,
      kawrt type konv-kawrt,
      kbetr type konv-kbetr,
      kwert type konv-kwert,
      end of cdata.

  data: begin of ijha occurs 0,
         knumv    type konv-knumv,
         inserent type jhaga-inserent,
        end of ijha.

parameters: p_custid type kna1-kunnr.

start-of-selection.

  select * into corresponding fields of table ijha
        inner join jhak
           on konv~knumv = jhak~knumv
        inner join jhaga
           on jhak~avm_nr = jhaga~avm_nr
                  where jhaga~inserent = p_custid.

  select  kposn kschl krech kawrt kbetr kwert
        from konv
             into table cdata
                  for all entries in ijha
                             where konv~knumv = ijha-knumv.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jul 2005 20:29:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modification-in-the-query/m-p/930556#M60745</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2005-07-05T20:29:08Z</dc:date>
    </item>
    <item>
      <title>Re: modification in the query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modification-in-the-query/m-p/930557#M60746</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;it is throwing an error&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"FROM..." "CONNECTION..." "BYPASSING BUFFER" "UP... TO...ROWS" expected after ijha.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Santhosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jul 2005 20:41:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modification-in-the-query/m-p/930557#M60746</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-07-05T20:41:58Z</dc:date>
    </item>
    <item>
      <title>Re: modification in the query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modification-in-the-query/m-p/930558#M60747</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;oh...sorry.   This is what happens when you can't do a syntax check because you don't have the tables in your system.  &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;   Use this select statment in place of the other select to jhak/jhaga.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

  select * into corresponding fields of table ijha
        from jhak
           inner join jhaga
             on jhak~avm_nr = jhaga~avm_nr
                  where jhaga~inserent = p_custid.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jul 2005 20:52:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modification-in-the-query/m-p/930558#M60747</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2005-07-05T20:52:47Z</dc:date>
    </item>
    <item>
      <title>Re: modification in the query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modification-in-the-query/m-p/930559#M60748</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks Rich, I shall award six points to you because my problem is not solved. I will get back to you on that tomorrow. probably I need to rephrase the query, not sure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyway thanks a lot for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;santhosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jul 2005 22:07:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modification-in-the-query/m-p/930559#M60748</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-07-05T22:07:35Z</dc:date>
    </item>
  </channel>
</rss>

