<?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 Comma separated Text file. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/upload-comma-separated-text-file/m-p/1039934#M86170</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 would like to upload a comma seperated text file into an internal table using CL_GUI_FRONTEND_SERVICES=&amp;gt;GUI_UPLOAD but am not able to load correctly. Please let me know any aditional parameters should be pass to this FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data **********&lt;/P&gt;&lt;P&gt;060000012,1001,01052005,2.5,C123,0198345678912&lt;/P&gt;&lt;P&gt;08000001,1001,01052005,5.0,C123,016545678912&lt;/P&gt;&lt;P&gt;08000001,1002,02052005,2.5,C234,012345678912&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*********&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;types  : Begin of ty_itab,&lt;/P&gt;&lt;P&gt; pernr(10),&lt;/P&gt;&lt;P&gt; ABS_ATT_TYPE(4),&lt;/P&gt;&lt;P&gt; REC_CCTR(10),&lt;/P&gt;&lt;P&gt; work_order(12),&lt;/P&gt;&lt;P&gt; date(8),&lt;/P&gt;&lt;P&gt; hours(8).&lt;/P&gt;&lt;P&gt;types: end of ty_itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : itab type standard table of ty_itab with header line .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL METHOD CL_GUI_FRONTEND_SERVICES=&amp;gt;GUI_UPLOAD&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    FILENAME                = 'C:\LOAD.TXT'&lt;/P&gt;&lt;P&gt;     FILETYPE                = 'ASC'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    HAS_FIELD_SEPARATOR     = 'X'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   HEADER_LENGTH           = 0&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   DAT_MODE                = SPACE&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   CODEPAGE                = SPACE&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   IGNORE_CERR             = ABAP_TRUE&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   REPLACEMENT             = '#'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   READ_BY_LINE            = 'X'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; IMPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   FILELENGTH              =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   HEADER                  =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CHANGING&lt;/P&gt;&lt;P&gt;    DATA_TAB                = itab[]&lt;/P&gt;&lt;P&gt;  EXCEPTIONS&lt;/P&gt;&lt;P&gt;    FILE_OPEN_ERROR         = 1&lt;/P&gt;&lt;P&gt;    FILE_READ_ERROR         = 2&lt;/P&gt;&lt;P&gt;    NO_BATCH                = 3&lt;/P&gt;&lt;P&gt;    GUI_REFUSE_FILETRANSFER = 4&lt;/P&gt;&lt;P&gt;    INVALID_TYPE            = 5&lt;/P&gt;&lt;P&gt;    NO_AUTHORITY            = 6&lt;/P&gt;&lt;P&gt;    UNKNOWN_ERROR           = 7&lt;/P&gt;&lt;P&gt;    BAD_DATA_FORMAT         = 8&lt;/P&gt;&lt;P&gt;    HEADER_NOT_ALLOWED      = 9&lt;/P&gt;&lt;P&gt;    SEPARATOR_NOT_ALLOWED   = 10&lt;/P&gt;&lt;P&gt;    HEADER_TOO_LONG         = 11&lt;/P&gt;&lt;P&gt;    UNKNOWN_DP_ERROR        = 12&lt;/P&gt;&lt;P&gt;    ACCESS_DENIED           = 13&lt;/P&gt;&lt;P&gt;    DP_OUT_OF_MEMORY        = 14&lt;/P&gt;&lt;P&gt;    DISK_FULL               = 15&lt;/P&gt;&lt;P&gt;    DP_TIMEOUT              = 16&lt;/P&gt;&lt;P&gt;    NOT_SUPPORTED_BY_GUI    = 17&lt;/P&gt;&lt;P&gt;    ERROR_NO_GUI            = 18&lt;/P&gt;&lt;P&gt;    others                  = 19&lt;/P&gt;&lt;P&gt;        .&lt;/P&gt;&lt;P&gt;IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;           WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thx&lt;/P&gt;&lt;P&gt;Palani&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 14 Dec 2005 07:20:41 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-12-14T07:20:41Z</dc:date>
    <item>
      <title>upload Comma separated Text file.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/upload-comma-separated-text-file/m-p/1039934#M86170</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 would like to upload a comma seperated text file into an internal table using CL_GUI_FRONTEND_SERVICES=&amp;gt;GUI_UPLOAD but am not able to load correctly. Please let me know any aditional parameters should be pass to this FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data **********&lt;/P&gt;&lt;P&gt;060000012,1001,01052005,2.5,C123,0198345678912&lt;/P&gt;&lt;P&gt;08000001,1001,01052005,5.0,C123,016545678912&lt;/P&gt;&lt;P&gt;08000001,1002,02052005,2.5,C234,012345678912&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*********&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;types  : Begin of ty_itab,&lt;/P&gt;&lt;P&gt; pernr(10),&lt;/P&gt;&lt;P&gt; ABS_ATT_TYPE(4),&lt;/P&gt;&lt;P&gt; REC_CCTR(10),&lt;/P&gt;&lt;P&gt; work_order(12),&lt;/P&gt;&lt;P&gt; date(8),&lt;/P&gt;&lt;P&gt; hours(8).&lt;/P&gt;&lt;P&gt;types: end of ty_itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : itab type standard table of ty_itab with header line .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL METHOD CL_GUI_FRONTEND_SERVICES=&amp;gt;GUI_UPLOAD&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    FILENAME                = 'C:\LOAD.TXT'&lt;/P&gt;&lt;P&gt;     FILETYPE                = 'ASC'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    HAS_FIELD_SEPARATOR     = 'X'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   HEADER_LENGTH           = 0&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   DAT_MODE                = SPACE&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   CODEPAGE                = SPACE&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   IGNORE_CERR             = ABAP_TRUE&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   REPLACEMENT             = '#'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   READ_BY_LINE            = 'X'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; IMPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   FILELENGTH              =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   HEADER                  =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CHANGING&lt;/P&gt;&lt;P&gt;    DATA_TAB                = itab[]&lt;/P&gt;&lt;P&gt;  EXCEPTIONS&lt;/P&gt;&lt;P&gt;    FILE_OPEN_ERROR         = 1&lt;/P&gt;&lt;P&gt;    FILE_READ_ERROR         = 2&lt;/P&gt;&lt;P&gt;    NO_BATCH                = 3&lt;/P&gt;&lt;P&gt;    GUI_REFUSE_FILETRANSFER = 4&lt;/P&gt;&lt;P&gt;    INVALID_TYPE            = 5&lt;/P&gt;&lt;P&gt;    NO_AUTHORITY            = 6&lt;/P&gt;&lt;P&gt;    UNKNOWN_ERROR           = 7&lt;/P&gt;&lt;P&gt;    BAD_DATA_FORMAT         = 8&lt;/P&gt;&lt;P&gt;    HEADER_NOT_ALLOWED      = 9&lt;/P&gt;&lt;P&gt;    SEPARATOR_NOT_ALLOWED   = 10&lt;/P&gt;&lt;P&gt;    HEADER_TOO_LONG         = 11&lt;/P&gt;&lt;P&gt;    UNKNOWN_DP_ERROR        = 12&lt;/P&gt;&lt;P&gt;    ACCESS_DENIED           = 13&lt;/P&gt;&lt;P&gt;    DP_OUT_OF_MEMORY        = 14&lt;/P&gt;&lt;P&gt;    DISK_FULL               = 15&lt;/P&gt;&lt;P&gt;    DP_TIMEOUT              = 16&lt;/P&gt;&lt;P&gt;    NOT_SUPPORTED_BY_GUI    = 17&lt;/P&gt;&lt;P&gt;    ERROR_NO_GUI            = 18&lt;/P&gt;&lt;P&gt;    others                  = 19&lt;/P&gt;&lt;P&gt;        .&lt;/P&gt;&lt;P&gt;IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;           WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thx&lt;/P&gt;&lt;P&gt;Palani&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Dec 2005 07:20:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/upload-comma-separated-text-file/m-p/1039934#M86170</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-14T07:20:41Z</dc:date>
    </item>
    <item>
      <title>Re: upload Comma separated Text file.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/upload-comma-separated-text-file/m-p/1039935#M86171</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;CALL METHOD CL_GUI_FRONTEND_SERVICES=&amp;gt;GUI_UPLOAD
