<?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 UPLOAD DATA FROM INT-TABLE TO ORACLE TABLE... in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/upload-data-from-int-table-to-oracle-table/m-p/1607145#M272461</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;I am working on uploading data from sap internal table to oracle table through DBCO conection. I have the code to read data from the oracle table but need some help to upload data..any sample codes would be helpful. let me share what i have right now.&lt;/P&gt;&lt;P&gt;This is getting data into SAP I want to get data out of SAP to ORACLE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT  ZTEST2.&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF IT_FLAT2 ,&lt;/P&gt;&lt;P&gt;      MATERIAL(18),&lt;/P&gt;&lt;P&gt;      ALTERNATIVE(2),&lt;/P&gt;&lt;P&gt;      COMPONENT(18),&lt;/P&gt;&lt;P&gt;      HM_ROLL_PRACTICE(3),&lt;/P&gt;&lt;P&gt;END OF IT_FLAT2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: COUNT TYPE i.&lt;/P&gt;&lt;P&gt;COUNT = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EXEC SQL.&lt;/P&gt;&lt;P&gt;CONNECT TO 'RPDDBP02-MRP' AS 'V'&lt;/P&gt;&lt;P&gt;ENDEXEC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EXEC SQL.&lt;/P&gt;&lt;P&gt;SET CONNECTION 'V'&lt;/P&gt;&lt;P&gt;ENDEXEC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*- Get the data from MS-SQL Server&lt;/P&gt;&lt;P&gt;EXEC SQL.&lt;/P&gt;&lt;P&gt;open BOM_LINK1 for&lt;/P&gt;&lt;P&gt;select&lt;/P&gt;&lt;P&gt;material,&lt;/P&gt;&lt;P&gt;alternative,&lt;/P&gt;&lt;P&gt;component,&lt;/P&gt;&lt;P&gt;hm_roll_practice&lt;/P&gt;&lt;P&gt;from BOM_LINK&lt;/P&gt;&lt;P&gt;ENDEXEC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DO.&lt;/P&gt;&lt;P&gt;EXEC SQL.&lt;/P&gt;&lt;P&gt;FETCH NEXT BOM_LINK1 into :IT_FLAT2-MATERIAL, :IT_FLAT2-ALTERNATIVE,&lt;/P&gt;&lt;P&gt;:IT_FLAT2-COMPONENT, :IT_FLAT2-HM_ROLL_PRACTICE&lt;/P&gt;&lt;P&gt;ENDEXEC.&lt;/P&gt;&lt;P&gt;IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;COUNT = COUNT + 1.&lt;/P&gt;&lt;P&gt;PERFORM loop_output.&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;EXIT.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;ENDDO.&lt;/P&gt;&lt;P&gt;WRITE: / COUNT.&lt;/P&gt;&lt;P&gt;EXEC SQL.&lt;/P&gt;&lt;P&gt;CLOSE BOM_LINK1&lt;/P&gt;&lt;P&gt;ENDEXEC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp; Form LOOP_OUTPUT&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Output&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM loop_output .&lt;/P&gt;&lt;P&gt;WRITE: /1 IT_FLAT2-MATERIAL, 30 IT_FLAT2-ALTERNATIVE, 38&lt;/P&gt;&lt;P&gt;IT_FLAT2-COMPONENT, 80 IT_FLAT2-HM_ROLL_PRACTICE.&lt;/P&gt;&lt;P&gt;CLEAR IT_FLAT2.&lt;/P&gt;&lt;P&gt;ENDFORM. " LOOP_OUTPUT&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 Oct 2006 17:59:19 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-10-05T17:59:19Z</dc:date>
    <item>
      <title>UPLOAD DATA FROM INT-TABLE TO ORACLE TABLE...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/upload-data-from-int-table-to-oracle-table/m-p/1607145#M272461</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;I am working on uploading data from sap internal table to oracle table through DBCO conection. I have the code to read data from the oracle table but need some help to upload data..any sample codes would be helpful. let me share what i have right now.&lt;/P&gt;&lt;P&gt;This is getting data into SAP I want to get data out of SAP to ORACLE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT  ZTEST2.&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF IT_FLAT2 ,&lt;/P&gt;&lt;P&gt;      MATERIAL(18),&lt;/P&gt;&lt;P&gt;      ALTERNATIVE(2),&lt;/P&gt;&lt;P&gt;      COMPONENT(18),&lt;/P&gt;&lt;P&gt;      HM_ROLL_PRACTICE(3),&lt;/P&gt;&lt;P&gt;END OF IT_FLAT2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: COUNT TYPE i.&lt;/P&gt;&lt;P&gt;COUNT = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EXEC SQL.&lt;/P&gt;&lt;P&gt;CONNECT TO 'RPDDBP02-MRP' AS 'V'&lt;/P&gt;&lt;P&gt;ENDEXEC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EXEC SQL.&lt;/P&gt;&lt;P&gt;SET CONNECTION 'V'&lt;/P&gt;&lt;P&gt;ENDEXEC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*- Get the data from MS-SQL Server&lt;/P&gt;&lt;P&gt;EXEC SQL.&lt;/P&gt;&lt;P&gt;open BOM_LINK1 for&lt;/P&gt;&lt;P&gt;select&lt;/P&gt;&lt;P&gt;material,&lt;/P&gt;&lt;P&gt;alternative,&lt;/P&gt;&lt;P&gt;component,&lt;/P&gt;&lt;P&gt;hm_roll_practice&lt;/P&gt;&lt;P&gt;from BOM_LINK&lt;/P&gt;&lt;P&gt;ENDEXEC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DO.&lt;/P&gt;&lt;P&gt;EXEC SQL.&lt;/P&gt;&lt;P&gt;FETCH NEXT BOM_LINK1 into :IT_FLAT2-MATERIAL, :IT_FLAT2-ALTERNATIVE,&lt;/P&gt;&lt;P&gt;:IT_FLAT2-COMPONENT, :IT_FLAT2-HM_ROLL_PRACTICE&lt;/P&gt;&lt;P&gt;ENDEXEC.&lt;/P&gt;&lt;P&gt;IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;COUNT = COUNT + 1.&lt;/P&gt;&lt;P&gt;PERFORM loop_output.&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;EXIT.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;ENDDO.&lt;/P&gt;&lt;P&gt;WRITE: / COUNT.&lt;/P&gt;&lt;P&gt;EXEC SQL.&lt;/P&gt;&lt;P&gt;CLOSE BOM_LINK1&lt;/P&gt;&lt;P&gt;ENDEXEC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp; Form LOOP_OUTPUT&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Output&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM loop_output .&lt;/P&gt;&lt;P&gt;WRITE: /1 IT_FLAT2-MATERIAL, 30 IT_FLAT2-ALTERNATIVE, 38&lt;/P&gt;&lt;P&gt;IT_FLAT2-COMPONENT, 80 IT_FLAT2-HM_ROLL_PRACTICE.&lt;/P&gt;&lt;P&gt;CLEAR IT_FLAT2.&lt;/P&gt;&lt;P&gt;ENDFORM. " LOOP_OUTPUT&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Oct 2006 17:59:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/upload-data-from-int-table-to-oracle-table/m-p/1607145#M272461</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-05T17:59:19Z</dc:date>
    </item>
    <item>
      <title>Re: UPLOAD DATA FROM INT-TABLE TO ORACLE TABLE...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/upload-data-from-int-table-to-oracle-table/m-p/1607146#M272462</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;VJ RJ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your req seems a bit unclear.  Can try to explain more?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What DB system does your current SAP system use - MS SQL or Oracle?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You are simply trying to write this data to a flat file - it looks like - yes?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Oct 2006 18:30:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/upload-data-from-int-table-to-oracle-table/m-p/1607146#M272462</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-05T18:30:13Z</dc:date>
    </item>
  </channel>
</rss>

