<?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: Problem with data fetching in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-data-fetching/m-p/5624152#M1280850</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;cant you use select distinct if there are duplicate entries&lt;/P&gt;&lt;P&gt;??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 19 May 2009 09:40:10 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-05-19T09:40:10Z</dc:date>
    <item>
      <title>Problem with data fetching</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-data-fetching/m-p/5624148#M1280846</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;   I am facing the problem while fetching the data from &lt;STRONG&gt;COEP&lt;/STRONG&gt; table.The scenario is as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) For the projects entered on selection screen,fetch &lt;STRONG&gt;BEDID&lt;/STRONG&gt; from &lt;STRONG&gt;AFKO&lt;/STRONG&gt;. (PRONR = Project def.)&lt;/P&gt;&lt;P&gt;2) Based on value of &lt;STRONG&gt;BEDID&lt;/STRONG&gt;,fetch &lt;STRONG&gt;OBJNR&lt;/STRONG&gt; from &lt;STRONG&gt;AFVC&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;3) Based on value of &lt;STRONG&gt;OBJNR&lt;/STRONG&gt;, fetch &lt;STRONG&gt;WOGBTR&lt;/STRONG&gt; from &lt;STRONG&gt;COEP&lt;/STRONG&gt; and sum it up.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   I am facing problem with step 3 as WHERE clause in the select query is based on nonkey field of the table.Same is the case while fetching data from &lt;STRONG&gt;AFKO&lt;/STRONG&gt; and &lt;STRONG&gt;AFVC&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;   Please suggest the better alternative&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 May 2009 09:22:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-data-fetching/m-p/5624148#M1280846</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-19T09:22:08Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with data fetching</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-data-fetching/m-p/5624149#M1280847</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you please post your Code of Select statement&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 May 2009 09:29:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-data-fetching/m-p/5624149#M1280847</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-19T09:29:10Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with data fetching</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-data-fetching/m-p/5624150#M1280848</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 like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select BEDID from AFKO into table it_afko where PRONR = Project def.&lt;/P&gt;&lt;P&gt;if sy-subrc is initial.&lt;/P&gt;&lt;P&gt;select OBJNR&lt;/P&gt;&lt;P&gt;          BEDID from AFVC into table it_afvc&lt;/P&gt;&lt;P&gt;         for all entries in it_afko&lt;/P&gt;&lt;P&gt;         where bedid = it_afko-bedid.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if not it_afvc is initial.&lt;/P&gt;&lt;P&gt;select OBJNR&lt;/P&gt;&lt;P&gt;          WOGBTR from coep into table it_coep&lt;/P&gt;&lt;P&gt;         for all entries in it_afko&lt;/P&gt;&lt;P&gt;         where objnr = it_afko-objnr&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 May 2009 09:37:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-data-fetching/m-p/5624150#M1280848</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-19T09:37:01Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with data fetching</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-data-fetching/m-p/5624151#M1280849</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;In WHERE clause you can use non key fields. The important is that on the left side it must be a column from LEFT table i.e.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt; 
select ... from AFVC as A inner join COEP as C on
                               a~column1 = c~column1 and
                               ...
                               where a~non_key_column = ....   "here on the left must be a left table column provided, but non key field is allowed
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Marcin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 May 2009 09:38:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-data-fetching/m-p/5624151#M1280849</guid>
      <dc:creator>MarcinPciak</dc:creator>
      <dc:date>2009-05-19T09:38:28Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with data fetching</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-data-fetching/m-p/5624152#M1280850</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;cant you use select distinct if there are duplicate entries&lt;/P&gt;&lt;P&gt;??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 May 2009 09:40:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-data-fetching/m-p/5624152#M1280850</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-19T09:40:10Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with data fetching</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-data-fetching/m-p/5624153#M1280851</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hai,&lt;/P&gt;&lt;P&gt;       I think you should find the primary key field common to all the tables which you are using and use that field in the WHERE clause.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 May 2009 10:09:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-data-fetching/m-p/5624153#M1280851</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-19T10:09:37Z</dc:date>
    </item>
  </channel>
</rss>

