<?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: Diff Btn Join and For all Entries. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/diff-btn-join-and-for-all-entries/m-p/2265608#M491562</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1.  Join is the SQL statement in which the tables on which queried are internally joined, FOR ALL ENTRIES..You first get the details in one internal table basedon that you query another DB table.&lt;/P&gt;&lt;P&gt;2. Go to the table through SE11 and check for indexes. Indexes are used based on the fields in where clause of the query.&lt;/P&gt;&lt;P&gt;3. You can't test BAPI just in SE37 as they may require lots of input so best way is write a small program to test them&lt;/P&gt;&lt;P&gt;4. View and Join internally behaves same. Join done in program, View make join in data dictionary defination &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&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;Atish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 29 May 2007 07:15:08 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-05-29T07:15:08Z</dc:date>
    <item>
      <title>Diff Btn Join and For all Entries.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/diff-btn-join-and-for-all-entries/m-p/2265605#M491559</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts I have few Questions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Wht is the diff btn Join and For all entries.&lt;/P&gt;&lt;P&gt;2.How to find out which index being used.(other than ST05 . Even in ST05 How to look for it)&lt;/P&gt;&lt;P&gt;3.How to test the BAPI. (BAPI doesnt contain a COMMIT WORK stmt)&lt;/P&gt;&lt;P&gt;4.Wht is Diff btn VIew and Join&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Straight to the point answers will be rewarded.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Kiran&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 May 2007 07:10:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/diff-btn-join-and-for-all-entries/m-p/2265605#M491559</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-29T07:10:32Z</dc:date>
    </item>
    <item>
      <title>Re: Diff Btn Join and For all Entries.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/diff-btn-join-and-for-all-entries/m-p/2265606#M491560</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1.Performawnce wise For all entries is better than Join.&lt;/P&gt;&lt;P&gt;4.View and join both are same, a join defined globally in aBAP dictionary ia caled a View.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 May 2007 07:11:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/diff-btn-join-and-for-all-entries/m-p/2265606#M491560</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-29T07:11:49Z</dc:date>
    </item>
    <item>
      <title>Re: Diff Btn Join and For all Entries.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/diff-btn-join-and-for-all-entries/m-p/2265607#M491561</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;1)INNER JOIN - This is used to join two different DATABASE tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FOR ALL ENTRIES - This is used to avoid the SELECT inside a loop. Usually if we want the child details for all the header records of a internal table then you loop at the header table and fire the SELECT. We can avoid the SELECT inside the looop using the FOR ALL ENTRIES clause.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.thespot4sap.com/articles/SAPABAPPerformanceTuning_ForAllEntries.asp" target="test_blank"&gt;http://www.thespot4sap.com/articles/SAPABAPPerformanceTuning_ForAllEntries.asp&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.thespot4sap.com/articles/SAPABAPPerformanceTuning_InnerJoinStatement.asp" target="test_blank"&gt;http://www.thespot4sap.com/articles/SAPABAPPerformanceTuning_InnerJoinStatement.asp&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sswug.org/see/28439" target="test_blank"&gt;http://www.sswug.org/see/28439&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://web.mit.edu/ist/org/admincomputing/dev/abap_review_check_list.htm" target="test_blank"&gt;http://web.mit.edu/ist/org/admincomputing/dev/abap_review_check_list.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapgenie.com/abap/performance.htm" target="test_blank"&gt;http://www.sapgenie.com/abap/performance.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4)There are 4 types views are avilable in SAP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Database View - To club more than one table&lt;/P&gt;&lt;P&gt;Projection View - To hide fields in one table&lt;/P&gt;&lt;P&gt;Maintanance View - To maintain database records in table&lt;/P&gt;&lt;P&gt;Help View - To provide help for a fields (Same functionality as Search help. This is outdated)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;View are improves perfromance in the following aspects&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. If you want to use more than two table in 'JOIN' condition better to use Views . It will improves performance of a program&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. If you want to use mutiple FOR ALL ENTRIES clause, better to club all SELECT statement in a view.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;note:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.Views does not contain data in it. It fetches data from the database only depending on the condition ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2.Views are part of data dictionary. They are a window to view the data in database&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3.views can be used to give security to data. users can be allowed to view only basic data only&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With group requests from different tables, use JOINs or VIEWs. The JOIN is coded directly in ABAP. You can easily adapt it to the requirements of a specific application. The VIEW, however, is specified in the DDIC, which enforces definition uniformity throughout the program. VIEWs, like any table definition, may be used in multiple areas of the program, thus reducing the number of different statements in the statement cache. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Don't use JOINs or VIEWs over tables that are buffered with their technical settings. It is possible, in principle, to buffer a VIEW, but only in rare cases when you can buffer all concerned tables as well. Buffering a VIEW means not only less performance improvement, but also a significant rise in memory allocation and overhead during buffer synchronization. If you mix buffered and unbuffered tables in one access rather than reading both table types, you always lose performance because the database interface will not use the existing buffers. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the SAP environment, there is a small but significant difference between JOIN and VIEW: In client dependent tables, every table in the JOIN MANDT = SY-MANDT is generated as part of the WHERE clause. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For VIEW, however, this WHERE clause is generated only for the table that provides MANDT in the VIEW projection list. Even though MANDT from each of the tables can join together the VIEW tables, significant processing differences in these tables can occur within VIEW if MANDT also appears in the indexes of the other tables that are included. These differences result from the fact that database optimizers only interpret the WHERE clause of VIEW to determine the first access. Therefore, you should take MANDT from the field list of the VIEW from the table providing the most selective first access. If the secondary tables include MANDT in their indexes and a selective primary table cannot be determined, then you should not use a VIEW. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3)it is similar to the execution of any fun module.&lt;/P&gt;&lt;P&gt;Enter the BAPI Name in se37 tcode and press F8.&lt;/P&gt;&lt;P&gt;then pass the following parameters to it (depending upon the requirement you have).&lt;/P&gt;&lt;P&gt;DOCUMENTTYPE&lt;/P&gt;&lt;P&gt;DOCUMENTNUMBER&lt;/P&gt;&lt;P&gt;DOCUMENTPART&lt;/P&gt;&lt;P&gt;DOCUMENTVERSION &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;result will be displayed in OBJECT links.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Priyanka.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 May 2007 07:14:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/diff-btn-join-and-for-all-entries/m-p/2265607#M491561</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-29T07:14:25Z</dc:date>
    </item>
    <item>
      <title>Re: Diff Btn Join and For all Entries.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/diff-btn-join-and-for-all-entries/m-p/2265608#M491562</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1.  Join is the SQL statement in which the tables on which queried are internally joined, FOR ALL ENTRIES..You first get the details in one internal table basedon that you query another DB table.&lt;/P&gt;&lt;P&gt;2. Go to the table through SE11 and check for indexes. Indexes are used based on the fields in where clause of the query.&lt;/P&gt;&lt;P&gt;3. You can't test BAPI just in SE37 as they may require lots of input so best way is write a small program to test them&lt;/P&gt;&lt;P&gt;4. View and Join internally behaves same. Join done in program, View make join in data dictionary defination &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&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;Atish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 May 2007 07:15:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/diff-btn-join-and-for-all-entries/m-p/2265608#M491562</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-29T07:15:08Z</dc:date>
    </item>
    <item>
      <title>Re: Diff Btn Join and For all Entries.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/diff-btn-join-and-for-all-entries/m-p/2265609#M491563</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;Join : Fetching values from joining two or more DB within one select query&lt;/P&gt;&lt;P&gt;For all entries : using two or more select queries &amp;amp; in laterone fetching values for all the corresponding values fetched in first imternal table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As SAP works on an application server, its always better to use FOR ALL ENTRIES avoding performace issue of joining two DB tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Sandeep&lt;/P&gt;&lt;P&gt;Reward if helpful &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 May 2007 07:17:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/diff-btn-join-and-for-all-entries/m-p/2265609#M491563</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-29T07:17:25Z</dc:date>
    </item>
  </channel>
</rss>

