<?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: Reg: Native SQL statement in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-native-sql-statement/m-p/4893076#M1143068</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;Try using class CL_SQL_STATEMENT, it is use to trigger the native sql statement. for reference you can also see the demo program ADBC_DEMO provided by SAP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;although I haven't used this class, but I have seen it in a program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With best regards,&lt;/P&gt;&lt;P&gt;Navneet Chaubey&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 16 Dec 2008 22:43:14 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-12-16T22:43:14Z</dc:date>
    <item>
      <title>Reg: Native SQL statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-native-sql-statement/m-p/4893074#M1143066</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;using the below native SQL statment get the Document Number.&lt;/P&gt;&lt;P&gt;But its going to Short dump&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EXEC SQL.&lt;/P&gt;&lt;P&gt;SELECT BELNR&lt;/P&gt;&lt;P&gt;         INTO :lv_belnr-low&lt;/P&gt;&lt;P&gt;         FROM RFBLG WITH ( INDEX ( "RFBLG~0" ) )&lt;/P&gt;&lt;P&gt;         WHERE MANDT = :p_mandt&lt;/P&gt;&lt;P&gt;         AND BUKRS = :lv_bukrs&lt;/P&gt;&lt;P&gt;        AND BELNR &amp;gt; :lv_belnr-high&lt;/P&gt;&lt;P&gt;        AND GJAHR = :p_gjahr&lt;/P&gt;&lt;P&gt;        ORDER BY MANDT, BUKRS, BELNR, GJAHR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDEXEC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DUMP Is: INDEX  of ( "RFBLG~0") is not available.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please suggest me what I need to do to resolve this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First time I am working in Native Sql statements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thnx,&lt;/P&gt;&lt;P&gt;Sam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Dec 2008 19:46:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-native-sql-statement/m-p/4893074#M1143066</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-16T19:46:01Z</dc:date>
    </item>
    <item>
      <title>Re: Reg: Native SQL statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-native-sql-statement/m-p/4893075#M1143067</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you explain what you are trying to do. There must be dozens of easier ways.&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, 16 Dec 2008 20:09:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-native-sql-statement/m-p/4893075#M1143067</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-16T20:09:36Z</dc:date>
    </item>
    <item>
      <title>Re: Reg: Native SQL statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-native-sql-statement/m-p/4893076#M1143068</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;Try using class CL_SQL_STATEMENT, it is use to trigger the native sql statement. for reference you can also see the demo program ADBC_DEMO provided by SAP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;although I haven't used this class, but I have seen it in a program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With best regards,&lt;/P&gt;&lt;P&gt;Navneet Chaubey&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Dec 2008 22:43:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-native-sql-statement/m-p/4893076#M1143068</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-16T22:43:14Z</dc:date>
    </item>
    <item>
      <title>Re: Reg: Native SQL statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-native-sql-statement/m-p/4893077#M1143069</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sam,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;your requirement is not very clear., still u can do the following.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try re-activate the indexes.&lt;/P&gt;&lt;P&gt;Since it is Table Cluster, you may not find the indexes at the Data Dictionary (SE11).&lt;/P&gt;&lt;P&gt;you can write another Native Sql statement for re-build the indexes of the table like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EXEC SQL.&lt;/P&gt;&lt;P&gt;ALTER INDEX RFBLG~0 REBUILD &lt;/P&gt;&lt;P&gt;ENDEXEC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do the above for all the available indexes of the table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pl. check the above and tell me the result&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks\&lt;/P&gt;&lt;P&gt;Mahesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Dec 2008 05:41:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-native-sql-statement/m-p/4893077#M1143069</guid>
      <dc:creator>former_member222860</dc:creator>
      <dc:date>2008-12-17T05:41:37Z</dc:date>
    </item>
  </channel>
</rss>

