<?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 convert xstring into human readable string in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-xstring-into-human-readable-string/m-p/4988997#M1162210</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 doing some email attachment from web dynpro. I get a xstring parameter from front end (which is a text file). I need to convert it (back) into human readable. AS far as I've seen code page 1100 is latin1 so that is what I want&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use 4.6C --&amp;gt; I didn't find  a xstring to string function module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is it done be command TRANSLATE?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks in advance&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 14 Jan 2009 17:02:22 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-01-14T17:02:22Z</dc:date>
    <item>
      <title>convert xstring into human readable string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-xstring-into-human-readable-string/m-p/4988997#M1162210</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 doing some email attachment from web dynpro. I get a xstring parameter from front end (which is a text file). I need to convert it (back) into human readable. AS far as I've seen code page 1100 is latin1 so that is what I want&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use 4.6C --&amp;gt; I didn't find  a xstring to string function module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is it done be command TRANSLATE?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks in advance&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Jan 2009 17:02:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convert-xstring-into-human-readable-string/m-p/4988997#M1162210</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-14T17:02:22Z</dc:date>
    </item>
    <item>
      <title>Re: convert xstring into human readable string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-xstring-into-human-readable-string/m-p/4988998#M1162211</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;see this sap help for &lt;STRONG&gt;CALL TRANSFORMATION&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/abapdocu/en/ABAPCALL_TRANSFORMATION.htm" target="test_blank"&gt;http://help.sap.com/abapdocu/en/ABAPCALL_TRANSFORMATION.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check if it exists for 4.6c and can help u or not.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Jan 2009 18:47:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convert-xstring-into-human-readable-string/m-p/4988998#M1162211</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-14T18:47:26Z</dc:date>
    </item>
    <item>
      <title>Re: convert xstring into human readable string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-xstring-into-human-readable-string/m-p/4988999#M1162212</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just search the forum for "xstring to string", you'll get the answer (cl_abap_conv_in_ce)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Jan 2009 19:36:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convert-xstring-into-human-readable-string/m-p/4988999#M1162212</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2009-01-14T19:36:22Z</dc:date>
    </item>
    <item>
      <title>Re: convert xstring into human readable string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-xstring-into-human-readable-string/m-p/4989000#M1162213</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use this FM's&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
CALL FUNCTION 'ECATT_CONV_XSTRING_TO_STRING'
    EXPORTING
      im_xstring  = xsd
      im_encoding = 'UTF-8'
    IMPORTING
      ex_string   = e_xsd.
ENDFUNCTION.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;also look at the fm 'HR_KR_XSTRING_TO_STRING'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also look at the code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: conv type ref to cl_abap_conv_in_ce ,&lt;/P&gt;&lt;P&gt;xcontent type xstring,&lt;/P&gt;&lt;P&gt;content type string .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;conv = cl_abap_conv_in_ce=&amp;gt;create( input = xcontent ).&lt;/P&gt;&lt;P&gt;conv-&amp;gt;read( importing data = content ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;source:- /people/sravya.talanki2/blog/2005/12/21/convert-any-r3-structure-to-xsd-made-easy-was-60&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: kartik tarla on Jan 15, 2009 1:07 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Jan 2009 19:37:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convert-xstring-into-human-readable-string/m-p/4989000#M1162213</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-14T19:37:16Z</dc:date>
    </item>
    <item>
      <title>Re: convert xstring into human readable string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-xstring-into-human-readable-string/m-p/4989001#M1162214</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;@ Tarla: this is xslt transformation&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;@ Rossi not in Release 4.6 C&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;@ Tarla: not in 4.6 C&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jan 2009 09:38:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convert-xstring-into-human-readable-string/m-p/4989001#M1162214</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-15T09:38:35Z</dc:date>
    </item>
    <item>
      <title>Re: convert xstring into human readable string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-xstring-into-human-readable-string/m-p/4989002#M1162215</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do something like this and adapt it if needed :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REPORT  ZZYSRO_XSTRING_TO_STRING.
* This program works only if 1 character occupies 1 byte (4.6c?)
data string type string.
data xstring type xstring.
constants buffsize type i value 2. "here set a large buffer, maximum 65535 or 65536 if I remember well
data xxx type x length buffsize.
field-symbols &amp;lt;ccc&amp;gt; type c.
data max type i.
data len type i.
data pos type i.
data temp type i.

xstring = '414243'.

pos = 0.
len = buffsize.
max = strlen( xstring ). "xstrlen is not available in 4.6c if I remember well, strlen should work
do.
  if pos &amp;gt;= max.
    exit.
  endif.
  temp = pos + buffsize.
  if temp &amp;gt;= max.
    len = max - pos.
  endif.
  xxx = xstring+pos(len).
  assign xxx(len) to &amp;lt;ccc&amp;gt; casting.
  concatenate string &amp;lt;ccc&amp;gt; into string.
  add buffsize to pos.
enddo.

* Assertion :
if string &amp;lt;&amp;gt; 'ABC'. message x001(00). endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jan 2009 15:25:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convert-xstring-into-human-readable-string/m-p/4989002#M1162215</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2009-01-15T15:25:17Z</dc:date>
    </item>
  </channel>
</rss>

