<?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: Unable to SPLIT string after Read Dataset from Application Server in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/unable-to-split-string-after-read-dataset-from-application-server/m-p/7013257#M1497035</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The hash sign has to functions in character and string variables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) the hash sign itsself&lt;/P&gt;&lt;P&gt;2) a replacement for all not printable characters like 09x. If you are looking at the file the hash sign may represent another character. Checkl if the fiule really contains a hash sign. In most cases this is a TAB sign instead.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 18 Jun 2010 08:54:27 GMT</pubDate>
    <dc:creator>rainer_hbenthal</dc:creator>
    <dc:date>2010-06-18T08:54:27Z</dc:date>
    <item>
      <title>Unable to SPLIT string after Read Dataset from Application Server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/unable-to-split-string-after-read-dataset-from-application-server/m-p/7013256#M1497034</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Experts, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am unable to SPLIT in a string after reading (read dataset) from a text file in application server. &lt;/P&gt;&lt;P&gt;On the command SPLIT in the code below - the output does not split AT '#' or any characters after it is read from the application server. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyone know what is the problem? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The file is uploaded from my Excel file and save it to a text file (tab delimited) and then upload into the application server using CG3Z as ANSI. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But it does not work. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I then test to copy and replace the variable with the same string record back into lv_data_string before SPLIT in DEBUG mode and splits perfectly. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  OPEN DATASET P_LGFILE FOR INPUT IN TEXT MODE ENCODING DEFAULT.&lt;/P&gt;&lt;P&gt;  IF sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;    DO.&lt;/P&gt;&lt;P&gt;    READ DATASET P_LGFILE INTO lv_data_string.&lt;/P&gt;&lt;P&gt;    IF sy-subrc NE 0.&lt;/P&gt;&lt;P&gt;      EXIT.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;    CLEAR wa_string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    SPLIT lv_data_string AT '#' INTO wa_string-string1 wa_string-string2 wa_string-string3 wa_string-string4 wa_string-string5&lt;/P&gt;&lt;P&gt;                                     wa_string-string6 wa_string-string7 wa_string-string8 wa_string-string9.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    APPEND wa_string TO lt_string.&lt;/P&gt;&lt;P&gt;    ENDDO.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly advice. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CW&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jun 2010 08:41:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/unable-to-split-string-after-read-dataset-from-application-server/m-p/7013256#M1497034</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-18T08:41:49Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to SPLIT string after Read Dataset from Application Server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/unable-to-split-string-after-read-dataset-from-application-server/m-p/7013257#M1497035</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The hash sign has to functions in character and string variables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) the hash sign itsself&lt;/P&gt;&lt;P&gt;2) a replacement for all not printable characters like 09x. If you are looking at the file the hash sign may represent another character. Checkl if the fiule really contains a hash sign. In most cases this is a TAB sign instead.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jun 2010 08:54:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/unable-to-split-string-after-read-dataset-from-application-server/m-p/7013257#M1497035</guid>
      <dc:creator>rainer_hbenthal</dc:creator>
      <dc:date>2010-06-18T08:54:27Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to SPLIT string after Read Dataset from Application Server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/unable-to-split-string-after-read-dataset-from-application-server/m-p/7013258#M1497036</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In runtime ABAP compiler recognizes # as tab delimiter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You try below code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: l_sep1 TYPE c.
      l_sep1 = cl_abap_char_utilities=&amp;gt;HORIZONTAL_TAB.

      SPLIT lv_data_string AT l_sep1 INTO wa_string-string1 wa_string-string2 wa_string-string3 wa_string-string4 
                                                                 wa_string-string5  wa_string-string6 wa_string-string7 wa_string-string8 
                                                                  wa_string-string9.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Chandra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jun 2010 08:55:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/unable-to-split-string-after-read-dataset-from-application-server/m-p/7013258#M1497036</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-18T08:55:38Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to SPLIT string after Read Dataset from Application Server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/unable-to-split-string-after-read-dataset-from-application-server/m-p/7013259#M1497037</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI ALL, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It works Briliantly !! &lt;/P&gt;&lt;P&gt;Thank You so much ! &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All the best ! &lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;CW&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jun 2010 11:09:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/unable-to-split-string-after-read-dataset-from-application-server/m-p/7013259#M1497037</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-18T11:09:58Z</dc:date>
    </item>
  </channel>
</rss>

