<?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: How dynamically upload CSV file to customer table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-dynamically-upload-csv-file-to-customer-table/m-p/1135083#M112813</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;   I want to that add-on table is dynamical.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 14 Feb 2006 03:14:48 GMT</pubDate>
    <dc:creator>com_2018</dc:creator>
    <dc:date>2006-02-14T03:14:48Z</dc:date>
    <item>
      <title>How dynamically upload CSV file to customer table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-dynamically-upload-csv-file-to-customer-table/m-p/1135079#M112809</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;   How dynamically upload CSV file to customer table?&lt;/P&gt;&lt;P&gt;Import parameters: &lt;/P&gt;&lt;P&gt;1 Table name &lt;/P&gt;&lt;P&gt;2 Comma separate data (by function 'UPLOAD')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you gvie any ieda?&lt;/P&gt;&lt;P&gt;Reward points for you help.&lt;/P&gt;&lt;P&gt;Thanks and regards,&lt;/P&gt;&lt;P&gt;collysun&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Feb 2006 02:32:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-dynamically-upload-csv-file-to-customer-table/m-p/1135079#M112809</guid>
      <dc:creator>com_2018</dc:creator>
      <dc:date>2006-02-14T02:32:03Z</dc:date>
    </item>
    <item>
      <title>Re: How dynamically upload CSV file to customer table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-dynamically-upload-csv-file-to-customer-table/m-p/1135080#M112810</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Create an internal table itab with your fields in the file and then use GUI_UPLOAD to upload your CSV file to the internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
TABLES: ztable.
DATA filename TYPE string.
CALL FUNCTION 'GUI_UPLOAD'
  EXPORTING
    FILENAME                      =  filename
   FILETYPE                      = 'ASC'
   HAS_FIELD_SEPARATOR           = 'X'
  TABLES
    DATA_TAB                      = itab
 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.

INSERT ZTABLE FROM TABLE ITAB.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Feb 2006 02:58:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-dynamically-upload-csv-file-to-customer-table/m-p/1135080#M112810</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-14T02:58:40Z</dc:date>
    </item>
    <item>
      <title>Re: How dynamically upload CSV file to customer table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-dynamically-upload-csv-file-to-customer-table/m-p/1135081#M112811</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;   I want to dynamically upload.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Feb 2006 03:05:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-dynamically-upload-csv-file-to-customer-table/m-p/1135081#M112811</guid>
      <dc:creator>com_2018</dc:creator>
      <dc:date>2006-02-14T03:05:36Z</dc:date>
    </item>
    <item>
      <title>Re: How dynamically upload CSV file to customer table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-dynamically-upload-csv-file-to-customer-table/m-p/1135082#M112812</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you mean that you want the filename to be dynamically specified?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS : file(128).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA filename TYPE string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;filename = file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now do GUI_UPLOAD.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Feb 2006 03:09:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-dynamically-upload-csv-file-to-customer-table/m-p/1135082#M112812</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-14T03:09:44Z</dc:date>
    </item>
    <item>
      <title>Re: How dynamically upload CSV file to customer table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-dynamically-upload-csv-file-to-customer-table/m-p/1135083#M112813</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;   I want to that add-on table is dynamical.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Feb 2006 03:14:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-dynamically-upload-csv-file-to-customer-table/m-p/1135083#M112813</guid>
      <dc:creator>com_2018</dc:creator>
      <dc:date>2006-02-14T03:14:48Z</dc:date>
    </item>
    <item>
      <title>Re: How dynamically upload CSV file to customer table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-dynamically-upload-csv-file-to-customer-table/m-p/1135084#M112814</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can create dynamic internal table structures using field-symbols like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;TABLES: z538emp.
FIELD-SYMBOLS &amp;lt;fs&amp;gt; STRUCTURE z538emp DEFAULT z538emp.
"Define the structure of field symbol dynamically"
"Then assign it to your internal table"
DATA itab LIKE &amp;lt;fs&amp;gt; OCCURS 0.
DATA filename TYPE string.
CALL FUNCTION 'GUI_UPLOAD'
  EXPORTING
    FILENAME                      =  filename
   FILETYPE                      = 'ASC'
   HAS_FIELD_SEPARATOR           = 'X'
  TABLES
    DATA_TAB                      = itab
 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.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Feb 2006 03:37:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-dynamically-upload-csv-file-to-customer-table/m-p/1135084#M112814</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-14T03:37:39Z</dc:date>
    </item>
  </channel>
</rss>

