<?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 Optimization in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/join-optimization/m-p/10011081#M1805542</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="color: #333333; font-size: 9.0pt; font-family: 'inherit','serif';"&gt;First get the&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #333333; font-size: 9.0pt; font-family: 'inherit','serif';"&gt;MARA, MARC and MBEW&amp;nbsp; based &lt;/SPAN&gt;&lt;SPAN style="color: #333333; font-size: 9.0pt; font-family: 'inherit','serif';"&gt;on Material and Plant,&lt;/SPAN&gt;&lt;/P&gt;&lt;OL style="list-style-type: decimal;"&gt;&lt;LI&gt;&lt;SPAN style="color: #333333; font-size: 9.0pt; font-family: 'inherit','serif';"&gt;Don’t overload the data base, try to use ABAP space for&amp;nbsp; &lt;SPAN style="color: #333333; font-family: Arial, sans-serif; font-size: 12px;"&gt;manipulate the data.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="color: #333333; font-size: 9.0pt; font-family: 'inherit','serif';"&gt;Don’t use &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: #333333;"&gt;CORRESPONDING &lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&lt;SPAN style="color: #333333; font-size: 9.0pt; font-family: 'inherit','serif';"&gt;FIELDS&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&lt;SPAN style="color: #333333; font-size: 9.0pt; font-family: 'inherit','serif';"&gt;OF&lt;/SPAN&gt;&lt;SPAN style="color: #333333; font-size: 9.0pt; font-family: 'inherit','serif';"&gt;, it will affect the performance&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="color: #333333; font-size: 9.0pt; font-family: 'inherit','serif';"&gt;For Material description, get it in a separate internal table and whenever required, just use read.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="color: #333333; font-size: 9.0pt; font-family: 'inherit','serif';"&gt;For Acc text, read all the data from table TVKMT and keep it in a separate table and read the data whenever required.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="color: #333333; font-size: 9.0pt; font-family: 'inherit','serif';"&gt;Based on MARA, MARC and MBEW output, read the data from table MVKE (using the KEY input of MATNR, VKORG and &lt;/SPAN&gt;&lt;STRONG style="color: black; background: #E9EEF4; font-size: 8.5pt; font-family: 'Arial','sans-serif';"&gt; &lt;/STRONG&gt;&lt;SPAN style="font-size: 8.5pt; font-family: 'Arial','sans-serif'; color: black; background: #E9EEF4;"&gt;VTWEG&lt;/SPAN&gt;)&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="color: #333333; font-size: 9.0pt; font-family: 'inherit','serif';"&gt;Now you have all that data in your MVKE internal table and &lt;STRONG&gt;delete the data from internal table with vsalue of &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: #333333;"&gt;&lt;STRONG&gt;ktgrm&lt;/STRONG&gt;.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: #333333;"&gt;Loop the MVKE internal table and manipulate it and&amp;nbsp; finally move to final internal table&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: #333333;"&gt;Try to use sort internal table, &lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Jan 2014 18:12:18 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2014-01-16T18:12:18Z</dc:date>
    <item>
      <title>Join Optimization</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/join-optimization/m-p/10011079#M1805540</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So my task has been to join several tables together so that the accountants can check account assignments.&amp;nbsp; They wanted several fields from a total of 6 tables.&amp;nbsp; It is difficult to do this because of needing the account assignment description and the valuation class so that nothing is left out when joining these tables.&amp;nbsp; The code below works, but is getting a great deal of information because they want to be able to run it wide open and sort it after using the ALV Grid.&amp;nbsp; The only filter on the join that is mandatory is the language, but obviously running this without anything else takes a long time.&amp;nbsp; I have debugged this and I know that the LOOP AT statements are what is causing this to run so slow.&amp;nbsp; I'm trying to figure out a way to optimize this, maybe with a SELECT...ENDSELECT loop and do it all at once, but I am pretty new to ABAP and am having trouble getting started.&amp;nbsp; If anyone could give assistance that would be great!&amp;nbsp; Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV style="border: solid; background-color: #e0e0e0;"&gt;&lt;P&gt;&lt;SPAN class="L0S31"&gt;*Put data into internal table (Plant, Mat No, Mat Type, Mat Stat, Mat Desc, Valuation Class, Procurement Type, Sales Org, Dist Ch, Div ID, AAG, and AAG Desc&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;SELECT &lt;/SPAN&gt;mvke&lt;SPAN class="L0S70"&gt;~&lt;/SPAN&gt;matnr mvke&lt;SPAN class="L0S70"&gt;~&lt;/SPAN&gt;vkorg mvke&lt;SPAN class="L0S70"&gt;~&lt;/SPAN&gt;vtweg mvke&lt;SPAN class="L0S70"&gt;~&lt;/SPAN&gt;ktgrm mara&lt;SPAN class="L0S70"&gt;~&lt;/SPAN&gt;mtart mara&lt;SPAN class="L0S70"&gt;~&lt;/SPAN&gt;spart makt&lt;SPAN class="L0S70"&gt;~&lt;/SPAN&gt;maktx marc&lt;SPAN class="L0S70"&gt;~&lt;/SPAN&gt;werks marc&lt;SPAN class="L0S70"&gt;~&lt;/SPAN&gt;mmsta marc&lt;SPAN class="L0S70"&gt;~&lt;/SPAN&gt;beskz marc&lt;SPAN class="L0S70"&gt;~&lt;/SPAN&gt;sobsl&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;FROM &lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;( &lt;/SPAN&gt;mvke&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; INNER &lt;SPAN class="L0S52"&gt;JOIN &lt;/SPAN&gt;mara&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;ON &lt;/SPAN&gt;mara&lt;SPAN class="L0S70"&gt;~&lt;/SPAN&gt;matnr &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;mvke&lt;SPAN class="L0S70"&gt;~&lt;/SPAN&gt;matnr&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; INNER &lt;SPAN class="L0S52"&gt;JOIN &lt;/SPAN&gt;makt&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;ON &lt;/SPAN&gt;makt&lt;SPAN class="L0S70"&gt;~&lt;/SPAN&gt;matnr &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;mvke&lt;SPAN class="L0S70"&gt;~&lt;/SPAN&gt;matnr&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; INNER &lt;SPAN class="L0S52"&gt;JOIN&amp;nbsp; &lt;/SPAN&gt;marc&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;ON &lt;/SPAN&gt;marc&lt;SPAN class="L0S70"&gt;~&lt;/SPAN&gt;matnr &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;mvke&lt;SPAN class="L0S70"&gt;~&lt;/SPAN&gt;matnr &lt;SPAN class="L0S55"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;INTO &lt;/SPAN&gt;CORRESPONDING &lt;SPAN class="L0S52"&gt;FIELDS &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;OF &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;TABLE &lt;/SPAN&gt;dt_materials&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;WHERE &lt;/SPAN&gt;marc&lt;SPAN class="L0S70"&gt;~&lt;/SPAN&gt;werks &lt;SPAN class="L0S52"&gt;IN &lt;/SPAN&gt;werks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;AND &lt;/SPAN&gt;makt&lt;SPAN class="L0S70"&gt;~&lt;/SPAN&gt;spras &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;spras&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;AND &lt;/SPAN&gt;mvke&lt;SPAN class="L0S70"&gt;~&lt;/SPAN&gt;ktgrm &lt;SPAN class="L0S52"&gt;IN &lt;/SPAN&gt;ktgrm&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;AND &lt;/SPAN&gt;mvke&lt;SPAN class="L0S70"&gt;~&lt;/SPAN&gt;matnr &lt;SPAN class="L0S52"&gt;IN &lt;/SPAN&gt;matnr&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;AND &lt;/SPAN&gt;mvke&lt;SPAN class="L0S70"&gt;~&lt;/SPAN&gt;vkorg &lt;SPAN class="L0S52"&gt;IN &lt;/SPAN&gt;vkorg&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;AND &lt;/SPAN&gt;mvke&lt;SPAN class="L0S70"&gt;~&lt;/SPAN&gt;vtweg &lt;SPAN class="L0S52"&gt;IN &lt;/SPAN&gt;vtweg&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S31"&gt;* Gets Account Assignment Group Description&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;LOOP &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;AT &lt;/SPAN&gt;dt_materials &lt;SPAN class="L0S52"&gt;INTO &lt;/SPAN&gt;ds_materials&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; tab_index &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;sy&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;tabix&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;SELECT &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;SINGLE &lt;/SPAN&gt;tvkmt&lt;SPAN class="L0S70"&gt;~&lt;/SPAN&gt;vtext&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;INTO &lt;/SPAN&gt;ds_materials&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;vtext&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;FROM &lt;/SPAN&gt;tvkmt&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;WHERE &lt;/SPAN&gt;tvkmt&lt;SPAN class="L0S70"&gt;~&lt;/SPAN&gt;ktgrm &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;ds_materials&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;ktgrm&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;AND &lt;/SPAN&gt;tvkmt&lt;SPAN class="L0S70"&gt;~&lt;/SPAN&gt;spras &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;spras&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;SELECT &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;SINGLE &lt;/SPAN&gt;bklas&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;INTO &lt;/SPAN&gt;ds_materials&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;bklas&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;FROM &lt;/SPAN&gt;mbew&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;WHERE &lt;/SPAN&gt;matnr &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;ds_materials&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;matnr&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;AND&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;bwkey &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;ds_materials&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;werks&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;IF &lt;/SPAN&gt;sy&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;subrc &lt;SPAN class="L0S52"&gt;EQ &lt;/SPAN&gt;&lt;SPAN class="L0S32"&gt;0&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;MODIFY &lt;/SPAN&gt;dt_materials &lt;SPAN class="L0S52"&gt;FROM &lt;/SPAN&gt;ds_materials &lt;SPAN class="L0S52"&gt;INDEX &lt;/SPAN&gt;tab_index &lt;SPAN class="L0S52"&gt;TRANSPORTING &lt;/SPAN&gt;vtext bklas&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;ENDIF&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;ENDLOOP&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jan 2014 13:22:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/join-optimization/m-p/10011079#M1805540</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-01-16T13:22:29Z</dc:date>
    </item>
    <item>
      <title>Re: Join Optimization</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/join-optimization/m-p/10011080#M1805541</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Joining MARC and MVKE can be problematic. Plant view and sales view, both have only MATNR in common. Suppose you have three plants and four sales views for a MATNR, this would give you twelve rows in the result. Much more, if more plants and sales views are involved. &lt;/P&gt;&lt;P&gt;How do you or your accountants expect this to look like in the list?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jan 2014 14:26:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/join-optimization/m-p/10011080#M1805541</guid>
      <dc:creator>ThomasZloch</dc:creator>
      <dc:date>2014-01-16T14:26:05Z</dc:date>
    </item>
    <item>
      <title>Re: Join Optimization</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/join-optimization/m-p/10011081#M1805542</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="color: #333333; font-size: 9.0pt; font-family: 'inherit','serif';"&gt;First get the&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #333333; font-size: 9.0pt; font-family: 'inherit','serif';"&gt;MARA, MARC and MBEW&amp;nbsp; based &lt;/SPAN&gt;&lt;SPAN style="color: #333333; font-size: 9.0pt; font-family: 'inherit','serif';"&gt;on Material and Plant,&lt;/SPAN&gt;&lt;/P&gt;&lt;OL style="list-style-type: decimal;"&gt;&lt;LI&gt;&lt;SPAN style="color: #333333; font-size: 9.0pt; font-family: 'inherit','serif';"&gt;Don’t overload the data base, try to use ABAP space for&amp;nbsp; &lt;SPAN style="color: #333333; font-family: Arial, sans-serif; font-size: 12px;"&gt;manipulate the data.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="color: #333333; font-size: 9.0pt; font-family: 'inherit','serif';"&gt;Don’t use &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: #333333;"&gt;CORRESPONDING &lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&lt;SPAN style="color: #333333; font-size: 9.0pt; font-family: 'inherit','serif';"&gt;FIELDS&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&lt;SPAN style="color: #333333; font-size: 9.0pt; font-family: 'inherit','serif';"&gt;OF&lt;/SPAN&gt;&lt;SPAN style="color: #333333; font-size: 9.0pt; font-family: 'inherit','serif';"&gt;, it will affect the performance&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="color: #333333; font-size: 9.0pt; font-family: 'inherit','serif';"&gt;For Material description, get it in a separate internal table and whenever required, just use read.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="color: #333333; font-size: 9.0pt; font-family: 'inherit','serif';"&gt;For Acc text, read all the data from table TVKMT and keep it in a separate table and read the data whenever required.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="color: #333333; font-size: 9.0pt; font-family: 'inherit','serif';"&gt;Based on MARA, MARC and MBEW output, read the data from table MVKE (using the KEY input of MATNR, VKORG and &lt;/SPAN&gt;&lt;STRONG style="color: black; background: #E9EEF4; font-size: 8.5pt; font-family: 'Arial','sans-serif';"&gt; &lt;/STRONG&gt;&lt;SPAN style="font-size: 8.5pt; font-family: 'Arial','sans-serif'; color: black; background: #E9EEF4;"&gt;VTWEG&lt;/SPAN&gt;)&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="color: #333333; font-size: 9.0pt; font-family: 'inherit','serif';"&gt;Now you have all that data in your MVKE internal table and &lt;STRONG&gt;delete the data from internal table with vsalue of &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: #333333;"&gt;&lt;STRONG&gt;ktgrm&lt;/STRONG&gt;.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: #333333;"&gt;Loop the MVKE internal table and manipulate it and&amp;nbsp; finally move to final internal table&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: #333333;"&gt;Try to use sort internal table, &lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jan 2014 18:12:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/join-optimization/m-p/10011081#M1805542</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-01-16T18:12:18Z</dc:date>
    </item>
    <item>
      <title>Re: Join Optimization</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/join-optimization/m-p/10011082#M1805543</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We have told them that they might not necessarily get the material if it doesn't have a sales view and they seem to have stated that it's not really an issue, although I'd like to do this the right way.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jan 2014 20:11:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/join-optimization/m-p/10011082#M1805543</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-01-16T20:11:48Z</dc:date>
    </item>
    <item>
      <title>Re: Join Optimization</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/join-optimization/m-p/10011083#M1805544</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My opinion!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Inner join on MARA,MVKE and MARC&lt;/P&gt;&lt;P&gt;- get the texts by using for all entries and withe key fields (it_tvmkt, it_maktx)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;* if you use the filed symbols not required to write the modify statement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;LOOP &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;AT &lt;/SPAN&gt;&lt;STRONG&gt;dt_materials&lt;/STRONG&gt; &lt;SPAN class="L0S52"&gt;assigning &lt;STRONG&gt;&amp;lt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt;ds_materials&amp;gt;&lt;/STRONG&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S55"&gt;* read the table it_makt&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S55"&gt; if sy-subrc = 0.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S55"&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="L0S52"&gt;&lt;STRONG&gt;&amp;lt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt;ds_materials&amp;gt;-maktx = wa_makt-maktx.&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S55"&gt;endif.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S55"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S55"&gt;same way for tvmvkt.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S55"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S55"&gt;end loop.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jan 2014 05:31:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/join-optimization/m-p/10011083#M1805544</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-01-17T05:31:38Z</dc:date>
    </item>
    <item>
      <title>Re: Join Optimization</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/join-optimization/m-p/10011084#M1805545</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ashley,&lt;/P&gt;&lt;P&gt;do it something like this, and see is your code get optimize or not&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333;"&gt;&lt;SPAN class="L0S52" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;SELECT &lt;/SPAN&gt;mvke&lt;SPAN class="L0S70" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;~&lt;/SPAN&gt;matnr mvke&lt;SPAN class="L0S70" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;~&lt;/SPAN&gt;vkorg mvke&lt;SPAN class="L0S70" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;~&lt;/SPAN&gt;vtweg mvke&lt;SPAN class="L0S70" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;~&lt;/SPAN&gt;ktgrm mara&lt;SPAN class="L0S70" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;~&lt;/SPAN&gt;mtart mara&lt;SPAN class="L0S70" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;~&lt;/SPAN&gt;spart makt&lt;SPAN class="L0S70" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;~&lt;/SPAN&gt;maktx marc&lt;SPAN class="L0S70" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;~&lt;/SPAN&gt;werks marc&lt;SPAN class="L0S70" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;~&lt;/SPAN&gt;mmsta marc&lt;SPAN class="L0S70" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;~&lt;/SPAN&gt;beskz marc&lt;SPAN class="L0S70" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;~&lt;/SPAN&gt;sobsl&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333;"&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt; &lt;/SPAN&gt;&lt;SPAN class="L0S52" style="color: #333333; font-family: inherit; font-size: 12px; font-style: inherit; font-weight: inherit;"&gt;INTO &lt;/SPAN&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;CORRESPONDING &lt;/SPAN&gt;&lt;SPAN class="L0S52" style="color: #333333; font-family: inherit; font-size: 12px; font-style: inherit; font-weight: inherit;"&gt;FIELDS &lt;/SPAN&gt;&lt;SPAN class="L0S52" style="color: #333333; font-family: inherit; font-size: 12px; font-style: inherit; font-weight: inherit;"&gt;OF &lt;/SPAN&gt;&lt;SPAN class="L0S52" style="color: #333333; font-family: inherit; font-size: 12px; font-style: inherit; font-weight: inherit;"&gt;TABLE &lt;/SPAN&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;dt_materials&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;FROM &lt;/SPAN&gt;&lt;SPAN class="L0S55" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;(&amp;nbsp; (&amp;nbsp; ( &lt;/SPAN&gt;mvke&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; INNER &lt;SPAN class="L0S52" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;JOIN &lt;/SPAN&gt;mara &lt;SPAN class="L0S52" style="font-family: inherit; font-weight: inherit; font-style: inherit;"&gt;ON&amp;nbsp; &lt;SPAN style="color: #333333; font-size: 12px;"&gt;mvke&lt;/SPAN&gt;&lt;SPAN class="L0S70" style="color: #333333; font-family: inherit; font-size: 12px; font-style: inherit; font-weight: inherit;"&gt;~&lt;/SPAN&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;matnr &lt;SPAN style="color: #333333; font-size: 12px;"&gt; =&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;/SPAN&gt;mara&lt;SPAN class="L0S70" style="font-family: inherit; font-weight: inherit; font-style: inherit;"&gt;~&lt;/SPAN&gt;matnr&lt;SPAN class="L0S55" style="font-family: inherit; font-weight: inherit; font-style: inherit;"&gt; &lt;/SPAN&gt; )&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; INNER &lt;SPAN class="L0S52" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;JOIN &lt;/SPAN&gt;makt &lt;SPAN class="L0S52" style="color: #333333; font-family: inherit; font-size: 12px; font-style: inherit; font-weight: inherit;"&gt;ON &lt;SPAN style="color: #333333; font-size: 12px;"&gt;mvke&lt;/SPAN&gt;&lt;SPAN class="L0S70" style="color: #333333; font-family: inherit; font-size: 12px; font-style: inherit; font-weight: inherit;"&gt;~&lt;/SPAN&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;matnr&lt;/SPAN&gt;&amp;nbsp; = &lt;/SPAN&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;makt&lt;/SPAN&gt;&lt;SPAN class="L0S70" style="color: #333333; font-family: inherit; font-size: 12px; font-style: inherit; font-weight: inherit;"&gt;~&lt;/SPAN&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;matnr &lt;/SPAN&gt;&lt;SPAN class="L0S55" style="color: #333333; font-family: inherit; font-size: 12px; font-style: inherit; font-weight: inherit;"&gt; &lt;/SPAN&gt; )&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; INNER &lt;SPAN class="L0S52" style="font-family: inherit; font-weight: inherit; font-style: inherit;"&gt;JOIN&amp;nbsp; &lt;/SPAN&gt;marc &lt;SPAN style="color: #333333; font-size: 12px;"&gt; &lt;/SPAN&gt;&lt;SPAN class="L0S52" style="color: #333333; font-family: inherit; font-size: 12px; font-style: inherit; font-weight: inherit;"&gt;ON &lt;SPAN style="color: #333333; font-size: 12px;"&gt;mvke&lt;/SPAN&gt;&lt;SPAN class="L0S70" style="color: #333333; font-family: inherit; font-size: 12px; font-style: inherit; font-weight: inherit;"&gt;~&lt;/SPAN&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;matnr &lt;SPAN style="color: #333333; font-size: 12px;"&gt; =&lt;/SPAN&gt;&lt;SPAN class="L0S55" style="color: #333333; font-family: inherit; font-size: 12px; font-style: inherit; font-weight: inherit;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;marc&lt;/SPAN&gt;&lt;SPAN class="L0S70" style="color: #333333; font-family: inherit; font-size: 12px; font-style: inherit; font-weight: inherit;"&gt;~&lt;/SPAN&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;matnr &lt;/SPAN&gt;&lt;SPAN class="L0S55" style="color: #333333; font-family: inherit; font-size: 12px; font-style: inherit; font-weight: inherit;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52" style="font-family: inherit; font-weight: inherit; font-style: inherit;"&gt;WHERE &lt;/SPAN&gt;marc&lt;SPAN class="L0S70" style="font-family: inherit; font-weight: inherit; font-style: inherit;"&gt;~&lt;/SPAN&gt;werks &lt;SPAN class="L0S52" style="font-family: inherit; font-weight: inherit; font-style: inherit;"&gt;IN &lt;/SPAN&gt;werks&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;AND &lt;/SPAN&gt;makt&lt;SPAN class="L0S70" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;~&lt;/SPAN&gt;spras &lt;SPAN class="L0S55" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;= '&amp;nbsp; '&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ----------please pass the language here&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;AND &lt;/SPAN&gt;mvke&lt;SPAN class="L0S70" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;~&lt;/SPAN&gt;ktgrm &lt;SPAN class="L0S52" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;IN &lt;/SPAN&gt;ktgrm&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;AND &lt;/SPAN&gt;mvke&lt;SPAN class="L0S70" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;~&lt;/SPAN&gt;matnr &lt;SPAN class="L0S52" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;IN &lt;/SPAN&gt;matnr&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;AND &lt;/SPAN&gt;mvke&lt;SPAN class="L0S70" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;~&lt;/SPAN&gt;vkorg &lt;SPAN class="L0S52" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;IN &lt;/SPAN&gt;vkorg&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;AND &lt;/SPAN&gt;mvke&lt;SPAN class="L0S70" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;~&lt;/SPAN&gt;vtweg &lt;SPAN class="L0S52" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;IN &lt;/SPAN&gt;vtweg&lt;SPAN class="L0S55" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333;"&gt;&lt;SPAN class="L0S52" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;LOOP &lt;/SPAN&gt;&lt;SPAN class="L0S52" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;AT &lt;/SPAN&gt;dt_materials &lt;SPAN class="L0S52" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;INTO &lt;/SPAN&gt;ds_materials&lt;SPAN class="L0S55" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; tab_index &lt;SPAN class="L0S55" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;= &lt;/SPAN&gt;sy&lt;SPAN class="L0S70" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;-&lt;/SPAN&gt;tabix&lt;SPAN class="L0S55" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333;"&gt;&lt;SPAN class="L0S55" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;SELECT &lt;/SPAN&gt;&lt;SPAN class="L0S52" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;SINGLE &lt;/SPAN&gt;tvkmt&lt;SPAN class="L0S70" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;~&lt;/SPAN&gt;vtext&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;INTO &lt;/SPAN&gt;ds_materials&lt;SPAN class="L0S70" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;-&lt;/SPAN&gt;vtext&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;FROM &lt;/SPAN&gt;tvkmt&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;WHERE &lt;/SPAN&gt;tvkmt&lt;SPAN class="L0S70" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;~&lt;/SPAN&gt;ktgrm &lt;SPAN class="L0S55" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;= &lt;/SPAN&gt;ds_materials&lt;SPAN class="L0S70" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;-&lt;/SPAN&gt;ktgrm&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;AND &lt;/SPAN&gt;tvkmt&lt;SPAN class="L0S70" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;~&lt;/SPAN&gt;spras &lt;SPAN class="L0S55" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;= ' '&lt;/SPAN&gt;&lt;SPAN class="L0S55" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&amp;gt; put the language here also&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jan 2014 05:49:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/join-optimization/m-p/10011084#M1805545</guid>
      <dc:creator>former_member187748</dc:creator>
      <dc:date>2014-01-17T05:49:30Z</dc:date>
    </item>
    <item>
      <title>Re: Join Optimization</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/join-optimization/m-p/10011085#M1805546</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The best sol. for your problem is to fetch the data from different database tables in different internal tables based on your selection data. And finally put them into a final internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pl. don`t use select statement inside the Loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers !!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vivek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jan 2014 06:26:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/join-optimization/m-p/10011085#M1805546</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-01-17T06:26:11Z</dc:date>
    </item>
  </channel>
</rss>

