<?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 how to avoid the split problem when uploading the data from csv file in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-avoid-the-split-problem-when-uploading-the-data-from-csv-file/m-p/4067827#M972351</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Friends,&lt;/P&gt;&lt;P&gt;              I have to upload data from the .csv file to my custom table , i have found a problem when uploading the data .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am using the code as below , please suggest me what i have to do in this regard&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      SPLIT wa_raw_csv  AT ',' INTO&lt;/P&gt;&lt;P&gt;                wa_empdata_csv-status&lt;/P&gt;&lt;P&gt;                 wa_empdata_csv-userid&lt;/P&gt;&lt;P&gt;                 wa_empdata_csv-username&lt;/P&gt;&lt;P&gt;                 wa_empdata_csv-Title&lt;/P&gt;&lt;P&gt;                 wa_empdata_csv-department.&lt;/P&gt;&lt;P&gt;APPEND wa_empdata_csv TO  itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in the flat file i can see for one of the record for the field Title  as &lt;/P&gt;&lt;P&gt;Director, Finance - NAR............there by through my code the  wa_empdata_csv-Title is getting splited data as "Director, and  Department field is getting Finance - NAR" , i can see that even though  " Director, Finance - NAR"  is one word it is getting split .&lt;/P&gt;&lt;P&gt; .......which is the problem iam facing.Please could any body let me know how in this case i should handle in my code that this word&lt;/P&gt;&lt;P&gt;"Director,Finance - NAR"   wil not be split into two words.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Records&lt;/P&gt;&lt;P&gt;Madhuri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 27 Jun 2008 11:22:13 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-06-27T11:22:13Z</dc:date>
    <item>
      <title>how to avoid the split problem when uploading the data from csv file</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-avoid-the-split-problem-when-uploading-the-data-from-csv-file/m-p/4067827#M972351</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Friends,&lt;/P&gt;&lt;P&gt;              I have to upload data from the .csv file to my custom table , i have found a problem when uploading the data .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am using the code as below , please suggest me what i have to do in this regard&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      SPLIT wa_raw_csv  AT ',' INTO&lt;/P&gt;&lt;P&gt;                wa_empdata_csv-status&lt;/P&gt;&lt;P&gt;                 wa_empdata_csv-userid&lt;/P&gt;&lt;P&gt;                 wa_empdata_csv-username&lt;/P&gt;&lt;P&gt;                 wa_empdata_csv-Title&lt;/P&gt;&lt;P&gt;                 wa_empdata_csv-department.&lt;/P&gt;&lt;P&gt;APPEND wa_empdata_csv TO  itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in the flat file i can see for one of the record for the field Title  as &lt;/P&gt;&lt;P&gt;Director, Finance - NAR............there by through my code the  wa_empdata_csv-Title is getting splited data as "Director, and  Department field is getting Finance - NAR" , i can see that even though  " Director, Finance - NAR"  is one word it is getting split .&lt;/P&gt;&lt;P&gt; .......which is the problem iam facing.Please could any body let me know how in this case i should handle in my code that this word&lt;/P&gt;&lt;P&gt;"Director,Finance - NAR"   wil not be split into two words.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Records&lt;/P&gt;&lt;P&gt;Madhuri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jun 2008 11:22:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-avoid-the-split-problem-when-uploading-the-data-from-csv-file/m-p/4067827#M972351</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-27T11:22:13Z</dc:date>
    </item>
    <item>
      <title>Re: how to avoid the split problem when uploading the data from csv file</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-avoid-the-split-problem-when-uploading-the-data-from-csv-file/m-p/4067828#M972352</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Madhuri,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best way to avoid such problem is to use TAB delimited file instead of comma separated data. Generally TAB does not appear in data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are generating the file, use tab instead of comma.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you cannot modify the format of file and data length in file is fixed character, you will need to define the structure and then move data in fixed length structure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mohaiyuddin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jun 2008 11:30:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-avoid-the-split-problem-when-uploading-the-data-from-csv-file/m-p/4067828#M972352</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-27T11:30:51Z</dc:date>
    </item>
    <item>
      <title>Re: how to avoid the split problem when uploading the data from csv file</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-avoid-the-split-problem-when-uploading-the-data-from-csv-file/m-p/4067829#M972353</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Madhuri,&lt;/P&gt;&lt;P&gt;  The best way is try to save ur file in other way. i.e you change the delimiter anything other than comma. Or other way is ( Actually it is not the right way) but if only one record is of this type u can just remove comma while uploading. after the record is uploaded u can place it again. Try and also plzz let me know whether we can do this way. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Swapna.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jun 2008 12:03:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-avoid-the-split-problem-when-uploading-the-data-from-csv-file/m-p/4067829#M972353</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-27T12:03:52Z</dc:date>
    </item>
  </channel>
</rss>

