<?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: EXEC SQL and ENDEXEC issues in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/exec-sql-and-endexec-issues/m-p/6680805#M1449564</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;I think you have to bring the loop and end loop outside of EXEC and END EXEC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Mani&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 15 Mar 2010 11:35:54 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-03-15T11:35:54Z</dc:date>
    <item>
      <title>EXEC SQL and ENDEXEC issues</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exec-sql-and-endexec-issues/m-p/6680804#M1449563</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;&lt;/P&gt;&lt;P&gt;I want ot delete an internal table entries within EXEC SQL and ENDEXEC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are tryinign to delete Open Hub Table data records from OH table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please suggest me the command. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Right now I am using &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EXEC SQL.&lt;/P&gt;&lt;P&gt;loop at it_ohtab into wa_ohtab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Truncate table wa_ohtab-onj_name &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endloop.&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;The above statement is throwing dump saying "The error 102 occurred in the current database connection "DEFAULT"".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;SD.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Mar 2010 11:20:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exec-sql-and-endexec-issues/m-p/6680804#M1449563</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-15T11:20:38Z</dc:date>
    </item>
    <item>
      <title>Re: EXEC SQL and ENDEXEC issues</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exec-sql-and-endexec-issues/m-p/6680805#M1449564</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;I think you have to bring the loop and end loop outside of EXEC and END EXEC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Mani&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Mar 2010 11:35:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exec-sql-and-endexec-issues/m-p/6680805#M1449564</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-15T11:35:54Z</dc:date>
    </item>
    <item>
      <title>Re: EXEC SQL and ENDEXEC issues</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exec-sql-and-endexec-issues/m-p/6680806#M1449565</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;I want ot delete an internal table entries within EXEC SQL and ENDEXEC.&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why?   Internal tables are not controlled with SQL, but with Open SQL statements, like loop...endloop.  case or if..then...else and Delete...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Mar 2010 11:38:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exec-sql-and-endexec-issues/m-p/6680806#M1449565</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-15T11:38:36Z</dc:date>
    </item>
    <item>
      <title>Re: EXEC SQL and ENDEXEC issues</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exec-sql-and-endexec-issues/m-p/6680807#M1449566</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;I think what SD wants to conver here is that the table names are in the entries of the internal table and wants to delete the tables not the internal table perse. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Mani&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Mar 2010 11:42:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exec-sql-and-endexec-issues/m-p/6680807#M1449566</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-15T11:42:51Z</dc:date>
    </item>
    <item>
      <title>Re: EXEC SQL and ENDEXEC issues</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exec-sql-and-endexec-issues/m-p/6680808#M1449567</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;try this code&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt; 
DATA: F1 TYPE TABNAME16.

loop at it_ohtab into wa_ohtab.
  F1 = wa_ohtab-onj_name.

  EXEC SQL.
  TRUNCATE TABLE :F1
  ENDEXEC.

endloop.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Mar 2010 11:47:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exec-sql-and-endexec-issues/m-p/6680808#M1449567</guid>
      <dc:creator>AlexanderOv</dc:creator>
      <dc:date>2010-03-15T11:47:07Z</dc:date>
    </item>
    <item>
      <title>Re: EXEC SQL and ENDEXEC issues</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exec-sql-and-endexec-issues/m-p/6680809#M1449568</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mani,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have tried using the loop-endloop before EXEC-ENDEXEC. but it still throwing a dump. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The SQL command TRAUNCATE/DELETE can work on internal table or work area defined by us. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, You were right I am collecteing all the table names in Intertable and Deleting table entries of those tables present in Internal table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Mar 2010 11:49:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exec-sql-and-endexec-issues/m-p/6680809#M1449568</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-15T11:49:11Z</dc:date>
    </item>
    <item>
      <title>Re: EXEC SQL and ENDEXEC issues</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exec-sql-and-endexec-issues/m-p/6680810#M1449569</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Also, you might clear contents of the tables with this Open SQL code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt; 
loop at it_ohtab into wa_ohtab.

  DELETE FROM (wa_ohtab-onj_name).

endloop.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Alexander Ovcharenko on Mar 15, 2010 12:57 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Mar 2010 11:57:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exec-sql-and-endexec-issues/m-p/6680810#M1449569</guid>
      <dc:creator>AlexanderOv</dc:creator>
      <dc:date>2010-03-15T11:57:24Z</dc:date>
    </item>
    <item>
      <title>Re: EXEC SQL and ENDEXEC issues</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exec-sql-and-endexec-issues/m-p/6680811#M1449570</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ITS still throwing the same dump. after using your piece of code&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Mar 2010 11:57:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exec-sql-and-endexec-issues/m-p/6680811#M1449570</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-15T11:57:44Z</dc:date>
    </item>
    <item>
      <title>Re: EXEC SQL and ENDEXEC issues</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exec-sql-and-endexec-issues/m-p/6680812#M1449571</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you post here the error from "Database error text" field of dump?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Mar 2010 12:06:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exec-sql-and-endexec-issues/m-p/6680812#M1449571</guid>
      <dc:creator>AlexanderOv</dc:creator>
      <dc:date>2010-03-15T12:06:56Z</dc:date>
    </item>
    <item>
      <title>Re: EXEC SQL and ENDEXEC issues</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exec-sql-and-endexec-issues/m-p/6680813#M1449572</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The error 102 occurred in the current database connection "DEFAULT"".&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Mar 2010 12:27:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exec-sql-and-endexec-issues/m-p/6680813#M1449572</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-15T12:27:24Z</dc:date>
    </item>
    <item>
      <title>Re: EXEC SQL and ENDEXEC issues</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exec-sql-and-endexec-issues/m-p/6680814#M1449573</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's not a "Database error text" field of dump. You can see this error text in ST22 - Select your dump - Press &amp;lt;F9&amp;gt; - Scroll down - Post here lines which begins from "DB = ". These lines are in the end of list.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Mar 2010 12:37:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exec-sql-and-endexec-issues/m-p/6680814#M1449573</guid>
      <dc:creator>AlexanderOv</dc:creator>
      <dc:date>2010-03-15T12:37:02Z</dc:date>
    </item>
    <item>
      <title>Re: EXEC SQL and ENDEXEC issues</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exec-sql-and-endexec-issues/m-p/6680815#M1449574</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;why use native SQL, (carefully) try the function modules in group SDB2, e.g. DB_TRUNCATE_TABLE.&lt;/P&gt;&lt;P&gt;And please do not cross-post, I asked for deletion of the duplicate in "BI General".&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Mar 2010 12:43:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exec-sql-and-endexec-issues/m-p/6680815#M1449574</guid>
      <dc:creator>ThomasZloch</dc:creator>
      <dc:date>2010-03-15T12:43:52Z</dc:date>
    </item>
    <item>
      <title>Re: EXEC SQL and ENDEXEC issues</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exec-sql-and-endexec-issues/m-p/6680816#M1449575</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have the same question today, and I solved it by myself afer I read the page.I used sm21 and I found the error message:Incorrect syntax near '.'. So I know that I write a comma at the end of the sql. I deleted it, it is ok now. Maybe help you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Nov 2012 06:45:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exec-sql-and-endexec-issues/m-p/6680816#M1449575</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-11-30T06:45:00Z</dc:date>
    </item>
  </channel>
</rss>

