<?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: About inner join problem in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-inner-join-problem/m-p/4096516#M979582</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This message was moderated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 10 Jul 2008 12:34:11 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-07-10T12:34:11Z</dc:date>
    <item>
      <title>About inner join problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-inner-join-problem/m-p/4096514#M979580</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have given the innerjoin between BKPF &amp;amp; BSEG tables,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And i am fetching BUKRS, BELNR,GJAHR, BLART,BLDAT,BUDAT  fields from BKPF and BUZEi from BSEG table, but it is showing error as u cannot create inner join for BSEG table,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly help me on this .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Jul 2008 12:30:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/about-inner-join-problem/m-p/4096514#M979580</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-10T12:30:19Z</dc:date>
    </item>
    <item>
      <title>Re: About inner join problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-inner-join-problem/m-p/4096515#M979581</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. JOINS are not allowed in Cluster tables.&lt;/P&gt;&lt;P&gt;Fetch the values separately.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Kothand&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Jul 2008 12:32:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/about-inner-join-problem/m-p/4096515#M979581</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-10T12:32:10Z</dc:date>
    </item>
    <item>
      <title>Re: About inner join problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-inner-join-problem/m-p/4096516#M979582</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This message was moderated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Jul 2008 12:34:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/about-inner-join-problem/m-p/4096516#M979582</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-10T12:34:11Z</dc:date>
    </item>
    <item>
      <title>Re: About inner join problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-inner-join-problem/m-p/4096517#M979583</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ravi C,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tyr it like the below example and rewards point if useful to u.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select belnr gjahr bukrs blart bldat budat from bkpf into table itab_bkpf where budat in p_date and bukrs in p_bukrs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if not itab_bkpf[] is initial.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select belnr buzei from bseg into table itab_bseg for all entries in itab_bkpf where belnr eq itab_bkpf-belnr and gjahr eq itab_bkpf-gjahr.&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;Note: using bseg table may affect in performance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;sankar.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Jul 2008 12:45:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/about-inner-join-problem/m-p/4096517#M979583</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-10T12:45:35Z</dc:date>
    </item>
    <item>
      <title>Re: About inner join problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-inner-join-problem/m-p/4096518#M979584</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;  Being &lt;STRONG&gt;BSEG&lt;/STRONG&gt; a Cluster Table, so &lt;STRONG&gt;you cannot write the JOINS&lt;/STRONG&gt; on it, instead of this get BKPF details and fetch the relavent details from the BSEG.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Jul 2008 12:45:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/about-inner-join-problem/m-p/4096518#M979584</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-10T12:45:36Z</dc:date>
    </item>
    <item>
      <title>Re: About inner join problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-inner-join-problem/m-p/4096519#M979585</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello,&lt;/P&gt;&lt;P&gt; as BSEG is a cluster table u cannot use join for it , it also affects the performance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do like this as BSEG data is segregrated to different tables based on customer , vendor and GL.&lt;/P&gt;&lt;P&gt;for customer use tables BSID, BSAD&lt;/P&gt;&lt;P&gt;for vendor use tables BSIK,BSAK&lt;/P&gt;&lt;P&gt;for GL use tables BSIS, BSAS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Based on ur requirement see  from which table u can get that data. and use Join for BKPF and corresponding table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds.,&lt;/P&gt;&lt;P&gt;subash&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Jul 2008 13:11:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/about-inner-join-problem/m-p/4096519#M979585</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-10T13:11:18Z</dc:date>
    </item>
    <item>
      <title>Re: About inner join problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-inner-join-problem/m-p/4096520#M979586</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;I using the code like this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It displaying the output without displaying any data in BUZEI field,  Even i have given the field name in the field catalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could u plz help me on this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Waiting for ur reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES  : BEGIN OF T_BKPF,&lt;/P&gt;&lt;P&gt;        BUKRS TYPE BKPF-BUKRS,&lt;/P&gt;&lt;P&gt;        BELNR TYPE BKPF-BELNR,&lt;/P&gt;&lt;P&gt;        GJAHR TYPE BKPF-GJAHR,&lt;/P&gt;&lt;P&gt;        BLART TYPE BKPF-BLART,&lt;/P&gt;&lt;P&gt;        BLDAT TYPE BKPF-BLDAT,&lt;/P&gt;&lt;P&gt;        BUDAT TYPE BKPF-BUDAT,&lt;/P&gt;&lt;P&gt;        BUZEI TYPE BSEG-BUZEI,&lt;/P&gt;&lt;P&gt;        END OF T_BKPF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;types: begin of t_bseg,&lt;/P&gt;&lt;P&gt;       BUKRS TYPE BSEG-BUKRS,&lt;/P&gt;&lt;P&gt;       BELNR TYPE BSEG-BELNR,&lt;/P&gt;&lt;P&gt;       GJAHR TYPE BSEG-GJAHR,&lt;/P&gt;&lt;P&gt;       end of t_bseg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : it_bkpf TYPE STANDARD TABLE OF t_bkpf with header line,&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      wa_bkpf TYPE t_bkpf,&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;       it_bseg type standard table of t_bseg.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      wa_bseg type t_bseg.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select bukrs belnr gjahr from bseg into table it_bseg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform data_retrieval_bseg.&lt;/P&gt;&lt;P&gt;perform data_retrieval.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form data_retrieval_bseg .&lt;/P&gt;&lt;P&gt;  select buzei from bseg into table it_bkpf.&lt;/P&gt;&lt;P&gt;endform.                    " data_retrieval_bseg&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Form  DATA_RETRIEVAL&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form data_retrieval.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; IF it_bseg[] IS NOT INITIAL.&lt;/P&gt;&lt;P&gt;   select bukrs belnr gjahr blart bldat budat from bkpf into&lt;/P&gt;&lt;P&gt;     table it_bkpf for all entries in it_bseg&lt;/P&gt;&lt;P&gt;     where bukrs = it_bseg-bukrs&lt;/P&gt;&lt;P&gt;     and belnr = it_bseg-belnr&lt;/P&gt;&lt;P&gt;     and gjahr = it_bseg-gjahr.&lt;/P&gt;&lt;P&gt;     endif.&lt;/P&gt;&lt;P&gt;endform.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Jul 2008 07:03:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/about-inner-join-problem/m-p/4096520#M979586</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-11T07:03:51Z</dc:date>
    </item>
    <item>
      <title>Re: About inner join problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-inner-join-problem/m-p/4096521#M979587</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;And i am fetching BUKRS, BELNR,GJAHR, BLART,BLDAT,BUDAT fields from BKPF and BUZEi from BSEG&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;exactly what they said before. BSEG is the cluster table we cant use JOINS condition when we are fetching the data from cluster table and transparent tables. on that situation we have to use FOR ALL ENTRIES performance wise which is best one&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;just try this code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select bukrs belnr gjahr blart bldat budat  &lt;/P&gt;&lt;P&gt;into table i_bkpf&lt;/P&gt;&lt;P&gt;from bkpf&lt;/P&gt;&lt;P&gt;where &amp;lt;condition&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if not i_bkpf[] is initial.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select buzei &lt;/P&gt;&lt;P&gt;into table i_bseg&lt;/P&gt;&lt;P&gt;from bseg for all entries in i_bkpf&lt;/P&gt;&lt;P&gt;where bukrs = i_bkpf-bukrs&lt;/P&gt;&lt;P&gt;and belnr = i_bkpf-belnr&lt;/P&gt;&lt;P&gt;and gjahr = i_bkpf-gjahr..&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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sriram.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Jul 2008 07:25:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/about-inner-join-problem/m-p/4096521#M979587</guid>
      <dc:creator>venkatasriram_mygapula</dc:creator>
      <dc:date>2008-07-11T07:25:00Z</dc:date>
    </item>
    <item>
      <title>Re: About inner join problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-inner-join-problem/m-p/4096522#M979588</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ravi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the mistake which was done by you that, in recent version of SAP,  BUZEI field is not available in the table BKPF. it is available &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;from the table BSEG.  So, try to fetch BUZEI  from  BSEG, not from BKPF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hopefully this will help you to solve you to solve the issue. another thing, try to write the codes as per the event firing. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;lt;points begging removed by moderator&amp;gt;&lt;/EM&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;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Mrinmoy&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Thomas Zloch on Jun 15, 2011 1:30 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jun 2011 11:48:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/about-inner-join-problem/m-p/4096522#M979588</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-06-14T11:48:51Z</dc:date>
    </item>
    <item>
      <title>Re: About inner join problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-inner-join-problem/m-p/4096523#M979589</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;  Why ur wirting one more select query for getting BUZEI from BSEG table. right the code like below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
