<?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: Reading CSV(TAB) file in Background.Split command it's not working any idea in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-csv-tab-file-in-background-split-command-it-s-not-working-any-idea/m-p/1676574#M298365</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;But my freind... I hvae tried it many times... and It works...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 21 Nov 2006 04:04:43 GMT</pubDate>
    <dc:creator>former_member69765</dc:creator>
    <dc:date>2006-11-21T04:04:43Z</dc:date>
    <item>
      <title>Reading CSV(TAB) file in Background.Split command it's not working any idea</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-csv-tab-file-in-background-split-command-it-s-not-working-any-idea/m-p/1676568#M298359</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am working SAP ECC 6.0 &lt;/P&gt;&lt;P&gt;I want to upload a file from application server using open data set &amp;#133;..The file is CSV or tab delimited; I could read perfectly into a string, but when I use the Split command it&amp;#146;s not working because it&amp;#146;s not considering the tab delimiter. I am trying at least to find out this character (TAB) and get all the offset into the string using FIND command.  &lt;/P&gt;&lt;P&gt;I created a small program to represent my problem and I used REGEX expression to find out the TAB values. Could somebody check this REGEX expression and tell me what I am missing?. What is wrong?.  (I know is the Regex expression) How can I find out specifically the tab character?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI level="1" type="ol"&gt;&lt;P&gt;= TAB CHARACTER.&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Wa_string value &lt;/P&gt;&lt;P&gt;DH#10022006#Z2#9210#10022006#SUBSCRIBR REFUND#                         # # #&lt;/P&gt;&lt;P&gt;     2               11    14       17                27                37          44 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Line	LINE	Offset	Length&lt;/P&gt;&lt;P&gt;1	0	1	1&lt;/P&gt;&lt;P&gt;2	0	10	1&lt;/P&gt;&lt;P&gt;3	0	13	1&lt;/P&gt;&lt;P&gt;4	0	18	1&lt;/P&gt;&lt;P&gt;5	0	27	1&lt;/P&gt;&lt;P&gt;6	0	37	1&lt;/P&gt;&lt;P&gt;7	0	44	1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ DATASET P_BFILE INTO wa_string.&lt;/P&gt;&lt;P&gt;         FIND ALL OCCURRENCES OF&lt;/P&gt;&lt;P&gt;          REGEX [\S\b]&lt;/P&gt;&lt;P&gt;          in wa_string&lt;/P&gt;&lt;P&gt;          RESULTS tabresult_tab.&lt;/P&gt;&lt;P&gt;This function is returning the line 6 in the table, which means SPACE. I just need that return only the TAB offset.&lt;/P&gt;&lt;P&gt; I will thank your help.&lt;/P&gt;&lt;P&gt;Example code:&lt;/P&gt;&lt;P&gt;REPORT ZTEST5.&lt;/P&gt;&lt;P&gt;data P_BFILE LIKE RLGRAP-FILENAME value '/usr/filewithtabdelim.txt'.&lt;/P&gt;&lt;P&gt;data: begin of t_input OCCURS 0,&lt;/P&gt;&lt;P&gt;       field type string,&lt;/P&gt;&lt;P&gt;      end of t_input,&lt;/P&gt;&lt;P&gt;      text TYPE string,&lt;/P&gt;&lt;P&gt;      tabresult_tab TYPE match_result_tab,&lt;/P&gt;&lt;P&gt;      WA_STRING TYPE STRING.&lt;/P&gt;&lt;P&gt;  Start-OF-SELECTION.&lt;/P&gt;&lt;P&gt; open dataset P_BFILE for input&lt;/P&gt;&lt;P&gt;       in text mode ENCODING DEFAULT.&lt;/P&gt;&lt;P&gt;    break-point.&lt;/P&gt;&lt;P&gt;do 1 times.&lt;/P&gt;&lt;P&gt; READ DATASET P_BFILE INTO wa_string.&lt;/P&gt;&lt;P&gt;         FIND ALL OCCURRENCES OF&lt;/P&gt;&lt;P&gt;          REGEX '\S\b'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;         REGEX \[^:space:]]+\&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;          in wa_string&lt;/P&gt;&lt;P&gt;          RESULTS tabresult_tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; write: / wa_string.&lt;/P&gt;&lt;P&gt;enddo.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Nov 2006 00:44:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-csv-tab-file-in-background-split-command-it-s-not-working-any-idea/m-p/1676568#M298359</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-21T00:44:40Z</dc:date>
    </item>
    <item>
      <title>Re: Reading CSV(TAB) file in Background.Split command it's not working any idea</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-csv-tab-file-in-background-split-command-it-s-not-working-any-idea/m-p/1676569#M298360</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Jose&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For tab delimeted file:&lt;/P&gt;&lt;P&gt;Declare a variable as below:&lt;/P&gt;&lt;P&gt;data: l_tab(1) type c value cl_abap_char_utilities=&amp;gt;horizontal_tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now use this for split command...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;spli &amp;lt;string&amp;gt; at l_tab into &amp;lt;wa&amp;gt;-fld1 &amp;lt;wa&amp;gt;-fld2....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this might help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards&lt;/P&gt;&lt;P&gt;Eswar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Nov 2006 01:27:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-csv-tab-file-in-background-split-command-it-s-not-working-any-idea/m-p/1676569#M298360</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-21T01:27:08Z</dc:date>
    </item>
    <item>
      <title>Re: Reading CSV(TAB) file in Background.Split command it's not working any idea</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-csv-tab-file-in-background-split-command-it-s-not-working-any-idea/m-p/1676570#M298361</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Very Simple Dude.... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The TAB that u see in windows is not what u see in the Unix.. In unix it appears as a # .&lt;/P&gt;&lt;P&gt;This # is diffrent from windows #. It is a unicode character.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So u need to do this -- Declare a variable as follows -- &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : c_tab type x value '09'.&lt;/P&gt;&lt;P&gt;split string at c_tab into fld_1 fld_2 ... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Remeber.. U might get an error saying unicode check active or inactive something...&lt;/P&gt;&lt;P&gt;Then Go to Attributes and in the botttom there willl be chek box sayin Unicode checks active... Just un-check or may be check (I am not sure.. try both) it... It will work perfectly...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Plz reward points if it was useful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Nov 2006 03:23:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-csv-tab-file-in-background-split-command-it-s-not-working-any-idea/m-p/1676570#M298361</guid>
      <dc:creator>former_member69765</dc:creator>
      <dc:date>2006-11-21T03:23:39Z</dc:date>
    </item>
    <item>
      <title>Re: Reading CSV(TAB) file in Background.Split command it's not working any idea</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-csv-tab-file-in-background-split-command-it-s-not-working-any-idea/m-p/1676571#M298362</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Varun&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The info you have provided is suitable only for NON-UNICODE systems. While we are in UNICODE enabled system:&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;1. We can not remove/uncheck "UNICODE Checks Active" from program attributes.&lt;/P&gt;&lt;P&gt;2. We can declare a variable of type "X".&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Above info is just for your knowledge.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards&lt;/P&gt;&lt;P&gt;Eswar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Nov 2006 03:34:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-csv-tab-file-in-background-split-command-it-s-not-working-any-idea/m-p/1676571#M298362</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-21T03:34:58Z</dc:date>
    </item>
    <item>
      <title>Re: Reading CSV(TAB) file in Background.Split command it's not working any idea</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-csv-tab-file-in-background-split-command-it-s-not-working-any-idea/m-p/1676572#M298363</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oh great... that is something I was not aware of....&lt;/P&gt;&lt;P&gt;Then its fine.. .we can directly go with type x declaration.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Nov 2006 03:42:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-csv-tab-file-in-background-split-command-it-s-not-working-any-idea/m-p/1676572#M298363</guid>
      <dc:creator>former_member69765</dc:creator>
      <dc:date>2006-11-21T03:42:35Z</dc:date>
    </item>
    <item>
      <title>Re: Reading CSV(TAB) file in Background.Split command it's not working any idea</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-csv-tab-file-in-background-split-command-it-s-not-working-any-idea/m-p/1676573#M298364</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, it was my typo error:&lt;/P&gt;&lt;P&gt;We &amp;lt;b&amp;gt;CAN NOT declare&amp;lt;/b&amp;gt; a variable of type "X".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hence we have to use class CL_ABAP_CHAR_UTILITIES, for characters that we normally use like tab, carriage return, line feed...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Eswar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Nov 2006 03:47:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-csv-tab-file-in-background-split-command-it-s-not-working-any-idea/m-p/1676573#M298364</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-21T03:47:46Z</dc:date>
    </item>
    <item>
      <title>Re: Reading CSV(TAB) file in Background.Split command it's not working any idea</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-csv-tab-file-in-background-split-command-it-s-not-working-any-idea/m-p/1676574#M298365</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;But my freind... I hvae tried it many times... and It works...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Nov 2006 04:04:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-csv-tab-file-in-background-split-command-it-s-not-working-any-idea/m-p/1676574#M298365</guid>
      <dc:creator>former_member69765</dc:creator>
      <dc:date>2006-11-21T04:04:43Z</dc:date>
    </item>
    <item>
      <title>Re: Reading CSV(TAB) file in Background.Split command it's not working any idea</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-csv-tab-file-in-background-split-command-it-s-not-working-any-idea/m-p/1676575#M298366</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you checked when the attribute for "Unicode Checks active" is set to "X". This is incase of UNICODE enabled system???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Eswar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Nov 2006 04:59:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-csv-tab-file-in-background-split-command-it-s-not-working-any-idea/m-p/1676575#M298366</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-21T04:59:05Z</dc:date>
    </item>
  </channel>
</rss>

