<?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: Inner join giving error message in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join-giving-error-message/m-p/12636142#M2013826</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;In structure, instead of add_number as field name use addrcomm. &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;CODE&gt;TYPES: BEGIN OF FINAL,
       partner TYPE but000-partner,
       addrcomm TYPE bu-addrcomm,
       remark TYPE ad_remark2,
       smtp_addr TYPE ad_smtpadr,
       END OF final.&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 23 Nov 2022 10:33:18 GMT</pubDate>
    <dc:creator>anujawani242683</dc:creator>
    <dc:date>2022-11-23T10:33:18Z</dc:date>
    <item>
      <title>Inner join giving error message</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join-giving-error-message/m-p/12636139#M2013823</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;
  &lt;P&gt;I try to join 3 tables I'm getting this type of error "The field 'Addrcomm' does not have a corresponding field in the work area"&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2116627-image.png" /&gt;&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;TYPES: BEGIN OF FINAL,
       partner TYPE but000-partner,
       add_number TYPE bu-addrcomm,
       remark TYPE ad_remark2,
       email TYPE ad_smtpadr,
       END OF final.

data: it_final type standard table of final.

select bu~partner, bu~addrcomm, at~remark, a6~smtp_addr
from but000 as bu 
inner join adrt as at on at~addrnumber = bu~addrcomm
inner join addr6 as a6 on a6~addrnumber = at~addrnumber
into corresponding fields of table @it_final.