TYPES : BEGIN OF T_BKPF,
BUKRS TYPE BKPF-BUKRS,
BELNR TYPE BKPF-BELNR,
GJAHR TYPE BKPF-GJAHR,
BLART TYPE BKPF-BLART,
BLDAT TYPE BKPF-BLDAT,
BUDAT TYPE BKPF-BUDAT,
*BUZEI TYPE BSEG-BUZEI,"comment the BUZEI here
END OF T_BKPF.

types: begin of t_bseg,
BUKRS TYPE BSEG-BUKRS,
BELNR TYPE BSEG-BELNR,
GJAHR TYPE BSEG-GJAHR,
BUZEI TYPE BSEG-BUZEI," add the field here
end of t_bseg.

DATA : it_bkpf TYPE STANDARD TABLE OF t_bkpf with header line,
* wa_bkpf TYPE t_bkpf,
it_bseg type standard table of t_bseg.
* wa_bseg type t_bseg.

select bukrs belnr gjahr BUZEI "add the BUZEI here
     from bseg into table it_bseg.

*perform data_retrieval_bseg."comment the perform
perform data_retrieval.

*form data_retrieval_bseg .
*select buzei from bseg into table it_bkpf."no need to call one more select query
*endform. " data_retrieval_bseg

form data_retrieval.

IF it_bseg[] IS NOT INITIAL.
select bukrs belnr gjahr blart bldat budat from bkpf into
table it_bkpf for all entries in it_bseg
where bukrs = it_bseg-bukrs
and belnr = it_bseg-belnr
and gjahr = it_bseg-gjahr.
endif.
endform.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Dhina..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jun 2011 12:26:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/about-inner-join-problem/m-p/4096523#M979589</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-06-14T12:26:22Z</dc:date>
    </item>
    <item>
      <title>Re: About inner join problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-inner-join-problem/m-p/4096524#M979590</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check the date of the OP before anyone else jumps in&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jun 2011 13:06:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/about-inner-join-problem/m-p/4096524#M979590</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-06-14T13:06:40Z</dc:date>
    </item>
  </channel>
</rss>

