<?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: CSV File in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/csv-file/m-p/1723029#M315421</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Instead of using GUI_UPLOAD try to use ALSM_EXCEL_TO_INTERNAL_TABLE which will help u..This FM automatically splits fields into internal table...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Nov 2006 13:59:50 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-11-15T13:59:50Z</dc:date>
    <item>
      <title>CSV File</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/csv-file/m-p/1723027#M315419</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt; Am trying to upload the CSV file into internal table using 'GUI_UPLOAD' initially and then splitting the record at ',' into different fields. But the issue is, my data contains numbers (currency) and they have ',' in the data and hence the data is uploaded into the internal table with 'GUI_UPLOAD' inbetween " ", for example, "41,500". &lt;/P&gt;&lt;P&gt;  So when we use Split at ',' it splits the entire number to "41 and 500" etc..&lt;/P&gt;&lt;P&gt;  How can I resolve this? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;Tony.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Nov 2006 13:55:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/csv-file/m-p/1723027#M315419</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-15T13:55:34Z</dc:date>
    </item>
    <item>
      <title>Re: CSV File</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/csv-file/m-p/1723028#M315420</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use tab delimited file instead of CSV file.&lt;/P&gt;&lt;P&gt;or you can try out these function modules.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TEXT_CONVERT_CSV_TO_SAP&lt;/P&gt;&lt;P&gt;KCD_CSV_FILE_TO_INTERN_CONVERT &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps.&lt;/P&gt;&lt;P&gt;Reward points if its useful&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Nov 2006 13:58:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/csv-file/m-p/1723028#M315420</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-15T13:58:15Z</dc:date>
    </item>
    <item>
      <title>Re: CSV File</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/csv-file/m-p/1723029#M315421</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Instead of using GUI_UPLOAD try to use ALSM_EXCEL_TO_INTERNAL_TABLE which will help u..This FM automatically splits fields into internal table...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Nov 2006 13:59:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/csv-file/m-p/1723029#M315421</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-15T13:59:50Z</dc:date>
    </item>
    <item>
      <title>Re: CSV File</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/csv-file/m-p/1723030#M315422</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;YOu have to build an internal table of exactly the same structure as the file, including a separate field for holding the ',' as well.&lt;/P&gt;&lt;P&gt;Once you upload those fields into the internal table, you can move them to another internal table which has no separator.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: begin of itab1 occurs 0,&lt;/P&gt;&lt;P&gt;          field1(10),&lt;/P&gt;&lt;P&gt;          dummy(1),&lt;/P&gt;&lt;P&gt;          field2(20),&lt;/P&gt;&lt;P&gt;          end of itab1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: begin of itab2 occurs 0,&lt;/P&gt;&lt;P&gt;          field1(10),&lt;/P&gt;&lt;P&gt;          field2(20),&lt;/P&gt;&lt;P&gt;          end of itab2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call function gui_upload into itab1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab1.&lt;/P&gt;&lt;P&gt;move-corresponding itab1 to itab2.&lt;/P&gt;&lt;P&gt;append itab2.&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;ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Nov 2006 14:00:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/csv-file/m-p/1723030#M315422</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-15T14:00:13Z</dc:date>
    </item>
    <item>
      <title>Re: CSV File</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/csv-file/m-p/1723031#M315423</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;type-pools: KCDE.&lt;/P&gt;&lt;P&gt;parameters: p_file like rlgrap-filename default 'C:\STOCK.csv'.&lt;/P&gt;&lt;P&gt;data: it_data type KCDE_INTERN .&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'KCD_CSV_FILE_TO_INTERN_CONVERT'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;I_FILENAME = p_file&lt;/P&gt;&lt;P&gt;I_SEPARATOR = ','&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;E_INTERN = it_data&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;UPLOAD_CSV = 1&lt;/P&gt;&lt;P&gt;UPLOAD_FILETYPE = 2&lt;/P&gt;&lt;P&gt;OTHERS = 3&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;regards,&lt;/P&gt;&lt;P&gt;keerthi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Nov 2006 14:27:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/csv-file/m-p/1723031#M315423</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-15T14:27:01Z</dc:date>
    </item>
    <item>
      <title>Re: CSV File</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/csv-file/m-p/1723032#M315424</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ramesh,&lt;/P&gt;&lt;P&gt;  ALSM_EXCEL_TO_INTERNAL_TABLE  With this function module, we can populate the internal table. For this we need to write some amount of logic to populate the records in the internal table. I am searching for a function module which will directly give the record which excludes ',' and give us a proper record.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Anyway thanks for the help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Tony.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Nov 2006 14:39:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/csv-file/m-p/1723032#M315424</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-15T14:39:50Z</dc:date>
    </item>
  </channel>
</rss>

