<?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 CSV upload using GUI_UPLOAD in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/csv-upload-using-gui-upload/m-p/1592903#M266568</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 have a requirement to upload a CSV file. I used the fm GUI_UPLOAD for this. the internal table will be one with a single field and all the field values seperated by ',' right? is there any way to get this fields populated into the corresponding fields while uploading using the FM itself and how?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i tried to use split at ',' to achieve this after uploading. but since some fields are with data type quantity its not working. how i can proceed to achieve my requirement?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Anoop R.S&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 01 Oct 2006 06:01:22 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-10-01T06:01:22Z</dc:date>
    <item>
      <title>CSV upload using GUI_UPLOAD</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/csv-upload-using-gui-upload/m-p/1592903#M266568</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 have a requirement to upload a CSV file. I used the fm GUI_UPLOAD for this. the internal table will be one with a single field and all the field values seperated by ',' right? is there any way to get this fields populated into the corresponding fields while uploading using the FM itself and how?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i tried to use split at ',' to achieve this after uploading. but since some fields are with data type quantity its not working. how i can proceed to achieve my requirement?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Anoop R.S&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 01 Oct 2006 06:01:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/csv-upload-using-gui-upload/m-p/1592903#M266568</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-01T06:01:22Z</dc:date>
    </item>
    <item>
      <title>Re: CSV upload using GUI_UPLOAD</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/csv-upload-using-gui-upload/m-p/1592904#M266569</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi anoop,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. simple&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. just copy paste.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. the file name is d:\myfile.txt&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the contents are - 2 records:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;amit;mittal&lt;/P&gt;&lt;P&gt;mr;xyz&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;report abc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;type-pools : TRUXS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="-----------------------------------------" /&gt;&lt;P&gt;data : rawdata type TRUXS_T_TEXT_DATA.&lt;/P&gt;&lt;P&gt;data : begin of itab occurs 0,&lt;/P&gt;&lt;P&gt;       f1(10) type c,&lt;/P&gt;&lt;P&gt;       f2(10) type c,&lt;/P&gt;&lt;P&gt;       end of itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="-----------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'GUI_UPLOAD'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    FILENAME                      = 'd:\myfile.txt'&lt;/P&gt;&lt;P&gt;  TABLES&lt;/P&gt;&lt;P&gt;    DATA_TAB                      = rawdata&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;   OTHERS                        = 17&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;HR originaltext="-----------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'TEXT_CONVERT_CSV_TO_SAP'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;   I_FIELD_SEPERATOR          = ';'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  I_LINE_HEADER              =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    I_TAB_RAW_DATA             = rawdata&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  I_FILENAME                 = 'd:\myfile1.txt'&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  TABLES&lt;/P&gt;&lt;P&gt;    I_TAB_CONVERTED_DATA       = itab&lt;/P&gt;&lt;P&gt; EXCEPTIONS&lt;/P&gt;&lt;P&gt;   CONVERSION_FAILED          = 1&lt;/P&gt;&lt;P&gt;   OTHERS                     = 2&lt;/P&gt;&lt;P&gt;          .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;break-point.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;amit m.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 01 Oct 2006 07:27:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/csv-upload-using-gui-upload/m-p/1592904#M266569</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-01T07:27:57Z</dc:date>
    </item>
    <item>
      <title>Re: CSV upload using GUI_UPLOAD</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/csv-upload-using-gui-upload/m-p/1592905#M266570</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;define your internal table with the fields you have in the text file. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then call GUI_UPLOAD function module,&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'GUI_UPLOAD'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    FILENAME = 'C:\ABC.CSV'&lt;/P&gt;&lt;P&gt;    FILETYPE = 'ASC'&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;    HAS_FIELD_SEPERATOR = 'X'&lt;/P&gt;&lt;P&gt; TABLES&lt;/P&gt;&lt;P&gt;  DATATAB = ITAB.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;here ITAB is your Internal table with all the Fields.&lt;/P&gt;&lt;P&gt;if you place &amp;lt;b&amp;gt;    HAS_FIELD_SEPERATOR = 'X' field ,then SAP will automatically populate values to those fields of ITAB accordingly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but if you have any quantity/currency fields with decimals or thousand seperator as comma(,)then it would be a problem. check it once.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Srikanth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 01 Oct 2006 17:45:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/csv-upload-using-gui-upload/m-p/1592905#M266570</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-01T17:45:48Z</dc:date>
    </item>
  </channel>
</rss>