&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;I referred &lt;A href="https://help.sap.com/doc/abapdocu_750_index_htm/7.50/en-US/abapselect_join.htm"&gt;SELECT - JOIN - ABAP Keyword Documentation (sap.com)&lt;/A&gt; I couldn't find out &lt;/P&gt;
  &lt;P&gt;Please help me where I'm doing mistake. &lt;/P&gt;
  &lt;P&gt;Thanks,&lt;/P&gt;
  &lt;P&gt;Nirojan.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Nov 2022 10:19:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join-giving-error-message/m-p/12636139#M2013823</guid>
      <dc:creator>Nirojan</dc:creator>
      <dc:date>2022-11-23T10:19:08Z</dc:date>
    </item>
    <item>
      <title>Re: Inner join giving error message</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join-giving-error-message/m-p/12636140#M2013824</link>
      <description>&lt;P&gt;Either use:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;bu~addrcomm as add_number&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;or rename the field in the structure&lt;/P&gt;</description>
      <pubDate>Wed, 23 Nov 2022 10:23:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join-giving-error-message/m-p/12636140#M2013824</guid>
      <dc:creator>abo</dc:creator>
      <dc:date>2022-11-23T10:23:56Z</dc:date>
    </item>
    <item>
      <title>Re: Inner join giving error message</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join-giving-error-message/m-p/12636141#M2013825</link>
      <description>&lt;P&gt;or remove CORRESPONDING FIELDS OF &lt;/P&gt;</description>
      <pubDate>Wed, 23 Nov 2022 10:29:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join-giving-error-message/m-p/12636141#M2013825</guid>
      <dc:creator>FredericGirod</dc:creator>
      <dc:date>2022-11-23T10:29:00Z</dc:date>
    </item>
    <item>
      <title>Re: Inner join giving error message</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join-giving-error-message/m-p/12636142#M2013826</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;In structure, instead of add_number as field name use addrcomm. &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;CODE&gt;TYPES: BEGIN OF FINAL,
       partner TYPE but000-partner,
       addrcomm TYPE bu-addrcomm,
       remark TYPE ad_remark2,
       smtp_addr TYPE ad_smtpadr,
       END OF final.&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 23 Nov 2022 10:33:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join-giving-error-message/m-p/12636142#M2013826</guid>
      <dc:creator>anujawani242683</dc:creator>
      <dc:date>2022-11-23T10:33:18Z</dc:date>
    </item>
    <item>
      <title>Re: Inner join giving error message</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join-giving-error-message/m-p/12636143#M2013827</link>
      <description>&lt;P&gt;Thanks  &lt;SPAN class="mention-scrubbed"&gt;c5e08e0478aa4727abc4482f5be390b2&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;Hi  &lt;SPAN class="mention-scrubbed"&gt;frdric.girod&lt;/SPAN&gt; removing corresponding is its good practice? &lt;A href="https://blogs.sap.com/2013/07/25/use-of-into-corresponding-fields/"&gt;Use of Into corresponding fields. | SAP Blogs&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Thanks all for your quick response.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Nov 2022 11:12:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join-giving-error-message/m-p/12636143#M2013827</guid>
      <dc:creator>Nirojan</dc:creator>
      <dc:date>2022-11-23T11:12:30Z</dc:date>
    </item>
    <item>
      <title>Re: Inner join giving error message</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join-giving-error-message/m-p/12636144#M2013828</link>
      <description>&lt;P&gt;Thank you  &lt;SPAN class="mention-scrubbed"&gt;anujawani2426&lt;/SPAN&gt;. &lt;/P&gt;</description>
      <pubDate>Wed, 23 Nov 2022 11:13:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join-giving-error-message/m-p/12636144#M2013828</guid>
      <dc:creator>Nirojan</dc:creator>
      <dc:date>2022-11-23T11:13:08Z</dc:date>
    </item>
    <item>
      <title>Re: Inner join giving error message</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join-giving-error-message/m-p/12636145#M2013829</link>
      <description>&lt;P&gt;corresponding is time consuming, I will not say using CORRESPONDING is a good practice. &lt;/P&gt;&lt;P&gt;I think people ask about this option, just to avoid error. But is it better to have error message or to be sure you are doing right ?&lt;/P&gt;</description>
      <pubDate>Wed, 23 Nov 2022 12:07:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join-giving-error-message/m-p/12636145#M2013829</guid>
      <dc:creator>FredericGirod</dc:creator>
      <dc:date>2022-11-23T12:07:56Z</dc:date>
    </item>
    <item>
      <title>Re: Inner join giving error message</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join-giving-error-message/m-p/12636146#M2013830</link>
      <description>&lt;P&gt;  &lt;SPAN class="mention-scrubbed"&gt;frdric.girod&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;According to this blog &lt;A href="https://blogs.sap.com/2012/12/10/why-into-corresponding-is-much-better-than-its-reputation/" target="test_blank"&gt;https://blogs.sap.com/2012/12/10/why-into-corresponding-is-much-better-than-its-reputation/&lt;/A&gt; that's an urban myth.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Nov 2022 12:20:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join-giving-error-message/m-p/12636146#M2013830</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2022-11-23T12:20:15Z</dc:date>
    </item>
    <item>
      <title>Re: Inner join giving error message</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join-giving-error-message/m-p/12636147#M2013831</link>
      <description>&lt;P&gt;&lt;SPAN class="mention-scrubbed"&gt;matthew.billingham&lt;/SPAN&gt; I am surprised he used SQL trace to mesure the time consuming of INTO CORRESPONDING. For me it is not at database level.  &lt;/P&gt;&lt;P&gt;And the argument about dynamic programing is against Clean Code &amp;amp; Security. &lt;/P&gt;&lt;P&gt;I prefer to use it only when the number selected field is different than the internal table.  &lt;/P&gt;</description>
      <pubDate>Wed, 23 Nov 2022 13:41:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join-giving-error-message/m-p/12636147#M2013831</guid>
      <dc:creator>FredericGirod</dc:creator>
      <dc:date>2022-11-23T13:41:46Z</dc:date>
    </item>
    <item>
      <title>Re: Inner join giving error message</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join-giving-error-message/m-p/12636148#M2013832</link>
      <description>&lt;P&gt; &lt;SPAN class="mention-scrubbed"&gt;frdric.girod&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;I must agree concerning clean code and security. It's why I don't like using it with *. But, it isn't less performant. It seems that there's some clever stuff done during compiling so that at runtime, everything is sorted out and the two forms of select end up being pretty much the same.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Nov 2022 14:03:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join-giving-error-message/m-p/12636148#M2013832</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2022-11-23T14:03:58Z</dc:date>
    </item>
    <item>
      <title>Re: Inner join giving error message</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join-giving-error-message/m-p/12636149#M2013833</link>
      <description>&lt;P&gt;I just finished to make a simple test : &lt;/P&gt;&lt;P&gt;(made with SAT)&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;*TYPES : BEGIN OF ts_structure,&lt;BR /&gt;*          matnr TYPE matnr,&lt;BR /&gt;*          matkl TYPE matkl,&lt;BR /&gt;*          meins TYPE meins,&lt;BR /&gt;*          labor TYPE labor,&lt;BR /&gt;*        END   OF ts_structure,&lt;BR /&gt;*        tt_table TYPE STANDARD TABLE OF ts_structure WITH NON-UNIQUE DEFAULT KEY.&lt;BR /&gt;*DATA my_table TYPE tt_table.&lt;BR /&gt;data my_table type standard table of mara with NON-UNIQUE default key.&lt;BR /&gt;START-OF-SELECTION.&lt;BR /&gt;&lt;BR /&gt;  DO 100 TIMES.&lt;BR /&gt;    SELECT matnr, meins, labor, matkl&lt;BR /&gt;           INTO CORRESPONDING FIELDS OF TABLE @my_table&lt;BR /&gt;*           INTO TABLE @my_table&lt;BR /&gt;           FROM mara&lt;BR /&gt;           WHERE ersda LT '20210101'.&lt;BR /&gt;  ENDDO.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2113682-annotation-2022-11-23-151551.png" /&gt;&lt;/P&gt;&lt;P&gt;15:08 and 15:12   were with structure + INTO CORRESPONDING&lt;/P&gt;&lt;P&gt;15:09 and 15:11  were with structure + no INTO CORRESPONDING&lt;/P&gt;&lt;P&gt;15:13 was with no structure (MARA) + INTO CORRESPONDING&lt;/P&gt;&lt;P&gt;so, there is a little difference between INTO CORRESPONDING or not, but a big difference if you use the full MARA internal table. &lt;/P&gt;</description>
      <pubDate>Wed, 23 Nov 2022 14:18:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join-giving-error-message/m-p/12636149#M2013833</guid>
      <dc:creator>FredericGirod</dc:creator>
      <dc:date>2022-11-23T14:18:19Z</dc:date>
    </item>
    <item>
      <title>Re: Inner join giving error message</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join-giving-error-message/m-p/12636150#M2013834</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;SAP best practices (OpenSQL): do not implement "corresponding fields".&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Select ... INTO CORRESPONDING FIELDS OF TABLE @my_table&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 23 Nov 2022 20:22:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join-giving-error-message/m-p/12636150#M2013834</guid>
      <dc:creator>roberto_forti</dc:creator>
      <dc:date>2022-11-23T20:22:45Z</dc:date>
    </item>
    <item>
      <title>Re: Inner join giving error message</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join-giving-error-message/m-p/12636151#M2013835</link>
      <description>&lt;P&gt;Hi &lt;SPAN class="mention-scrubbed"&gt;nirojan&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Hope you are doing great &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;Once Check Out the link in below similar to your question will get more clarity on 3 Table Inner Join&lt;/U&gt;:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://answers.sap.com/questions/13708178/select-query-between-an-internal-table-and-3-joine.html?childToView=13710376" target="test_blank"&gt;https://answers.sap.com/questions/13708178/select-query-between-an-internal-table-and-3-joine.html?childToView=13710376&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Suggu Sandeep.&lt;/P&gt;</description>
      <pubDate>Fri, 25 Nov 2022 05:55:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join-giving-error-message/m-p/12636151#M2013835</guid>
      <dc:creator>sandeep_suggu</dc:creator>
      <dc:date>2022-11-25T05:55:23Z</dc:date>
    </item>
  </channel>
</rss>

