<?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: need help with join in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-with-join/m-p/2388772#M530993</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;               y ur not using for all entries, that will best in this situation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use for all entries like that&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLEAR : T_EQUZ,T_EQUZ[].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT * FROM EQUZ INTO TABLE T_EQUZ&lt;/P&gt;&lt;P&gt;                   WHERE DATBI = '99991231'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF NOT T_EQUZ[] IS INITIAL.&lt;/P&gt;&lt;P&gt;  select J_3GBELNRI equnr J_3GEMPFAE into&lt;/P&gt;&lt;P&gt;       corresponding fields of table&lt;/P&gt;&lt;P&gt;       T_J_3GBELP from J_3GBELP&lt;/P&gt;&lt;P&gt;       FOR ALL ENTRIES IN T_EQUZ&lt;/P&gt;&lt;P&gt;       where j_3guposnr ne '1'&lt;/P&gt;&lt;P&gt;       and J_3GEMPFAE in Reciver&lt;/P&gt;&lt;P&gt;       and equnr = T_EQUZ-EQUNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;vijay dwivedi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rewards if usefull&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 01 Jun 2007 14:23:36 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-06-01T14:23:36Z</dc:date>
    <item>
      <title>need help with join</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-with-join/m-p/2388768#M530989</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Extract each entry from BSEG for BELNRs in BKPF-BELNR,&lt;/P&gt;&lt;P&gt;and KOSTL in ZTABLE-KOSTL.&lt;/P&gt;&lt;P&gt;sum(DMBTR) by KOSTL into&lt;/P&gt;&lt;P&gt;internal tab &amp;lt;ITAB (fields KOSTL, DMBTR)&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i wrote the code like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select sum( a&lt;SUB&gt;DMBTR ) a&lt;/SUB&gt;KOSTL into inkostltotal from BSEG as a&lt;/P&gt;&lt;P&gt;inner join BKPF as b on b&lt;SUB&gt;BELNR = a&lt;/SUB&gt;BELNR&lt;/P&gt;&lt;P&gt;inner join Ztable as c on c~KOSTL = a-KOSTL&lt;/P&gt;&lt;P&gt;group by a~KOSTL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it was giving error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You cannot use comparisons with column column references in pool and&lt;/P&gt;&lt;P&gt;cluster tables: "A~BELNR". column references in pool and cluster&lt;/P&gt;&lt;P&gt;tables: "A~BELNR". column references in pool and cluster tables:&lt;/P&gt;&lt;P&gt;"A&lt;SUB&gt;BELNR". column tables: "A&lt;/SUB&gt;BELNR".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i need to use select, sum, group by to solve this can some one &lt;/P&gt;&lt;P&gt;help me with this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Jun 2007 14:08:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-with-join/m-p/2388768#M530989</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-01T14:08:06Z</dc:date>
    </item>
    <item>
      <title>Re: need help with join</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-with-join/m-p/2388769#M530990</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;You can not use Inner Join on cluster tables. You need to find an alternate table or retrieve the records from cluster table into internal table and use FOR ALL ENTRIES clause in select query.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ferry Lianto&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Jun 2007 14:12:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-with-join/m-p/2388769#M530990</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-01T14:12:28Z</dc:date>
    </item>
    <item>
      <title>Re: need help with join</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-with-join/m-p/2388770#M530991</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try otherwise left outer join instead of inner join&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Jun 2007 14:14:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-with-join/m-p/2388770#M530991</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-01T14:14:21Z</dc:date>
    </item>
    <item>
      <title>Re: need help with join</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-with-join/m-p/2388771#M530992</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;You cannot use JOIN statement for a cluster table (BSEG). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try to extract the entries from BKPF into an internal table (say i_bkpf), and form another SELECT statement for BSEG using entries in i_bkpf with FOR ALL ENTRIES IN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Patrick&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Jun 2007 14:23:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-with-join/m-p/2388771#M530992</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-01T14:23:35Z</dc:date>
    </item>
    <item>
      <title>Re: need help with join</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-with-join/m-p/2388772#M530993</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;               y ur not using for all entries, that will best in this situation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use for all entries like that&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLEAR : T_EQUZ,T_EQUZ[].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT * FROM EQUZ INTO TABLE T_EQUZ&lt;/P&gt;&lt;P&gt;                   WHERE DATBI = '99991231'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF NOT T_EQUZ[] IS INITIAL.&lt;/P&gt;&lt;P&gt;  select J_3GBELNRI equnr J_3GEMPFAE into&lt;/P&gt;&lt;P&gt;       corresponding fields of table&lt;/P&gt;&lt;P&gt;       T_J_3GBELP from J_3GBELP&lt;/P&gt;&lt;P&gt;       FOR ALL ENTRIES IN T_EQUZ&lt;/P&gt;&lt;P&gt;       where j_3guposnr ne '1'&lt;/P&gt;&lt;P&gt;       and J_3GEMPFAE in Reciver&lt;/P&gt;&lt;P&gt;       and equnr = T_EQUZ-EQUNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;vijay dwivedi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rewards if usefull&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Jun 2007 14:23:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-with-join/m-p/2388772#M530993</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-01T14:23:36Z</dc:date>
    </item>
    <item>
      <title>Re: need help with join</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-with-join/m-p/2388773#M530994</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you please talk to your FI specialist? It looks like you are being asked to get data from the wrong place - it should come from the CO (Controlling module), see tables COBK, COEP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BSEG is a very big table, you cannot add indexes to it because it is a Cluster table, so trying to SELECT on a non key field like KOSTL should not be done.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Jun 2007 14:52:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-with-join/m-p/2388773#M530994</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-01T14:52:23Z</dc:date>
    </item>
  </channel>
</rss>

