<?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: Convert string to xstring in release 640 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-string-to-xstring-in-release-640/m-p/938487#M62637</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;maybe you want to try the classes&lt;/P&gt;&lt;P&gt;CL_ABAP_CONV_OUT_CE (string to xstring)&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;CL_ABAP_CONV_IN_CE (xstring to string)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;* Sample coding
data:    string        type string,
         xstring       type xstring,
         lv_length     type i,
         lorv_conv     type ref to cl_abap_conv_out_ce.

string = 'this is a test.'.


clear: lv_length, xstring, lorv_conv.
try.
    lorv_conv = cl_abap_conv_out_ce=&amp;gt;create( ).
  catch cx_parameter_invalid_range .
* error handling
  catch cx_sy_codepage_converter_init .
* error handling
endtry.

try.
    call method lorv_conv-&amp;gt;write
      exporting
*    N                             = -1
        data                          = string
*    VIEW                          =
      importing
        len                           = lv_length.
  catch cx_sy_codepage_converter_init .
* error handling
  catch cx_sy_conversion_codepage .
* error handling
  catch cx_parameter_invalid_type .
* error handling
  catch cx_parameter_invalid_range .
* error handling
endtry.

try.
    call method lorv_conv-&amp;gt;get_buffer
      receiving
        buffer = xstring.
  catch cx_root.
* error handling
endtry.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 31 Aug 2005 07:14:21 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-08-31T07:14:21Z</dc:date>
    <item>
      <title>Convert string to xstring in release 640</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-string-to-xstring-in-release-640/m-p/938485#M62635</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;How I can convert string to xstring in release 640? because the function SCMS_STRING_TO_XSTRING return the error CMS196 'Error occurred during character conversion'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Aug 2005 00:25:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convert-string-to-xstring-in-release-640/m-p/938485#M62635</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-08-31T00:25:49Z</dc:date>
    </item>
    <item>
      <title>Re: Convert string to xstring in release 640</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-string-to-xstring-in-release-640/m-p/938486#M62636</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I use SCMS_STRING_TO_XSTRING quite often on 640 without any problems.  Perhaps you post your code sample here, we might be able to find a problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Aug 2005 00:43:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convert-string-to-xstring-in-release-640/m-p/938486#M62636</guid>
      <dc:creator>thomas_jung</dc:creator>
      <dc:date>2005-08-31T00:43:41Z</dc:date>
    </item>
    <item>
      <title>Re: Convert string to xstring in release 640</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-string-to-xstring-in-release-640/m-p/938487#M62637</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;maybe you want to try the classes&lt;/P&gt;&lt;P&gt;CL_ABAP_CONV_OUT_CE (string to xstring)&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;CL_ABAP_CONV_IN_CE (xstring to string)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;* Sample coding
data:    string        type string,
         xstring       type xstring,
         lv_length     type i,
         lorv_conv     type ref to cl_abap_conv_out_ce.

string = 'this is a test.'.


clear: lv_length, xstring, lorv_conv.
try.
    lorv_conv = cl_abap_conv_out_ce=&amp;gt;create( ).
  catch cx_parameter_invalid_range .
* error handling
  catch cx_sy_codepage_converter_init .
* error handling
endtry.

try.
    call method lorv_conv-&amp;gt;write
      exporting
*    N                             = -1
        data                          = string
*    VIEW                          =
      importing
        len                           = lv_length.
  catch cx_sy_codepage_converter_init .
* error handling
  catch cx_sy_conversion_codepage .
* error handling
  catch cx_parameter_invalid_type .
* error handling
  catch cx_parameter_invalid_range .
* error handling
endtry.

try.
    call method lorv_conv-&amp;gt;get_buffer
      receiving
        buffer = xstring.
  catch cx_root.
* error handling
endtry.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Aug 2005 07:14:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convert-string-to-xstring-in-release-640/m-p/938487#M62637</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-08-31T07:14:21Z</dc:date>
    </item>
    <item>
      <title>Re: Convert string to xstring in release 640</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-string-to-xstring-in-release-640/m-p/938488#M62638</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the function SCMS_STRING_TO_XSTRING  uses the same class&lt;/P&gt;&lt;P&gt;(cl_abap_conv_out_ce)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Raja&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Aug 2005 07:19:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convert-string-to-xstring-in-release-640/m-p/938488#M62638</guid>
      <dc:creator>athavanraja</dc:creator>
      <dc:date>2005-08-31T07:19:53Z</dc:date>
    </item>
  </channel>
</rss>