EXPORTING
FILENAME = 'C:LOAD.TXT'
FILETYPE = 'ASC'
&amp;lt;b&amp;gt; HAS_FIELD_SEPARATOR = 'X'&amp;lt;/b&amp;gt;
* HEADER_LENGTH = 0
* DAT_MODE = SPACE
* CODEPAGE = SPACE
* IGNORE_CERR = ABAP_TRUE
* REPLACEMENT = '#'
* READ_BY_LINE = 'X'
* IMPORTING
* FILELENGTH =
* HEADER =
CHANGING
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
NOT_SUPPORTED_BY_GUI = 17
ERROR_NO_GUI = 18
others = 19
.
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;uncomment the bold one..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Dec 2005 07:23:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/upload-comma-separated-text-file/m-p/1039935#M86171</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-14T07:23:48Z</dc:date>
    </item>
    <item>
      <title>Re: upload Comma separated Text file.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/upload-comma-separated-text-file/m-p/1039936#M86172</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have uncommented but still not workin . u can try to copy n exe with uncommenting that parameter. this prg which i have given.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thx&lt;/P&gt;&lt;P&gt;Palani&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Dec 2005 07:26:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/upload-comma-separated-text-file/m-p/1039936#M86172</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-14T07:26:45Z</dc:date>
    </item>
    <item>
      <title>Re: upload Comma separated Text file.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/upload-comma-separated-text-file/m-p/1039937#M86173</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;report ZTEST .
 
data: file type string.
 
types: begin of ttab,
      matnr type mara-matnr,
      werks type marc-werks,
      end of ttab.
 
data: itab type table of ttab.
 
