<?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: FM uploads scot data in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-uploads-scot-data/m-p/5079368#M1179774</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;Create the same structure of internal table,&lt;/P&gt;&lt;P&gt;and using the GUI_UPLOAD upload the data into an internal table and&lt;/P&gt;&lt;P&gt;using INSERT command &lt;/P&gt;&lt;P&gt;INSERT TABLE dbtable from itab.&lt;/P&gt;&lt;P&gt;upload it in db table&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 09 Feb 2009 07:41:15 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-02-09T07:41:15Z</dc:date>
    <item>
      <title>FM uploads scot data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-uploads-scot-data/m-p/5079366#M1179772</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;I have the data of tables SXNODES, SXROUTE and SXSERV in internal table. Can anyone tell me dat is there any FM in which by passing this internal table, data get uploaded in these Database table?&lt;/P&gt;&lt;P&gt;Also, we cant make BDC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please help me out&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Feb 2009 07:33:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-uploads-scot-data/m-p/5079366#M1179772</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-09T07:33:10Z</dc:date>
    </item>
    <item>
      <title>Re: FM uploads scot data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-uploads-scot-data/m-p/5079367#M1179773</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jatin,&lt;/P&gt;&lt;P&gt;           You can use Funtion Module.The name of the function module is 'GUI_UPLOAD'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: &amp;lt;TABLE&amp;gt; LIKE STANDARD TABLE OF &amp;lt;DB_TABLE&amp;gt;.
  DATA: &amp;lt;FS_STRING&amp;gt; LIKE SPFLI.
  CALL FUNCTION 'GUI_UPLOAD'
    EXPORTING
      filename                      = 'FILEADD/NAME.TXT'
     FILETYPE                      = 'ASC'
*     HAS_FIELD_SEPARATOR           = ' '
*     HEADER_LENGTH                 = 0
*     READ_BY_LINE                  = 'X'
*     DAT_MODE                      = ' '
*     CODEPAGE                      = ' '
*     IGNORE_CERR                   = ABAP_TRUE
*     REPLACEMENT                   = '#'
*     CHECK_BOM                     = ' '
*     VIRUS_SCAN_PROFILE            =
*     NO_AUTH_CHECK                 = ' '
*   IMPORTING
*     FILELENGTH                    =
*     HEADER                        =
    tables
      data_tab                      = &amp;lt;TABLE&amp;gt;
*   EXCEPTIONS
*     FILE_OPEN_ERROR               = 1
*     FILE_READ_ERROR               = 2
*     NO_BATCH                      = 3
*     GUI_REFUSE_FILETRANSFER       = 4
*     INVALID_TYPE                  = 5
*     NO_AUTHORITY                  = 6
*     UNKNOWN_ERROR                 = 7
*     BAD_DATA_FORMAT               = 8
*     HEADER_NOT_ALLOWED            = 9
*     SEPARATOR_NOT_ALLOWED         = 10
*     HEADER_TOO_LONG               = 11
*     UNKNOWN_DP_ERROR              = 12
*     ACCESS_DENIED                 = 13
*     DP_OUT_OF_MEMORY              = 14
*     DISK_FULL                     = 15
*     DP_TIMEOUT                    = 16
*     OTHERS                        = 17
            .
  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.
  LOOP AT &amp;lt;TABLE&amp;gt; INTO &amp;lt;FS_STRING&amp;gt;.
  INSERT INTO &amp;lt;DBTABLE&amp;gt; VALUES &amp;lt;FS_STRING&amp;gt;.
  ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You may face the error in the format of the data.For that please check the documentation of the function module.&lt;/P&gt;&lt;P&gt;Hope you will resolve the query.&lt;/P&gt;&lt;P&gt;Have a best day ahead.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Feb 2009 07:35:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-uploads-scot-data/m-p/5079367#M1179773</guid>
      <dc:creator>gaursri</dc:creator>
      <dc:date>2009-02-09T07:35:25Z</dc:date>
    </item>
    <item>
      <title>Re: FM uploads scot data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-uploads-scot-data/m-p/5079368#M1179774</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;Create the same structure of internal table,&lt;/P&gt;&lt;P&gt;and using the GUI_UPLOAD upload the data into an internal table and&lt;/P&gt;&lt;P&gt;using INSERT command &lt;/P&gt;&lt;P&gt;INSERT TABLE dbtable from itab.&lt;/P&gt;&lt;P&gt;upload it in db table&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Feb 2009 07:41:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-uploads-scot-data/m-p/5079368#M1179774</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-09T07:41:15Z</dc:date>
    </item>
  </channel>
</rss>

