<?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: join two table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/join-two-table/m-p/2971802#M701387</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can not join BSEG on BSAK.&lt;/P&gt;&lt;P&gt;Since BSEG being a cluster table type.&lt;/P&gt;&lt;P&gt;Instead you can use FOR ALL ENTRIES for the internal table IT_BSAK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select &amp;lt;FIELDS&amp;gt; from BSAK into table IT_BSAK.&lt;/P&gt;&lt;P&gt;if not it_bsak[] is initial.&lt;/P&gt;&lt;P&gt;select &amp;lt;FIELDS&amp;gt; from BSEG &lt;/P&gt;&lt;P&gt;                for all entries in IT_BSAK &lt;/P&gt;&lt;P&gt;                into table IT_BSEG&lt;/P&gt;&lt;P&gt;                where BELNR = IT_BSAK-BELNR. " Match the common fields together&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Gopi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 25 Oct 2007 05:46:56 GMT</pubDate>
    <dc:creator>gopi_narendra</dc:creator>
    <dc:date>2007-10-25T05:46:56Z</dc:date>
    <item>
      <title>join two table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/join-two-table/m-p/2971801#M701386</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello sir/medam.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i hane two pooled table  BSEG and BSAK then i want joint the field together ..how use get command for that ....nd u have another solution plz tel me..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Oct 2007 05:45:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/join-two-table/m-p/2971801#M701386</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-25T05:45:10Z</dc:date>
    </item>
    <item>
      <title>Re: join two table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/join-two-table/m-p/2971802#M701387</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can not join BSEG on BSAK.&lt;/P&gt;&lt;P&gt;Since BSEG being a cluster table type.&lt;/P&gt;&lt;P&gt;Instead you can use FOR ALL ENTRIES for the internal table IT_BSAK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select &amp;lt;FIELDS&amp;gt; from BSAK into table IT_BSAK.&lt;/P&gt;&lt;P&gt;if not it_bsak[] is initial.&lt;/P&gt;&lt;P&gt;select &amp;lt;FIELDS&amp;gt; from BSEG &lt;/P&gt;&lt;P&gt;                for all entries in IT_BSAK &lt;/P&gt;&lt;P&gt;                into table IT_BSEG&lt;/P&gt;&lt;P&gt;                where BELNR = IT_BSAK-BELNR. " Match the common fields together&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Gopi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Oct 2007 05:46:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/join-two-table/m-p/2971802#M701387</guid>
      <dc:creator>gopi_narendra</dc:creator>
      <dc:date>2007-10-25T05:46:56Z</dc:date>
    </item>
    <item>
      <title>Re: join two table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/join-two-table/m-p/2971803#M701388</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1)It is recommended that&lt;/P&gt;&lt;P&gt;first select entries from only one table(say, BKPF), After that, using the internal table,&lt;/P&gt;&lt;P&gt;FOR ALL ENTRIES, and BSEG table,select the relevant entries from BSEG table.&lt;/P&gt;&lt;P&gt;Performance wise, this will be very fast.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2)you can't directly join on BSEG but depending on which data you want to access you might be able to use an alternative table. eg, BSID or BSAD for open or cleared customer items or BSIK/BSAK for open or cleared vendor items.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Oct 2007 05:50:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/join-two-table/m-p/2971803#M701388</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-25T05:50:28Z</dc:date>
    </item>
    <item>
      <title>Re: join two table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/join-two-table/m-p/2971804#M701389</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if u r doin sumthin like fb60 then...&lt;/P&gt;&lt;P&gt;use this.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;TABLES:   bsik, bsak, bseg.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;SELECT-OPTIONS: s_bukrs FOR bsik-bukrs OBLIGATORY,&lt;/P&gt;&lt;P&gt;                s_lifnr FOR bsik-lifnr OBLIGATORY.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;DATA: BEGIN OF bsik_int OCCURS 0.&lt;/P&gt;&lt;P&gt;        INCLUDE STRUCTURE bsik.&lt;/P&gt;&lt;P&gt;DATA: END   OF bsik_int.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;DATA: BEGIN OF bseg_int OCCURS 0.&lt;/P&gt;&lt;P&gt;        INCLUDE STRUCTURE bseg.&lt;/P&gt;&lt;P&gt;DATA: END   OF bseg_int.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;SELECT        * FROM  bsik&lt;/P&gt;&lt;P&gt;  INTO TABLE bsik_int&lt;/P&gt;&lt;P&gt;       WHERE  bukrs  IN s_bukrs&lt;/P&gt;&lt;P&gt;       AND    lifnr  IN s_lifnr.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;SELECT        * FROM  bsak&lt;/P&gt;&lt;P&gt;  APPENDING TABLE bsik_int&lt;/P&gt;&lt;P&gt;       WHERE  bukrs  IN s_bukrs&lt;/P&gt;&lt;P&gt;       AND    lifnr  IN s_lifnr.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;SELECT        * FROM  bseg&lt;/P&gt;&lt;P&gt;  INTO TABLE bseg_int&lt;/P&gt;&lt;P&gt;  FOR ALL ENTRIES IN bsik_int&lt;/P&gt;&lt;P&gt;       WHERE  bukrs  = bsik_int-bukrs&lt;/P&gt;&lt;P&gt;       AND    belnr  = bsik_int-belnr&lt;/P&gt;&lt;P&gt;       AND    gjahr  = bsik_int-gjahr&lt;/P&gt;&lt;P&gt;       AND    ebeln  = space.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Oct 2007 05:53:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/join-two-table/m-p/2971804#M701389</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-25T05:53:33Z</dc:date>
    </item>
    <item>
      <title>Re: join two table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/join-two-table/m-p/2971805#M701390</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks  a lot for your Rewards!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Oct 2007 06:49:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/join-two-table/m-p/2971805#M701390</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-25T06:49:54Z</dc:date>
    </item>
    <item>
      <title>Re: join two table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/join-two-table/m-p/2971806#M701391</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello sir &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select &amp;lt;FIELDS&amp;gt; from BSAK into table IT_BSAK.&lt;/P&gt;&lt;P&gt;if not it_bsak[] is initial.&lt;/P&gt;&lt;P&gt;select &amp;lt;FIELDS&amp;gt; from BSEG &lt;/P&gt;&lt;P&gt;for all entries in IT_BSAK &lt;/P&gt;&lt;P&gt;into table IT_BSEG&lt;/P&gt;&lt;P&gt;where BELNR = IT_BSAK-BELNR. " Match the common fields together&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in this code, what purpose of if command...plz say detail&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regard&lt;/P&gt;&lt;P&gt;mukesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Oct 2007 08:49:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/join-two-table/m-p/2971806#M701391</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-31T08:49:09Z</dc:date>
    </item>
  </channel>
</rss>