start-of-selection.
 
  file = 'C:test.csv'.
 
  call method cl_gui_frontend_services=&amp;gt;gui_upload
    exporting
      filename                = file
    filetype                = 'ASC'
     has_field_separator     = 'X'
    changing
      data_tab                = itab
  exceptions
    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;[code]&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Dec 2005 07:29:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/upload-comma-separated-text-file/m-p/1039937#M86173</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-14T07:29:27Z</dc:date>
    </item>
    <item>
      <title>Re: upload Comma separated Text file.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/upload-comma-separated-text-file/m-p/1039938#M86174</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;as you are telling that is comma delimited then save the file as comma delimited, &lt;/P&gt;&lt;P&gt;this can be done uisng excel , open the text fiel with excel and save it as .csv file. and try ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or else i will tell another solution for it...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Data: begin of itab occurs 0,
      rec(1000) type c,
      end of itab.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Data: begin of itab2 occurs 0,
      matnr type mara-matnr
      werks type marc-werks
      quant(10) type c.
      end of itab2.
  file = 'C:test.txt'.
 
  call method cl_gui_frontend_services=&amp;gt;gui_upload
    exporting
      filename                = file
    filetype                = 'ASC'
     has_field_separator     = 'X'
    changing
      data_tab                = itab
  exceptions
    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 itab.
 
clear itab2.
split itab-rec at ',' into itab2-matnr 
                           itab2-werks
                           itab2-quant.
append itab2.
 
endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can do using any of the one...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Dec 2005 07:33:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/upload-comma-separated-text-file/m-p/1039938#M86174</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-14T07:33:05Z</dc:date>
    </item>
    <item>
      <title>Re: upload Comma separated Text file.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/upload-comma-separated-text-file/m-p/1039939#M86175</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;don't forget to reward if your problem solves..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Dec 2005 07:33:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/upload-comma-separated-text-file/m-p/1039939#M86175</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-14T07:33:57Z</dc:date>
    </item>
    <item>
      <title>Re: upload Comma separated Text file.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/upload-comma-separated-text-file/m-p/1039940#M86176</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI &lt;/P&gt;&lt;P&gt; Is there any fm to upload directly. &lt;/P&gt;&lt;P&gt;Thx&lt;/P&gt;&lt;P&gt;Palani&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Dec 2005 07:41:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/upload-comma-separated-text-file/m-p/1039940#M86176</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-14T07:41:34Z</dc:date>
    </item>
    <item>
      <title>Re: upload Comma separated Text file.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/upload-comma-separated-text-file/m-p/1039941#M86177</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 don't have any idea whether we can read comma separeted text file.&lt;/P&gt;&lt;P&gt;but you can solve the problen by creating an internal table say itab1&lt;/P&gt;&lt;P&gt;with one field of type c and length around 130 or so.&lt;/P&gt;&lt;P&gt;first get all the text file contents into it.&lt;/P&gt;&lt;P&gt;and then loop by itab1&lt;/P&gt;&lt;P&gt;loop at itab1.&lt;/P&gt;&lt;P&gt;  SPLIT itab1-field1 AT ',' INTO  itab. &lt;/P&gt;&lt;P&gt;  append itab.&lt;/P&gt;&lt;P&gt;  clear itab.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Manohar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Dec 2005 07:46:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/upload-comma-separated-text-file/m-p/1039941#M86177</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-14T07:46:23Z</dc:date>
    </item>
    <item>
      <title>Re: upload Comma separated Text file.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/upload-comma-separated-text-file/m-p/1039942#M86178</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt; file = 'C:test.csv'.
 
  call method cl_gui_frontend_services=&amp;gt;gui_upload
    exporting
      filename                = file
    filetype                = 'ASC'
     has_field_separator     = 'X'
    changing
      data_tab                = itab
  exceptions
    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;P&gt;if it is .csv file then specify the file name as text.csv and give has_field_separator  = 'X'..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this should upload ...&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Dec 2005 07:48:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/upload-comma-separated-text-file/m-p/1039942#M86178</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-14T07:48:21Z</dc:date>
    </item>
    <item>
      <title>Re: upload Comma separated Text file.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/upload-comma-separated-text-file/m-p/1039943#M86179</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try to save the text file as comma delimited file using excel.(open with exccel, save as .csv file)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and use upload , specify has_fieldseparator = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if it doesn't work then refer to the other logic which i mentioned..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Dec 2005 07:59:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/upload-comma-separated-text-file/m-p/1039943#M86179</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-14T07:59:31Z</dc:date>
    </item>
    <item>
      <title>Re: upload Comma separated Text file.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/upload-comma-separated-text-file/m-p/1039944#M86180</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Palani&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;U can upload the data into another itab of single field.&lt;/P&gt;&lt;P&gt;and then split the fields into the corresponding fields of ty_itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Neelima.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Dec 2005 09:28:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/upload-comma-separated-text-file/m-p/1039944#M86180</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-14T09:28:43Z</dc:date>
    </item>
    <item>
      <title>Re: upload Comma separated Text file.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/upload-comma-separated-text-file/m-p/1039945#M86181</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks problem resolved.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Aug 2011 05:25:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/upload-comma-separated-text-file/m-p/1039945#M86181</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-08-16T05:25:15Z</dc:date>
    </item>
  </channel>
</rss>

