<?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: Split at # does not work in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/split-at-does-not-work/m-p/1458691#M216652</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;Do like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;split data at CL_ABAP_CHAR_UTILITIES=&amp;gt;HORIZONTAL_TAB into itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Naimesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 25 Jul 2006 08:44:15 GMT</pubDate>
    <dc:creator>naimesh_patel</dc:creator>
    <dc:date>2006-07-25T08:44:15Z</dc:date>
    <item>
      <title>Split at # does not work</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/split-at-does-not-work/m-p/1458688#M216649</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 am trying to split a string that has the # character within it.  I have tried using the # as a string and as the hex value 23, which is what is displayed when I display the string as it's hex value.  I have successfully split using other hex values within the string but this one will not work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My issue is that this is the output from the ostream when I set the pretty print to on - which I require to format the XML document correctly for the spool.  It would be perfect if it would just split where it's told to!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below is a snippet of the string and the hex values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;pack_type&amp;gt;EMAIL&amp;lt;/pack_type&amp;gt;# &amp;lt;customer/&amp;gt;# &amp;lt;print_destn&amp;gt;email&amp;lt;/print_destn&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3C7061636B5F747970653E454D41494C3C2F7061636B5F747970653E23203C637573746F6D65722F3E23203C7072696E745F646573746E3E656D61696C3C2F707269&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If anyone has any experience of the ABAP XML classes, It would be great to hear from you!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Ian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jul 2006 08:06:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/split-at-does-not-work/m-p/1458688#M216649</guid>
      <dc:creator>IanStubbings</dc:creator>
      <dc:date>2006-07-25T08:06:08Z</dc:date>
    </item>
    <item>
      <title>Re: Split at # does not work</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/split-at-does-not-work/m-p/1458689#M216650</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Try using the class&lt;/P&gt;&lt;P&gt;CL_ABAP_CHAR_UTILITIES.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Shashank&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jul 2006 08:31:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/split-at-does-not-work/m-p/1458689#M216650</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-25T08:31:26Z</dc:date>
    </item>
    <item>
      <title>Re: Split at # does not work</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/split-at-does-not-work/m-p/1458690#M216651</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ian,&lt;/P&gt;&lt;P&gt;    The problem with Strings is that it intenally treats SPACE with # &amp;amp; hence we cannot split at  this character. You can use Overlay to transform # to some other character say '.' &amp;amp; then try splitting it at '.'...c if it works.....well dnt have much to say about ABAP XML....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jul 2006 08:35:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/split-at-does-not-work/m-p/1458690#M216651</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-25T08:35:39Z</dc:date>
    </item>
    <item>
      <title>Re: Split at # does not work</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/split-at-does-not-work/m-p/1458691#M216652</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;Do like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;split data at CL_ABAP_CHAR_UTILITIES=&amp;gt;HORIZONTAL_TAB into itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Naimesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jul 2006 08:44:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/split-at-does-not-work/m-p/1458691#M216652</guid>
      <dc:creator>naimesh_patel</dc:creator>
      <dc:date>2006-07-25T08:44:15Z</dc:date>
    </item>
    <item>
      <title>Re: Split at # does not work</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/split-at-does-not-work/m-p/1458692#M216653</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;Do this &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SPLIT data_string
   AT CL_ABAP_CHAR_UTILITIES=&amp;gt;HORIZONTAL_TAB
   INTO TABLE itab. 


itab is table with the structure

begin ty_itab
   field type char100
end ty_itab.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jul 2006 08:45:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/split-at-does-not-work/m-p/1458692#M216653</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-25T08:45:13Z</dc:date>
    </item>
    <item>
      <title>Re: Split at # does not work</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/split-at-does-not-work/m-p/1458693#M216654</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ah, sorry guys, I forgot to mention that I'm on a 4.6C system and do not have the luxury of CL_ABAP_CHAR_UTILITIES.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;None of the search, overlay or translate keywords can see the character either.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried writing the string to a char8000 field but no joy either.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jul 2006 09:03:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/split-at-does-not-work/m-p/1458693#M216654</guid>
      <dc:creator>IanStubbings</dc:creator>
      <dc:date>2006-07-25T09:03:35Z</dc:date>
    </item>
    <item>
      <title>Re: Split at # does not work</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/split-at-does-not-work/m-p/1458694#M216655</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;Do like this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONSTANTS: con_tab TYPE x VALUE '09'.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Split data at con_tab into itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naimesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jul 2006 09:48:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/split-at-does-not-work/m-p/1458694#M216655</guid>
      <dc:creator>naimesh_patel</dc:creator>
      <dc:date>2006-07-25T09:48:14Z</dc:date>
    </item>
    <item>
      <title>Re: Split at # does not work</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/split-at-does-not-work/m-p/1458695#M216656</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok.  Sorted.  I output the XML to my pc using the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  Saving the XML document&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  l_xml_size = l_ostream-&amp;gt;get_num_written_raw( ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL METHOD cl_gui_frontend_services=&amp;gt;gui_download&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      bin_filesize = l_xml_size&lt;/P&gt;&lt;P&gt;      filename     = 'H:\test.xml'&lt;/P&gt;&lt;P&gt;      filetype     = 'BIN'&lt;/P&gt;&lt;P&gt;    CHANGING&lt;/P&gt;&lt;P&gt;      data_tab     = l_xml_table&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      OTHERS       = 24.&lt;/P&gt;&lt;P&gt;  IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno&lt;/P&gt;&lt;P&gt;               WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and then opend the test.xml file with a hex editor.  The character # that the ABAP editor had shown as 23 in the hex display was in fact 0A - a linefeed.  Documentation on the method set_pretty_print of the ostream interface says the pretty print using a space or tab.  Thanks for that SAP - very misleading and wasted a lot of time!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Still sorted now.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks to all for their help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jul 2006 13:39:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/split-at-does-not-work/m-p/1458695#M216656</guid>
      <dc:creator>IanStubbings</dc:creator>
      <dc:date>2006-07-25T13:39:57Z</dc:date>
    </item>
    <item>
      <title>Re: Split at # does not work</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/split-at-does-not-work/m-p/1458696#M216657</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>Wed, 21 Sep 2016 07:30:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/split-at-does-not-work/m-p/1458696#M216657</guid>
      <dc:creator>manoharmclaren1</dc:creator>
      <dc:date>2016-09-21T07:30:40Z</dc:date>
    </item>
  </channel>
</rss>

