<?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 Uploading file with comma separator in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-file-with-comma-separator/m-p/6435765#M1411582</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi firends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a text file in the format below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"abc","dedffrt","asd"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The value of field is enclosed in double quotes and each values are separated by comma.&lt;/P&gt;&lt;P&gt;I have tried with the function modules available for upload but of no use.&lt;/P&gt;&lt;P&gt;Im aware of the methods uploading and splitting ...&lt;/P&gt;&lt;P&gt;But i want to know is there any other function modules available to upload the file of this type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Keshav&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Nov 2009 05:54:06 GMT</pubDate>
    <dc:creator>kesavadas_thekkillath</dc:creator>
    <dc:date>2009-11-25T05:54:06Z</dc:date>
    <item>
      <title>Uploading file with comma separator</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-file-with-comma-separator/m-p/6435765#M1411582</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi firends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a text file in the format below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"abc","dedffrt","asd"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The value of field is enclosed in double quotes and each values are separated by comma.&lt;/P&gt;&lt;P&gt;I have tried with the function modules available for upload but of no use.&lt;/P&gt;&lt;P&gt;Im aware of the methods uploading and splitting ...&lt;/P&gt;&lt;P&gt;But i want to know is there any other function modules available to upload the file of this type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Keshav&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2009 05:54:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-file-with-comma-separator/m-p/6435765#M1411582</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2009-11-25T05:54:06Z</dc:date>
    </item>
    <item>
      <title>Re: Uploading file with comma separator</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-file-with-comma-separator/m-p/6435766#M1411583</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Keshu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I dont think there are any standard upload FM's which would accept a custom seperator while uploading. We had a similar requirement and we ended up in creating a Z FM which accepts any custom seperator as this is used frequently.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vikranth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2009 05:59:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-file-with-comma-separator/m-p/6435766#M1411583</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-25T05:59:43Z</dc:date>
    </item>
    <item>
      <title>Re: Uploading file with comma separator</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-file-with-comma-separator/m-p/6435767#M1411584</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vik,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So what you say is to upload it into a line of a itab and the spli it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or did you follow some othe logic ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2009 06:19:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-file-with-comma-separator/m-p/6435767#M1411584</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2009-11-25T06:19:55Z</dc:date>
    </item>
    <item>
      <title>Re: Uploading file with comma separator</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-file-with-comma-separator/m-p/6435768#M1411585</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Keshu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We used just the usual way of splitting at itab with the seperator. Lets see if anyone can point to a standard FM or method way of doing it, else i dont think you have any other option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vikranth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2009 06:35:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-file-with-comma-separator/m-p/6435768#M1411585</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-25T06:35:41Z</dc:date>
    </item>
    <item>
      <title>Re: Uploading file with comma separator</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-file-with-comma-separator/m-p/6435769#M1411586</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Vikranth,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'll keep the thread opened.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mean while i will code it &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Keshu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2009 06:44:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-file-with-comma-separator/m-p/6435769#M1411586</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2009-11-25T06:44:54Z</dc:date>
    </item>
    <item>
      <title>Re: Uploading file with comma separator</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-file-with-comma-separator/m-p/6435770#M1411587</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN __default_attr="blue" __jive_macro_name="color"&gt;Hi KSD, 
Try this way. 
&lt;PRE&gt;&lt;CODE&gt;
REPORT ztest_notepad.
DATA: BEGIN OF it_t001 OCCURS 0,
        bukrs TYPE t001-bukrs,
        butxt TYPE t001-butxt,
      END OF it_t001.
DATA: BEGIN OF it_file OCCURS 0,
        data TYPE char255,
      END OF it_file.

START-OF-SELECTION.

  CALL FUNCTION 'GUI_UPLOAD'
    EXPORTING
      filename = 'C:\hor_file.txt'
      filetype = 'ASC'
    TABLES
      data_tab = it_file.
  REPLACE ALL OCCURRENCES OF '"' IN TABLE it_file WITH space.
  LOOP AT it_file.
    SPLIT it_file-data AT ',' INTO it_t001-bukrs it_t001-butxt.
    APPEND it_t001.
    CLEAR it_t001.
  ENDLOOP.

  LOOP AT it_t001.
    WRITE:/ it_t001-bukrs, it_t001-butxt.
  ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;
&amp;lt;li&amp;gt;Text file
&lt;PRE&gt;&lt;CODE&gt;
"CGH","CGH Hospital"
"KKH","KKH hospital"
"SGH","SGH Hospital"
&lt;/CODE&gt;&lt;/PRE&gt;
Thanks
Venkat.O&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2009 06:55:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-file-with-comma-separator/m-p/6435770#M1411587</guid>
      <dc:creator>venkat_o</dc:creator>
      <dc:date>2009-11-25T06:55:21Z</dc:date>
    </item>
  </channel>
</rss>

