<?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: Insert multiple row to external database Oracle in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert-multiple-row-to-external-database-oracle/m-p/11380334#M1923522</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Eric,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;varchar(32) is CHAR32. You can compare the technical types using SE11 under "Utilities -&amp;gt; Database Object -&amp;gt; Display".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ABAP stores Dates in text fields using one Byte for each Digit. Oracle uses its own internal format to store dates. Date data is stored in fixed-length fields of seven bytes each, corresponding to century, year, month, day, hour, minute and second.&lt;/P&gt;&lt;P&gt;I think I would try to create a RAW(7) field for this. To populate each Byte with the values as defined by Oracle is something ABAP is not really good in. It will be tricky to find an ABAP field matching this Oracle Definition. Maybe &amp;lt;fieldname&amp;gt;(7) type x ??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wouldn't it be easier to Change the type in the external table to a character field?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Oliver&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 09 Nov 2015 17:38:07 GMT</pubDate>
    <dc:creator>oliver_wurm</dc:creator>
    <dc:date>2015-11-09T17:38:07Z</dc:date>
    <item>
      <title>Insert multiple row to external database Oracle</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert-multiple-row-to-external-database-oracle/m-p/11380325#M1923513</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 extracted data into ABAP internal table, and now i need to insert this data to external database Oracle.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My database connection is ready (transaction &lt;SPAN style="color: #333333; font-size: 12px;"&gt;DBCO).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can i insert multiple rows in one request ? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Nov 2015 16:22:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/insert-multiple-row-to-external-database-oracle/m-p/11380325#M1923513</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-11-09T16:22:55Z</dc:date>
    </item>
    <item>
      <title>Re: Insert multiple row to external database Oracle</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert-multiple-row-to-external-database-oracle/m-p/11380326#M1923514</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ERIC,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By using Transaction Code DBCO(Database Connection Maintenance) you can connect the external database.&lt;/P&gt;&lt;P&gt;View the link.&lt;/P&gt;&lt;P&gt;&lt;A href="https://scn.sap.com/thread/1453464" title="https://scn.sap.com/thread/1453464"&gt;test connection using dbco | SCN&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;using Native SQL Insert the data's to external table.&lt;/P&gt;&lt;P&gt;View the link.&lt;/P&gt;&lt;P&gt;&lt;A __default_attr="34669" __jive_macro_name="document" class="jive_macro_document jive_macro" data-orig-content="Native SQL &amp;amp;amp; its use with DATABASE CONNECTION in SAP" href="https://community.sap.com/" modifiedtitle="true" title="Native SQL &amp;amp;amp; its use with DATABASE CONNECTION in SAP"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helpful,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Venkat.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Nov 2015 16:33:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/insert-multiple-row-to-external-database-oracle/m-p/11380326#M1923514</guid>
      <dc:creator>VenkatRamesh_V</dc:creator>
      <dc:date>2015-11-09T16:33:54Z</dc:date>
    </item>
    <item>
      <title>Re: Insert multiple row to external database Oracle</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert-multiple-row-to-external-database-oracle/m-p/11380327#M1923515</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;it's kind but it's not my requirement, i know transaction DBCO and native SQL but my question is to know how can i insert multiple rows in an external database.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Eric&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Nov 2015 16:41:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/insert-multiple-row-to-external-database-oracle/m-p/11380327#M1923515</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-11-09T16:41:29Z</dc:date>
    </item>
    <item>
      <title>Re: Insert multiple row to external database Oracle</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert-multiple-row-to-external-database-oracle/m-p/11380328#M1923516</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Eric,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; loop of the internal table.&lt;/P&gt;&lt;P&gt;Use Native SQL Insert statement .&lt;/P&gt;&lt;P&gt;CATCH the native sql error.&lt;/P&gt;&lt;P&gt;endloop,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helpful,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Venkat.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Nov 2015 16:49:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/insert-multiple-row-to-external-database-oracle/m-p/11380328#M1923516</guid>
      <dc:creator>VenkatRamesh_V</dc:creator>
      <dc:date>2015-11-09T16:49:24Z</dc:date>
    </item>
    <item>
      <title>Re: Insert multiple row to external database Oracle</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert-multiple-row-to-external-database-oracle/m-p/11380329#M1923517</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Eric,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please check &lt;A _jive_internal="true" href="https://answers.sap.com/thread/1715404"&gt;this Thread&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Oliver&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Nov 2015 16:49:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/insert-multiple-row-to-external-database-oracle/m-p/11380329#M1923517</guid>
      <dc:creator>oliver_wurm</dc:creator>
      <dc:date>2015-11-09T16:49:25Z</dc:date>
    </item>
    <item>
      <title>Re: Insert multiple row to external database Oracle</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert-multiple-row-to-external-database-oracle/m-p/11380330#M1923518</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you don't understand my requirement... &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Nov 2015 16:51:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/insert-multiple-row-to-external-database-oracle/m-p/11380330#M1923518</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-11-09T16:51:50Z</dc:date>
    </item>
    <item>
      <title>Re: Insert multiple row to external database Oracle</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert-multiple-row-to-external-database-oracle/m-p/11380331#M1923519</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Oliver, so if i understand well, for my requirement i have to use Open SQL, right ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Nov 2015 16:52:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/insert-multiple-row-to-external-database-oracle/m-p/11380331#M1923519</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-11-09T16:52:59Z</dc:date>
    </item>
    <item>
      <title>Re: Insert multiple row to external database Oracle</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert-multiple-row-to-external-database-oracle/m-p/11380332#M1923520</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Eric,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;yes, Open SQL can do this. But you Need to create the same table under the same Name in the DEFAULT database Connection using the normal data dictionary. Only then the ABAP can be generated.&lt;BR /&gt; I have never tried to run a SQL Command vie external Connection with a table instead of single records but I can see no reason why FROM TABLE shouldn't work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Oliver&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Nov 2015 17:02:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/insert-multiple-row-to-external-database-oracle/m-p/11380332#M1923520</guid>
      <dc:creator>oliver_wurm</dc:creator>
      <dc:date>2015-11-09T17:02:53Z</dc:date>
    </item>
    <item>
      <title>Re: Insert multiple row to external database Oracle</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert-multiple-row-to-external-database-oracle/m-p/11380333#M1923521</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, so i will test it &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro_emoticon jive_macro jive_emote" src="https://community.sap.com/1348/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just one question, in the definition of the Oracle table i have the following field :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New';"&gt;. SPR_DATA varchar(32) NOT NULL&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New';"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;What is the conversion in ABAP ? CHAR32 ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New';"&gt;. DT_DATA date NOT NULL&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New';"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New';"&gt;Same question, in ABAP i have to use type DATUM ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New';"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New';"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New';"&gt;Eric&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New';"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New';"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Nov 2015 17:08:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/insert-multiple-row-to-external-database-oracle/m-p/11380333#M1923521</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-11-09T17:08:20Z</dc:date>
    </item>
    <item>
      <title>Re: Insert multiple row to external database Oracle</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert-multiple-row-to-external-database-oracle/m-p/11380334#M1923522</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Eric,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;varchar(32) is CHAR32. You can compare the technical types using SE11 under "Utilities -&amp;gt; Database Object -&amp;gt; Display".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ABAP stores Dates in text fields using one Byte for each Digit. Oracle uses its own internal format to store dates. Date data is stored in fixed-length fields of seven bytes each, corresponding to century, year, month, day, hour, minute and second.&lt;/P&gt;&lt;P&gt;I think I would try to create a RAW(7) field for this. To populate each Byte with the values as defined by Oracle is something ABAP is not really good in. It will be tricky to find an ABAP field matching this Oracle Definition. Maybe &amp;lt;fieldname&amp;gt;(7) type x ??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wouldn't it be easier to Change the type in the external table to a character field?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Oliver&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Nov 2015 17:38:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/insert-multiple-row-to-external-database-oracle/m-p/11380334#M1923522</guid>
      <dc:creator>oliver_wurm</dc:creator>
      <dc:date>2015-11-09T17:38:07Z</dc:date>
    </item>
  </channel>
</rss>

