<?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 Export Sap table to Sql Server or any database with index in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/export-sap-table-to-sql-server-or-any-database-with-index/m-p/1665373#M294584</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi friends&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want export selected (at selection screen) table structure to Sql Server (or Access,Paradox etc.) with Indexes (if not possible only primary key). How can I do that? Does anybody have an example application for that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 31 Oct 2006 13:56:14 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-10-31T13:56:14Z</dc:date>
    <item>
      <title>Export Sap table to Sql Server or any database with index</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/export-sap-table-to-sql-server-or-any-database-with-index/m-p/1665373#M294584</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi friends&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want export selected (at selection screen) table structure to Sql Server (or Access,Paradox etc.) with Indexes (if not possible only primary key). How can I do that? Does anybody have an example application for that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Oct 2006 13:56:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/export-sap-table-to-sql-server-or-any-database-with-index/m-p/1665373#M294584</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-31T13:56:14Z</dc:date>
    </item>
    <item>
      <title>Re: Export Sap table to Sql Server or any database with index</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/export-sap-table-to-sql-server-or-any-database-with-index/m-p/1665374#M294585</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Uggh... Does anybody know anything?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Nov 2006 07:42:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/export-sap-table-to-sql-server-or-any-database-with-index/m-p/1665374#M294585</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-01T07:42:18Z</dc:date>
    </item>
    <item>
      <title>Re: Export Sap table to Sql Server or any database with index</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/export-sap-table-to-sql-server-or-any-database-with-index/m-p/1665375#M294586</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mehmet&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  FM: DDIF_NAMETAB_GET should server your requirement in extracting. You can download the data into an internal table and then transfer the same to SQL Server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below code can help you in using the same:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;parameters: p_table type DDOBJNAME obligatory.
data: it_x031l type table of x031l,
      it_dfies type table of dfies.

CALL FUNCTION 'DDIF_NAMETAB_GET'
  EXPORTING
    TABNAME           = p_table
 TABLES
   X031L_TAB         = it_x031l
   DFIES_TAB         = it_dfies
 EXCEPTIONS
   NOT_FOUND         = 1
   OTHERS            = 2.
IF SY-SUBRC eq 0.

   CALL FUNCTION 'GUI_DOWNLOAD'
     EXPORTING
       FILENAME                        = 'C:T100.xls'
      WRITE_FIELD_SEPARATOR           =
cl_abap_char_utilities=&amp;gt;horizontal_tab
     TABLES
       DATA_TAB                        = it_dfies
    EXCEPTIONS
      FILE_WRITE_ERROR                = 1
      NO_BATCH                        = 2
      GUI_REFUSE_FILETRANSFER         = 3
      INVALID_TYPE                    = 4
      NO_AUTHORITY                    = 5
      UNKNOWN_ERROR                   = 6
      HEADER_NOT_ALLOWED              = 7
      SEPARATOR_NOT_ALLOWED           = 8
      FILESIZE_NOT_ALLOWED            = 9
      HEADER_TOO_LONG                 = 10
      DP_ERROR_CREATE                 = 11
      DP_ERROR_SEND                   = 12
      DP_ERROR_WRITE                  = 13
      UNKNOWN_DP_ERROR                = 14
      ACCESS_DENIED                   = 15
      DP_OUT_OF_MEMORY                = 16
      DISK_FULL                       = 17
      DP_TIMEOUT                      = 18
      FILE_NOT_FOUND                  = 19
      DATAPROVIDER_EXCEPTION          = 20
      CONTROL_FLUSH_ERROR             = 21
      OTHERS                          = 22
             .
   IF SY-SUBRC &amp;lt;&amp;gt; 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
   ENDIF.

ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We can pass both Table or Structure Names for paramter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards&lt;/P&gt;&lt;P&gt;Eswar&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Code for using the above FM&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Nov 2006 07:57:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/export-sap-table-to-sql-server-or-any-database-with-index/m-p/1665375#M294586</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-01T07:57:44Z</dc:date>
    </item>
    <item>
      <title>Re: Export Sap table to Sql Server or any database with index</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/export-sap-table-to-sql-server-or-any-database-with-index/m-p/1665376#M294587</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 will explain you my requirement.&lt;/P&gt;&lt;P&gt;Whenever there is a change in HR master data like insertion of new personnel number or deletion of personnel number or change in cost center , those changes should get updated immediately in the SQL sever. &lt;/P&gt;&lt;P&gt;That means the updation should be event driven like whenver there is a change in HR master data then only SQL Server should get updated.&lt;/P&gt;&lt;P&gt;Can this functionality be achieved programatically ??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Chandrika.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Nov 2006 09:46:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/export-sap-table-to-sql-server-or-any-database-with-index/m-p/1665376#M294587</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-30T09:46:48Z</dc:date>
    </item>
  </channel>
</rss>

