<?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: split dynamic sql in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/split-dynamic-sql/m-p/4625293#M1089477</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanx all.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 22 Nov 2008 06:06:29 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-11-22T06:06:29Z</dc:date>
    <item>
      <title>split dynamic sql</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/split-dynamic-sql/m-p/4625287#M1089471</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I hve a different Requirement, i'm creating a rfc which execute the sql which is given by the client side n these r  long  single dynamic sql.&lt;/P&gt;&lt;P&gt;MY work is to write a (dynamic)code which split this sql in different small sql acc to their join combinations.&lt;/P&gt;&lt;P&gt;Let's take a exmple suppose i hve a long sql like&lt;/P&gt;&lt;P&gt;SELECT MARC&lt;SUB&gt;MATNR marc&lt;/SUB&gt;werks FROM MARC INNER JOIN MARD ON MARD&lt;SUB&gt;WERKS = MARC&lt;/SUB&gt;WERKS INNER JOIN MARA ON MARC&lt;SUB&gt;MATNR = MARA&lt;/SUB&gt;MATNR AND MARD&lt;SUB&gt;MATNR = MARA&lt;/SUB&gt;MATNR WHERE MARC&lt;SUB&gt;WERKS ='1000' AND MARA&lt;/SUB&gt;MATKL = '001'.&lt;/P&gt;&lt;P&gt;which used three tables MARA,MRAC,MARD in diff  join conditions then I hve to split these in three diff sql for MARA MARC &amp;amp; MARD that gives same result  as first one.&lt;/P&gt;&lt;P&gt;So wht should be keep in mind to design that issue that these splits sql gives same result as gives single one.&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;Anuj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 19 Oct 2008 13:22:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/split-dynamic-sql/m-p/4625287#M1089471</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-19T13:22:29Z</dc:date>
    </item>
    <item>
      <title>Re: split dynamic sql</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/split-dynamic-sql/m-p/4625288#M1089472</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anuj,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This SQL Looks perfectly OK......Why are you looking to break this????&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You might not gain anything from the same...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 19 Oct 2008 13:35:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/split-dynamic-sql/m-p/4625288#M1089472</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-19T13:35:01Z</dc:date>
    </item>
    <item>
      <title>Re: split dynamic sql</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/split-dynamic-sql/m-p/4625289#M1089473</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi AJAY,&lt;/P&gt;&lt;P&gt;I hve some Performance issue with single &lt;STRONG&gt;many join&lt;/STRONG&gt; sql that's why we r spliting these types of sql.&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Anuj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 19 Oct 2008 13:44:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/split-dynamic-sql/m-p/4625289#M1089473</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-19T13:44:11Z</dc:date>
    </item>
    <item>
      <title>Re: split dynamic sql</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/split-dynamic-sql/m-p/4625290#M1089474</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 break this into Two different SQL's.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First, Inner Join between MARC &amp;amp; MARD, for Plant 1000, and store it in Itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Second, Select on MARA, with for all entries itab, matnr = itab-matnr and matkl = '001', store this in itab1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eliminate all the MATNR Records of itab, which are not there in itab1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Take care that your Itab should never have more a large amount of Data, else FOR ALL ENTIRES may result in DUMP.......&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 19 Oct 2008 14:20:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/split-dynamic-sql/m-p/4625290#M1089474</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-19T14:20:18Z</dc:date>
    </item>
    <item>
      <title>Re: split dynamic sql</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/split-dynamic-sql/m-p/4625291#M1089475</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi anuj,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   i would suggest that you drive your selection from MARA, as the number of entries on MATKL would be lesser as compared to MARC and MARD and morevover MARA has an index on MATKL. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  so the solution would be like, first select the required article from  MARA on condition MATKL into an internal table, Then do a join on MARC and MARD and perform a selection on "for all entries" of articles in the above internal table (this would ensure that MARC and MARD have selection on primary index).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  I am getting a fast result doing this on nearly 500000 articles, so i think this should work pretty well for you too. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let me know, the result after you do this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;NJ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 19 Oct 2008 17:46:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/split-dynamic-sql/m-p/4625291#M1089475</guid>
      <dc:creator>nivin_varkey</dc:creator>
      <dc:date>2008-10-19T17:46:49Z</dc:date>
    </item>
    <item>
      <title>Re: split dynamic sql</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/split-dynamic-sql/m-p/4625292#M1089476</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanx nivin but can u provide me the dynamic design patteren for that type of applications.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Anuj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Oct 2008 05:08:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/split-dynamic-sql/m-p/4625292#M1089476</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-20T05:08:42Z</dc:date>
    </item>
    <item>
      <title>Re: split dynamic sql</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/split-dynamic-sql/m-p/4625293#M1089477</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanx all.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 22 Nov 2008 06:06:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/split-dynamic-sql/m-p/4625293#M1089477</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-22T06:06:29Z</dc:date>
    </item>
  </channel>
</rss>

