<?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 join between itab and ztable in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/join-between-itab-and-ztable/m-p/2372254#M525645</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i have a scenario, &lt;/P&gt;&lt;P&gt;where i have a itab inprofpost which has&lt;/P&gt;&lt;P&gt; besides other fields kostl aufnr lstar as key fields,&lt;/P&gt;&lt;P&gt;now for each entry in inprofpost &lt;/P&gt;&lt;P&gt;i have to pick up all the entries from bseg which match &lt;/P&gt;&lt;P&gt;kostl aufnr lstar &lt;/P&gt;&lt;P&gt;into another itab final_tab along with inprofpost entries.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;am i clear, the final_tab must have entries&lt;/P&gt;&lt;P&gt; which are join of this itab and also bseg. ie. it should have &lt;/P&gt;&lt;P&gt;a total of ( # of itab  *  # of bseg ) entries.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 06 Jun 2007 01:06:11 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-06-06T01:06:11Z</dc:date>
    <item>
      <title>join between itab and ztable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/join-between-itab-and-ztable/m-p/2372254#M525645</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i have a scenario, &lt;/P&gt;&lt;P&gt;where i have a itab inprofpost which has&lt;/P&gt;&lt;P&gt; besides other fields kostl aufnr lstar as key fields,&lt;/P&gt;&lt;P&gt;now for each entry in inprofpost &lt;/P&gt;&lt;P&gt;i have to pick up all the entries from bseg which match &lt;/P&gt;&lt;P&gt;kostl aufnr lstar &lt;/P&gt;&lt;P&gt;into another itab final_tab along with inprofpost entries.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;am i clear, the final_tab must have entries&lt;/P&gt;&lt;P&gt; which are join of this itab and also bseg. ie. it should have &lt;/P&gt;&lt;P&gt;a total of ( # of itab  *  # of bseg ) entries.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jun 2007 01:06:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/join-between-itab-and-ztable/m-p/2372254#M525645</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-06T01:06:11Z</dc:date>
    </item>
    <item>
      <title>Re: join between itab and ztable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/join-between-itab-and-ztable/m-p/2372255#M525646</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Saritha,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please be more specific. I am not clear as what exactly you want :(.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Atish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jun 2007 01:14:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/join-between-itab-and-ztable/m-p/2372255#M525646</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-06T01:14:28Z</dc:date>
    </item>
    <item>
      <title>Re: join between itab and ztable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/join-between-itab-and-ztable/m-p/2372256#M525647</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;data is there in itab1 and ztable.&lt;/P&gt;&lt;P&gt;now final_itab is empty.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for every entry in itab1, all the entries in ztable should be copied to final_itab along with itab1 values.&lt;/P&gt;&lt;P&gt;if for  entry in itab1 there are 5 entries in ztable, and if itab1 has 2 entries.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then final_itab should have a total of 10 entries.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;am i clear, if not i will try to be more clear.&lt;/P&gt;&lt;P&gt;thankyou for the response.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jun 2007 01:25:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/join-between-itab-and-ztable/m-p/2372256#M525647</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-06T01:25:46Z</dc:date>
    </item>
    <item>
      <title>Re: join between itab and ztable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/join-between-itab-and-ztable/m-p/2372257#M525648</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;then use forall entries command instead of join ...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jun 2007 01:26:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/join-between-itab-and-ztable/m-p/2372257#M525648</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-06T01:26:10Z</dc:date>
    </item>
    <item>
      <title>Re: join between itab and ztable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/join-between-itab-and-ztable/m-p/2372258#M525649</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;there are 3 fields common in between itab1 and ztable, which should match before picking.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jun 2007 01:27:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/join-between-itab-and-ztable/m-p/2372258#M525649</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-06T01:27:12Z</dc:date>
    </item>
    <item>
      <title>Re: join between itab and ztable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/join-between-itab-and-ztable/m-p/2372259#M525650</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Saritha,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try something like this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select field1 field 2... from ztable into final_itab for all entries in itab&lt;/P&gt;&lt;P&gt;where ....(three common field condition)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Revert back if further query.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Atish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jun 2007 01:30:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/join-between-itab-and-ztable/m-p/2372259#M525650</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-06T01:30:30Z</dc:date>
    </item>
    <item>
      <title>Re: join between itab and ztable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/join-between-itab-and-ztable/m-p/2372260#M525651</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Or  just use loop , like &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab.&lt;/P&gt;&lt;P&gt;select ... from  bseg  into itab2 where ... = itab-col&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then  you'll have itab2 as result you wanted .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jun 2007 01:35:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/join-between-itab-and-ztable/m-p/2372260#M525651</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-06T01:35:50Z</dc:date>
    </item>
    <item>
      <title>Re: join between itab and ztable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/join-between-itab-and-ztable/m-p/2372261#M525652</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use this select query&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if inprofpost[] is not intial.&lt;/P&gt;&lt;P&gt; select * from bseg&lt;/P&gt;&lt;P&gt;   into table final_tab&lt;/P&gt;&lt;P&gt;    for all entiries in inprofpost&lt;/P&gt;&lt;P&gt;       where lstar = inprofpost-lstar&lt;/P&gt;&lt;P&gt;          and aufnr = inprofpost-aufnr&lt;/P&gt;&lt;P&gt;          and kostl = inprofpost-kostl.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please reward ponts if helpful&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jun 2007 01:53:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/join-between-itab-and-ztable/m-p/2372261#M525652</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-06T01:53:17Z</dc:date>
    </item>
    <item>
      <title>Re: join between itab and ztable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/join-between-itab-and-ztable/m-p/2372262#M525653</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;Use the three common fields in condition for select statement.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jun 2007 02:13:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/join-between-itab-and-ztable/m-p/2372262#M525653</guid>
      <dc:creator>jayanthi_jayaraman</dc:creator>
      <dc:date>2007-06-06T02:13:20Z</dc:date>
    </item>
    <item>
      <title>Re: join between itab and ztable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/join-between-itab-and-ztable/m-p/2372263#M525654</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thank you all of you.&lt;/P&gt;&lt;P&gt;we can use select inside loop with condition, thats ok,&lt;/P&gt;&lt;P&gt;but wat about the other fields in itab1 which have to be copied into final_itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;like i said  itab1 has 5 fields and ztable has 5 fields. &lt;/P&gt;&lt;P&gt;the final_itab should have all the 10 entries including 3 common fields.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jun 2007 02:36:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/join-between-itab-and-ztable/m-p/2372263#M525654</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-06T02:36:25Z</dc:date>
    </item>
    <item>
      <title>Re: join between itab and ztable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/join-between-itab-and-ztable/m-p/2372264#M525655</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Saritha,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First select 5 fields in final_itab as mentioned above.&lt;/P&gt;&lt;P&gt;now use below code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT final_itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Read table itab1 with key ...(use common fields as key between itab and final_itab)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;final_itab-field6 = itab-field1.&lt;/P&gt;&lt;P&gt;..like this move all fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Modify final_itab.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it is clear.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Atish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jun 2007 02:39:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/join-between-itab-and-ztable/m-p/2372264#M525655</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-06T02:39:34Z</dc:date>
    </item>
    <item>
      <title>Re: join between itab and ztable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/join-between-itab-and-ztable/m-p/2372265#M525656</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;If you decided to use select inside loop, then your logic should be,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab1 into wa1.&lt;/P&gt;&lt;P&gt;select f1 f2 f3 f4 f5 into corresponding fields of wa_ztable &lt;/P&gt;&lt;P&gt;where f1 = wa1-f1 and f2 = wa1-f2 and f3 = wa1-f3.&lt;/P&gt;&lt;P&gt;move-corresponding wa_ztable to wa_final.&lt;/P&gt;&lt;P&gt;move-corresponding wa1 to wa_final.&lt;/P&gt;&lt;P&gt;append wa_final to itab_final.&lt;/P&gt;&lt;P&gt;endselect.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Otherwise, you can use for all entries.&lt;/P&gt;&lt;P&gt;if not itab[] is initial.&lt;/P&gt;&lt;P&gt;select f1 f2 f3 f4 f5 from bseg into table itab_ztable for all entries in itab&lt;/P&gt;&lt;P&gt;where f1 = itab-f1 and f2 = itab-f2 and f3 = itab-f3.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;loop at itab into wa.&lt;/P&gt;&lt;P&gt;read table itab_ztable into wa_ztable with key f1 = wa-f1&lt;/P&gt;&lt;P&gt;f2 = wa-f2 f3 = wa-f3.&lt;/P&gt;&lt;P&gt;if sy-subrc eq 0.&lt;/P&gt;&lt;P&gt;move-corresponding wa_ztable to wa_final.&lt;/P&gt;&lt;P&gt;move-corresponding wa1 to wa_final.&lt;/P&gt;&lt;P&gt;append wa_final to itab_final.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly reward points by clicking the star on the left of reply,if it helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jun 2007 02:47:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/join-between-itab-and-ztable/m-p/2372265#M525656</guid>
      <dc:creator>jayanthi_jayaraman</dc:creator>
      <dc:date>2007-06-06T02:47:09Z</dc:date>
    </item>
    <item>
      <title>Re: join between itab and ztable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/join-between-itab-and-ztable/m-p/2372266#M525657</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks jayanthi,&lt;/P&gt;&lt;P&gt;thank you very much.&lt;/P&gt;&lt;P&gt;i couldnot assign more points because i already gave those to thers.&lt;/P&gt;&lt;P&gt;i appreciate your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jun 2007 03:06:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/join-between-itab-and-ztable/m-p/2372266#M525657</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-06T03:06:53Z</dc:date>
    </item>
  </channel>
</rss>

