<?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: Converting to XSTRING in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/converting-to-xstring/m-p/1223119#M137087</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;Check the below code...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;*   Convert XString to String 
    data: loc_conv type ref to CL_ABAP_CONV_IN_CE, 
            loc_xstring type xstring, 
            loc_string type string. 
    CALL METHOD CL_ABAP_CONV_IN_CE=&amp;gt;CREATE 
      EXPORTING 
        INPUT       = loc_xstring 
        ENCODING    = 'UTF-8' 
        REPLACEMENT = '?' 
        IGNORE_CERR = ABAP_TRUE 
      RECEIVING 
        CONV        = loc_CONV. 

    TRY. 
        CALL METHOD loc_CONV-&amp;gt;READ 
          IMPORTING 
            DATA = loc_string. 
      CATCH CX_SY_CONVERSION_CODEPAGE. 
*-- Should ignore errors in code conversions 
      CATCH CX_SY_CODEPAGE_CONVERTER_INIT. 
*-- Should ignore errors in code conversions 
      CATCH CX_PARAMETER_INVALID_TYPE. 
      CATCH CX_PARAMETER_INVALID_RANGE. 
    ENDTRY.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;ramakrishna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 02 Mar 2006 08:45:37 GMT</pubDate>
    <dc:creator>venkata_ramisetti</dc:creator>
    <dc:date>2006-03-02T08:45:37Z</dc:date>
    <item>
      <title>Converting to XSTRING</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/converting-to-xstring/m-p/1223118#M137086</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;I have a structure. &lt;/P&gt;&lt;P&gt;BEGIN OF x,&lt;/P&gt;&lt;P&gt;    firstname(20) TYPE c,&lt;/P&gt;&lt;P&gt;    lastname(20)  TYPE c,&lt;/P&gt;&lt;P&gt;    age           TYPE i,&lt;/P&gt;&lt;P&gt;  END OF x.&lt;/P&gt;&lt;P&gt;I want to compile the data of the structure into a conatiner which is of type string or xstring. Is there any class that had this functionality.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please revert.&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Bhargav.Kavuri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Mar 2006 08:37:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/converting-to-xstring/m-p/1223118#M137086</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-02T08:37:31Z</dc:date>
    </item>
    <item>
      <title>Re: Converting to XSTRING</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/converting-to-xstring/m-p/1223119#M137087</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;Check the below code...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;*   Convert XString to String 
    data: loc_conv type ref to CL_ABAP_CONV_IN_CE, 
            loc_xstring type xstring, 
            loc_string type string. 
    CALL METHOD CL_ABAP_CONV_IN_CE=&amp;gt;CREATE 
      EXPORTING 
        INPUT       = loc_xstring 
        ENCODING    = 'UTF-8' 
        REPLACEMENT = '?' 
        IGNORE_CERR = ABAP_TRUE 
      RECEIVING 
        CONV        = loc_CONV. 

    TRY. 
        CALL METHOD loc_CONV-&amp;gt;READ 
          IMPORTING 
            DATA = loc_string. 
      CATCH CX_SY_CONVERSION_CODEPAGE. 
*-- Should ignore errors in code conversions 
      CATCH CX_SY_CODEPAGE_CONVERTER_INIT. 
*-- Should ignore errors in code conversions 
      CATCH CX_PARAMETER_INVALID_TYPE. 
      CATCH CX_PARAMETER_INVALID_RANGE. 
    ENDTRY.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;ramakrishna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Mar 2006 08:45:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/converting-to-xstring/m-p/1223119#M137087</guid>
      <dc:creator>venkata_ramisetti</dc:creator>
      <dc:date>2006-03-02T08:45:37Z</dc:date>
    </item>
  </channel>
</rss>

