<?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: comma seperated file uploading in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/comma-seperated-file-uploading/m-p/5092751#M1182073</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;   you need to give a value for HAS_FIELD_SEPARATOR in the function module gui_upload&lt;/P&gt;&lt;P&gt;example HAS_FIELD_SEPARATOR = 'X'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 09 Feb 2009 10:54:36 GMT</pubDate>
    <dc:creator>viquar_iqbal</dc:creator>
    <dc:date>2009-02-09T10:54:36Z</dc:date>
    <item>
      <title>comma seperated file uploading</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/comma-seperated-file-uploading/m-p/5092750#M1182072</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 want to upload comma seperated file into sap.&lt;/P&gt;&lt;P&gt;iam using 'GUI_UPLOAD' fm.&lt;/P&gt;&lt;P&gt;problem is flat file currency field it is also contains comma.&lt;/P&gt;&lt;P&gt;i can't change file type comma to tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can i upload currency fields with comma.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Suresh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Feb 2009 10:50:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/comma-seperated-file-uploading/m-p/5092750#M1182072</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-09T10:50:56Z</dc:date>
    </item>
    <item>
      <title>Re: comma seperated file uploading</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/comma-seperated-file-uploading/m-p/5092751#M1182073</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;   you need to give a value for HAS_FIELD_SEPARATOR in the function module gui_upload&lt;/P&gt;&lt;P&gt;example HAS_FIELD_SEPARATOR = 'X'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Feb 2009 10:54:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/comma-seperated-file-uploading/m-p/5092751#M1182073</guid>
      <dc:creator>viquar_iqbal</dc:creator>
      <dc:date>2009-02-09T10:54:36Z</dc:date>
    </item>
    <item>
      <title>Re: comma seperated file uploading</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/comma-seperated-file-uploading/m-p/5092752#M1182074</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Plz see the post for details: [Upload Comma Separated File|&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="1166603"&gt;&lt;/A&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HAS_FIELD_SEPARATOR only works for tab-delimited files only !! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Feb 2009 11:01:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/comma-seperated-file-uploading/m-p/5092752#M1182074</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2009-02-09T11:01:14Z</dc:date>
    </item>
    <item>
      <title>Re: comma seperated file uploading</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/comma-seperated-file-uploading/m-p/5092753#M1182075</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This message was moderated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Feb 2009 11:01:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/comma-seperated-file-uploading/m-p/5092753#M1182075</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-09T11:01:43Z</dc:date>
    </item>
    <item>
      <title>Re: comma seperated file uploading</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/comma-seperated-file-uploading/m-p/5092754#M1182076</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Suresh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do like this&lt;/P&gt;&lt;P&gt;&lt;/P&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 = &amp;lt;specify ur file&amp;gt;&lt;/P&gt;&lt;P&gt;          filetype = 'ASC'&lt;/P&gt;&lt;P&gt;     tables&lt;/P&gt;&lt;P&gt;          data_tab = itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now u have to loop the internal table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  split itab at ',' into itab1-fld1 itab1-fld2 itab1-fld3.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  itab2-fld1 = itab1-fld1 .&lt;/P&gt;&lt;P&gt;  itab2-fld2 = itab1-fld2.&lt;/P&gt;&lt;P&gt;append itab2.&lt;/P&gt;&lt;P&gt;clear : itab,&lt;/P&gt;&lt;P&gt;          itab1,&lt;/P&gt;&lt;P&gt;          itab2.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P.S-&amp;gt;HAS_FIELD_SEPARATOR will work only for tab delimeted.&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;Nagaraj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Feb 2009 11:05:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/comma-seperated-file-uploading/m-p/5092754#M1182076</guid>
      <dc:creator>former_member404244</dc:creator>
      <dc:date>2009-02-09T11:05:07Z</dc:date>
    </item>
    <item>
      <title>Re: comma seperated file uploading</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/comma-seperated-file-uploading/m-p/5092755#M1182077</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Suresh ,&lt;/P&gt;&lt;P&gt;If it is possible change that comma seperated file to tab seperated file  and&lt;/P&gt;&lt;P&gt;make that interface parameter as follows -&lt;/P&gt;&lt;HR originaltext="-----" /&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;/UL&gt;&lt;P&gt;It will work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Pinaki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Feb 2009 11:08:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/comma-seperated-file-uploading/m-p/5092755#M1182077</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-09T11:08:38Z</dc:date>
    </item>
    <item>
      <title>Re: comma seperated file uploading</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/comma-seperated-file-uploading/m-p/5092756#M1182078</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You have 2 options : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Ask the source system guys to unpack the the currency amount as a single string without the thousand separater and then store it in the file&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Upload the currency field into 2 parts (fields) first part having the thousand sepearator value and the second part having the reamaining value. Once the data is uploaded to the fields, concatenate the 2 &lt;/P&gt;&lt;P&gt;parts.&lt;/P&gt;&lt;P&gt;Example : 1,564 is uploaded as 1 in the first field f1 and 564 in f2 , then concatenate f1 and f2 will give you 1564.&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;Advait&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Feb 2009 11:15:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/comma-seperated-file-uploading/m-p/5092756#M1182078</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-09T11:15:26Z</dc:date>
    </item>
    <item>
      <title>Re: comma seperated file uploading</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/comma-seperated-file-uploading/m-p/5092757#M1182079</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;also check the FM 'KCD_CSV_FILE_TO_INTERN_CONVERT'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nagaraj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Feb 2009 11:38:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/comma-seperated-file-uploading/m-p/5092757#M1182079</guid>
      <dc:creator>former_member404244</dc:creator>
      <dc:date>2009-02-09T11:38:40Z</dc:date>
    </item>
    <item>
      <title>Re: comma seperated file uploading</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/comma-seperated-file-uploading/m-p/5092758#M1182080</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi friend,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After uploading data into internal table,&lt;/P&gt;&lt;P&gt;Remove all commas and replace by space using 'Translate' except currency field.&lt;/P&gt;&lt;P&gt;For ex:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at g_t_out into g_r_wa.&lt;/P&gt;&lt;P&gt;TRANSLATE g_r_wa-matnr USING ', ' .&lt;/P&gt;&lt;P&gt;TRANSLATE g_r_wa-matnr USING ', ' .&lt;/P&gt;&lt;P&gt;(Donot translate in currency field.)&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Might be helpful...&lt;/P&gt;&lt;P&gt;Thanks....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Feb 2009 12:53:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/comma-seperated-file-uploading/m-p/5092758#M1182080</guid>
      <dc:creator>awin_prabhu</dc:creator>
      <dc:date>2009-02-09T12:53:06Z</dc:date>
    </item>
    <item>
      <title>Re: comma seperated file uploading</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/comma-seperated-file-uploading/m-p/5092759#M1182081</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can upload your file into a string table. Now split it:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
split uploadtab at ',' into table items.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you have&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a,b,c,11,d,e,f&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;your tables items contains 7 elements now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you have&lt;/P&gt;&lt;P&gt;a,b,c,11,22,d,e,f&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;your table contains 8 elements now. In that case you now that you have splitted a number with a comma and need to do some actions, e.g. merge elements 4 and 5 together to get 11,22 again and shift the 6th to 5th, the 7th to 5th and the 8th to 7th element.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After that you number is again in item 4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;An easier way is to enforce you customer to put values into apostrophes or quotes. If this is not possible, you have to check if an unwanted split was taken in place and act as shown above.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But: this will work only if one item with a comma in between. If oyu have more components you can not evaulate where the unwanted split is in effect.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Feb 2009 13:18:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/comma-seperated-file-uploading/m-p/5092759#M1182081</guid>
      <dc:creator>rainer_hbenthal</dc:creator>
      <dc:date>2009-02-09T13:18:43Z</dc:date>
    </item>
  </channel>
</rss>

