<?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: sql statement in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/sql-statement/m-p/4086170#M976954</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi, &lt;/P&gt;&lt;P&gt;what error r u getting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Sumit Agarwal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 08 Jul 2008 05:45:39 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-07-08T05:45:39Z</dc:date>
    <item>
      <title>sql statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sql-statement/m-p/4086162#M976946</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;    EXEC SQL.&lt;/P&gt;&lt;P&gt;      select APID_SEQ.NEXTVAL INTO :v_apid FROM DUAL&lt;/P&gt;&lt;P&gt;    ENDEXEC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I could not understand that pgm!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How is prepared for it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Plz reply me soon,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thx,&lt;/P&gt;&lt;P&gt;S.Suresh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jul 2008 05:32:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sql-statement/m-p/4086162#M976946</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-08T05:32:29Z</dc:date>
    </item>
    <item>
      <title>Re: sql statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sql-statement/m-p/4086163#M976947</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;To use a Native SQL statement, you must precede it with the EXEC SQL statement, and follow it with the ENDEXEC statement as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EXEC SQL PERFORMING &amp;lt;form&amp;gt;&lt;/P&gt;&lt;P&gt;  &amp;lt;Native SQL statement&amp;gt;&lt;/P&gt;&lt;P&gt;ENDEXEC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check out this link it helps you a lot&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_47x200/helpdata/en/fc/eb3b8b358411d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_47x200/helpdata/en/fc/eb3b8b358411d1829f0000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Pavan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Pavan Bhamidipati on Jul 8, 2008 7:34 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jul 2008 05:34:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sql-statement/m-p/4086163#M976947</guid>
      <dc:creator>bpawanchand</dc:creator>
      <dc:date>2008-07-08T05:34:15Z</dc:date>
    </item>
    <item>
      <title>Re: sql statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sql-statement/m-p/4086164#M976948</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;Here you are placing the next value of APID_SEQ into v_apid.&lt;/P&gt;&lt;P&gt;FROM DUAL is for using DUAL table which to provide a table for joining in internal views.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To read more about Dual Tables refer to this link.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[http://en.wikipedia.org/wiki/DUAL_table]&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;Regards&lt;/P&gt;&lt;P&gt;Sumit Agarwal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jul 2008 05:37:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sql-statement/m-p/4086164#M976948</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-08T05:37:42Z</dc:date>
    </item>
    <item>
      <title>Re: sql statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sql-statement/m-p/4086165#M976949</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello suresh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The given code is a combination of native sql &amp;amp; dual table  concept in sap .Check this out for that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;NATIVE SQL&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_46c/helpdata/en/fc/eb3b8b358411d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_46c/helpdata/en/fc/eb3b8b358411d1829f0000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DUAL TABLES&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ftp://mirrors.ircam.fr/pub/mysql/doc/maxdb/en/10/a80342ed386824e10000000a1550b0/content.htm&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Bhumika&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jul 2008 05:39:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sql-statement/m-p/4086165#M976949</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-08T05:39:28Z</dc:date>
    </item>
    <item>
      <title>Re: sql statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sql-statement/m-p/4086166#M976950</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is a Native SQL statement. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Refer the Documentation..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_47x200/helpdata/en/fc/eb3b8b358411d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_47x200/helpdata/en/fc/eb3b8b358411d1829f0000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jul 2008 05:39:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sql-statement/m-p/4086166#M976950</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-08T05:39:55Z</dc:date>
    </item>
    <item>
      <title>Re: sql statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sql-statement/m-p/4086167#M976951</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;chk this link out..&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="155198"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jul 2008 05:41:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sql-statement/m-p/4086167#M976951</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-08T05:41:53Z</dc:date>
    </item>
    <item>
      <title>Re: sql statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sql-statement/m-p/4086168#M976952</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sumit Agarwal,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I could not get output that program!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Plz how is change configure that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reply me soon,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;S.Suresh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jul 2008 05:43:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sql-statement/m-p/4086168#M976952</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-08T05:43:38Z</dc:date>
    </item>
    <item>
      <title>Re: sql statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sql-statement/m-p/4086169#M976953</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;EXEC SQL [PERFORMING subr]. &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;These statements define an area in an ABAP program in which one or more Native SQL statements are to be carried out. The area between EXEC and ENDEXEC is not completely checked by the syntax check. The statements entered there are passed to the Native SQL interface and processed there as follows: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Almost all SQL statements that are valid for the addressed database system can be included between EXEC and ENDEXEC, in particular the DDL statements. These SQL statements are passed from the Native SQL interface to the database system largely unchanged. The syntax rules are specified by the database system, in particular the case sensitivity rules for database objects. If the syntax allows a separator character between individual statements, you can include several Native SQL statements between EXEC and ENDEXEC. Generally, the semicolon (&lt;SPAN __jive_emoticon_name="wink"&gt;&lt;/SPAN&gt; is used as the separator character. &lt;/P&gt;&lt;P&gt;You can also include SAP-specific Native SQL language elements between EXEC and ENDEXEC. These statements are not passed directly from the Native SQL interface to the database, but are converted appropriately. These SAP-specific language elements are:: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EXCEC SQL PERFORMING subr. &lt;/P&gt;&lt;P&gt;  SELECT ... INTO :wa1 :wa2 ... &lt;/P&gt;&lt;P&gt;ENDEXEC. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect &lt;/P&gt;&lt;P&gt;If the PERFORMING addition that is forbidden in classes is specified after EXEC SQL, the native SQL interface performs an implicit cusor edit. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Only a SELECT statement can be used as a native SQL statement. The native SQL interface starts a cursor for the SELECT statement and reads the appropriate data, row by row. After each successful read of a row, the subr subroutine is called. The subr subroutine must be defined in the same ABAP program and must not have any parameter interface. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When the host variables specified in the SELECT statement after INTO are global data objects of the ABAP program, they can be evaluated in the subroutine. In the subroutine, sy-dbcnt gets the number of rows read so far and sy-subrc is set to the value 0. After the ENDEXEC statement, sy-dbcnt contains the number of rows read altogether so far and sy-subrc is set to value 4 since no more lines could be read using the implicit cursor.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jul 2008 05:45:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sql-statement/m-p/4086169#M976953</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-08T05:45:21Z</dc:date>
    </item>
    <item>
      <title>Re: sql statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sql-statement/m-p/4086170#M976954</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi, &lt;/P&gt;&lt;P&gt;what error r u getting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Sumit Agarwal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jul 2008 05:45:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sql-statement/m-p/4086170#M976954</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-08T05:45:39Z</dc:date>
    </item>
    <item>
      <title>Re: sql statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sql-statement/m-p/4086171#M976955</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;We can retrieve data from Database using OPEN SQL and NATIVE SQL .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Generally the SQL statements which we use in our ABAP programs are OPEN SQL statements.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;If you want to use NATIVE SQL statements then write between &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  EXEC SQL.  and  ENDEXEC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Database understands only SQL commands. But what ever we write in OPEN SQL are internally SQL statements only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The DATABASE UTILITY  is the interface between the ABAP Dictionary and the relational database underlying the R/3 System. &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;Rajitha.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Rajitha Muthineni on Jul 8, 2008 11:37 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jul 2008 05:52:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sql-statement/m-p/4086171#M976955</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-08T05:52:08Z</dc:date>
    </item>
    <item>
      <title>Re: sql statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sql-statement/m-p/4086172#M976956</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;check this link.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapdb.info/exec-abap-keyword-a-day/#more-707" target="test_blank"&gt;http://www.sapdb.info/exec-abap-keyword-a-day/#more-707&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jul 2008 06:00:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sql-statement/m-p/4086172#M976956</guid>
      <dc:creator>GauthamV</dc:creator>
      <dc:date>2008-07-08T06:00:16Z</dc:date>
    </item>
    <item>
      <title>Re: sql statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sql-statement/m-p/4086173#M976957</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;plz send me ur mail ID.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i will send u with that file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;S.Suresh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jul 2008 06:06:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sql-statement/m-p/4086173#M976957</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-08T06:06:35Z</dc:date>
    </item>
  </channel>
</rss>

