<?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 Double-byte parser in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/double-byte-parser/m-p/894931#M54054</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey,&lt;/P&gt;&lt;P&gt;I need to load in 400 character string of data into text using the FM SAVE_TEXT in chucks of 60 characters.  If the user logs in Japanese, they could be loading in a mix of single byte and double characters.  I need to be able to check if I break my string of data at the 60th character, will I be corrupting a double character.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone know how to perform this test in ABAP? &lt;/P&gt;&lt;P&gt;Thanks for the feedback! Bill&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 26 Apr 2005 19:06:23 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-04-26T19:06:23Z</dc:date>
    <item>
      <title>Double-byte parser</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/double-byte-parser/m-p/894931#M54054</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey,&lt;/P&gt;&lt;P&gt;I need to load in 400 character string of data into text using the FM SAVE_TEXT in chucks of 60 characters.  If the user logs in Japanese, they could be loading in a mix of single byte and double characters.  I need to be able to check if I break my string of data at the 60th character, will I be corrupting a double character.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone know how to perform this test in ABAP? &lt;/P&gt;&lt;P&gt;Thanks for the feedback! Bill&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Apr 2005 19:06:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/double-byte-parser/m-p/894931#M54054</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-04-26T19:06:23Z</dc:date>
    </item>
    <item>
      <title>Re: Double-byte parser</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/double-byte-parser/m-p/894932#M54055</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bill,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are on version 6.2+ you could try using the NUMOFCHAR( ) command.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess you could do something like:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
* First determine the number of actual
* characters in 60th and 61st bytes.
w_num_of_chars = NUMOFCHAR( w_text+60(2) ).

* If there is only 1, then split on 59.
IF w_num_of_chars = 1.
  .
  .
  .
* Otherwise, we have two characters so we can split at 60.
ELSE.
  .
  .
  .
ENDIF.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I must admit I'm a complete novice when it comes to double byte languages and their handling, so that may just be complete gobbledegook.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Brad&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Apr 2005 19:20:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/double-byte-parser/m-p/894932#M54055</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-04-26T19:20:21Z</dc:date>
    </item>
  </channel>
</rss>

