<?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 please advise in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/please-advise/m-p/4562179#M1076862</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Retreiving field from EKKO, EKPO , EKET &lt;/P&gt;&lt;P&gt;Condition EKKO-IHREZ = "XXX"  AND EKKO-BEDAT = "DATE"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN __jive_macro_name="CODE"&gt;
select xxx from EKKO 
INTO i_EKKO.
key EKKO-IHREZ = "XXX"  AND EKKO-BEDAT = "DATE"

Select xxx xxx from EKPO
into i_EKPO
for all entries in i_EKKO
key EBELN

Select xxx xxx xxx from EKET
into i_EKEP
for all entries in i_EKET
KEY EBELN and EBELP
&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please advise whether inner join can be done with 3 table&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 02 Oct 2008 07:14:55 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-10-02T07:14:55Z</dc:date>
    <item>
      <title>please advise</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/please-advise/m-p/4562179#M1076862</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Retreiving field from EKKO, EKPO , EKET &lt;/P&gt;&lt;P&gt;Condition EKKO-IHREZ = "XXX"  AND EKKO-BEDAT = "DATE"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN __jive_macro_name="CODE"&gt;
select xxx from EKKO 
INTO i_EKKO.
key EKKO-IHREZ = "XXX"  AND EKKO-BEDAT = "DATE"

Select xxx xxx from EKPO
into i_EKPO
for all entries in i_EKKO
key EBELN

Select xxx xxx xxx from EKET
into i_EKEP
for all entries in i_EKET
KEY EBELN and EBELP
&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please advise whether inner join can be done with 3 table&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Oct 2008 07:14:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/please-advise/m-p/4562179#M1076862</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-02T07:14:55Z</dc:date>
    </item>
    <item>
      <title>Re: please advise</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/please-advise/m-p/4562180#M1076863</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;yes, theoretically no problem. In actual case: EKKO-EKPO could be joined without any performance problems, to JOIN eket to the above two depends on how many lines are in EKET for one PO document. I think you have to test the performance (between join of all the three and join of EKKO-EKPO plus a separate select for EKET) and make decision...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;P&gt;ec&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Oct 2008 07:21:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/please-advise/m-p/4562180#M1076863</guid>
      <dc:creator>JozsefSzikszai</dc:creator>
      <dc:date>2008-10-02T07:21:15Z</dc:date>
    </item>
    <item>
      <title>Re: please advise</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/please-advise/m-p/4562181#M1076864</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, yes you can it would be something like &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;select ekko~ebeln ekpo~ebelp ekko~etenr into table gt_po
    from ekko
      inner join ekpo on  ekpo~ebeln = ekko~ebeln
      inner join eket on  eket~ebeln = ekpo~ebeln
                      and eket~ebelp = ekpo~ebelp
   where ekko~ebeln in s_ebeln.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Darren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Oct 2008 07:23:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/please-advise/m-p/4562181#M1076864</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-02T07:23:26Z</dc:date>
    </item>
    <item>
      <title>Re: please advise</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/please-advise/m-p/4562182#M1076865</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;Another alternative which you can try out is join ekko ,ekpo and select data from eket using for all entries of above.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Oct 2008 07:24:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/please-advise/m-p/4562182#M1076865</guid>
      <dc:creator>GauthamV</dc:creator>
      <dc:date>2008-10-02T07:24:53Z</dc:date>
    </item>
    <item>
      <title>Re: please advise</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/please-advise/m-p/4562183#M1076866</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;  Consider Eric's suggestion..,&lt;/P&gt;&lt;P&gt;And ..,&lt;/P&gt;&lt;P&gt;Declare 3 internal tables,&lt;/P&gt;&lt;P&gt;1. To handle structure of EKKO and EKPO,&lt;/P&gt;&lt;P&gt;2. To handle EKET table structure&lt;/P&gt;&lt;P&gt;3. To handle final output table with all abov three structures.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Link EKKO and EKPO with inner joins and then link these two with EKET with for all entries method.&lt;/P&gt;&lt;P&gt;Now pass all into final internal table...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope its clear.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Naveen.I&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Oct 2008 07:52:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/please-advise/m-p/4562183#M1076866</guid>
      <dc:creator>naveen_inuganti2</dc:creator>
      <dc:date>2008-10-02T07:52:18Z</dc:date>
    </item>
    <item>
      <title>Re: please advise</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/please-advise/m-p/4562184#M1076867</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You mean &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
select ekko~ebeln ekpo~ebelp ekko~etenr into table i_itab1
    from ekko
      inner join ekpo on  ekpo~ebeln = ekko~ebeln


Select xxx
from EKET into table i_itab2
for all entries i_itab1
key eket-ebeln = i_itab1-ebeln
and eket-ebelp = i_itab1-ebelp
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where do you have 3 internal table??? i have&lt;/P&gt;&lt;P&gt;1st internal table joining EKKO and EKPO&lt;/P&gt;&lt;P&gt;2nt internal table for all entries table1 and EKET&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Oct 2008 08:21:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/please-advise/m-p/4562184#M1076867</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-02T08:21:28Z</dc:date>
    </item>
    <item>
      <title>Re: please advise</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/please-advise/m-p/4562185#M1076868</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;&lt;/P&gt;&lt;P&gt;So here your first table contains only contents of EKKO, EKPO and second table contains contents of EKET..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So there is no common table for these all...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thats what i mentioned above decalre on final internal table if neccessary with all these three table fields...&lt;/P&gt;&lt;P&gt;and then pass itab1, itab2 to final internal table...like..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;loop at itab1 into wa1.     &amp;lt;---contents of EKKO,EKPO

 waf-filed1 = wa1-filed1                                  

read table itab2 into wa2 with key f1 = wa1-f1.            &amp;lt;----Contents of EKET
if sy-subrc = 0.
waf-field2 = wa2-field2.
endif.

append waf to final internal tabel.
clear waf.
endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is no other better way in this case... to have all contents in one table..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Naveen.i&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Oct 2008 08:31:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/please-advise/m-p/4562185#M1076868</guid>
      <dc:creator>naveen_inuganti2</dc:creator>
      <dc:date>2008-10-02T08:31:17Z</dc:date>
    </item>
    <item>
      <title>Re: please advise</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/please-advise/m-p/4562186#M1076869</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks i'll need to check that all record is done properly&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Oct 2008 10:27:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/please-advise/m-p/4562186#M1076869</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-02T10:27:17Z</dc:date>
    </item>
  </channel>
</rss>

