<?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: Translate statement in unicode system in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/translate-statement-in-unicode-system/m-p/1919637#M382166</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;u need to change Hexadecimals to the corresponding Character types..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;goto SE24 and check the attributes in the class CL_ABAP_CHAR_UTILITIES that are can be used.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for ex:&lt;/P&gt;&lt;P&gt;X TYPE X VALUE '08' : shud be changed to CL_ABAP_CHAR_UTILITIES=&amp;gt;BACKSPACE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;X TYPE X VALUE '09' : shud be changed to CL_ABAP_CHAR_UTILITIES=&amp;gt;HORIZONTAL_TAB&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.asciitable.com/" target="test_blank"&gt;http://www.asciitable.com/&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 20 Feb 2007 11:41:23 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-02-20T11:41:23Z</dc:date>
    <item>
      <title>Translate statement in unicode system</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/translate-statement-in-unicode-system/m-p/1919632#M382161</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have to make a unicode check for all our old reports. There I got a problem with&lt;/P&gt;&lt;P&gt;the following statement:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    TRANSLATE TFILE USING TRANS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message in UnicodeCheck:&lt;/P&gt;&lt;P&gt;"TRANS" must be a character-type data object (data type C, N, D, T or STRING).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The both variables are defined as follows:&lt;/P&gt;&lt;P&gt;DATA:    BEGIN OF TRANS OCCURS 0,&lt;/P&gt;&lt;P&gt;          X     TYPE X VALUE '00',&lt;/P&gt;&lt;P&gt;          C_00  TYPE C VALUE ' ',&lt;/P&gt;&lt;P&gt;          SOH   TYPE X VALUE '01',&lt;/P&gt;&lt;P&gt;          C_01  TYPE C VALUE ' ',&lt;/P&gt;&lt;P&gt;          STX   TYPE X VALUE '02',&lt;/P&gt;&lt;P&gt;          C_02  TYPE C VALUE ' ',&lt;/P&gt;&lt;P&gt;          ETX   TYPE X VALUE '03',&lt;/P&gt;&lt;P&gt;          C_03  TYPE C VALUE ' ',&lt;/P&gt;&lt;P&gt;          EOT   TYPE X VALUE '04',&lt;/P&gt;&lt;P&gt;          C_04  TYPE C VALUE ' ',&lt;/P&gt;&lt;P&gt;          ENQ   TYPE X VALUE '05',&lt;/P&gt;&lt;P&gt;          C_05  TYPE C VALUE ' ',&lt;/P&gt;&lt;P&gt;          ACK   TYPE X VALUE '06',&lt;/P&gt;&lt;P&gt;          C_06  TYPE C VALUE ' ',&lt;/P&gt;&lt;P&gt;          [...]&lt;/P&gt;&lt;P&gt;         END OF TRANS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       BEGIN OF TFILE OCCURS 0,&lt;/P&gt;&lt;P&gt;          REC(2500)  TYPE C,&lt;/P&gt;&lt;P&gt;        END OF TFILE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think the developer wanted to remove all control characters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Has any body an idea how can do this in an unicode program?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sven&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Feb 2007 11:06:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/translate-statement-in-unicode-system/m-p/1919632#M382161</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-20T11:06:09Z</dc:date>
    </item>
    <item>
      <title>Re: Translate statement in unicode system</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/translate-statement-in-unicode-system/m-p/1919633#M382162</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi .&lt;/P&gt;&lt;P&gt;      Add the code &lt;/P&gt;&lt;P&gt;TRANSLATE TFILE USING TRANS in byte mode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CHECK TFILE AND TRANS ARE COMPATIBLE .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please reward if useful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Feb 2007 11:13:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/translate-statement-in-unicode-system/m-p/1919633#M382162</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-20T11:13:09Z</dc:date>
    </item>
    <item>
      <title>Re: Translate statement in unicode system</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/translate-statement-in-unicode-system/m-p/1919634#M382163</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;Dont use hexadecimal type 'X' in the internal table variables declaration , use only character types&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Feb 2007 11:28:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/translate-statement-in-unicode-system/m-p/1919634#M382163</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-20T11:28:48Z</dc:date>
    </item>
    <item>
      <title>Re: Translate statement in unicode system</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/translate-statement-in-unicode-system/m-p/1919635#M382164</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your reply. But the statement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TRANSLATE TFILE USING TRANS &amp;lt;b&amp;gt;in byte mode&amp;lt;/b&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is not possible and returns an syntax error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, &lt;/P&gt;&lt;P&gt;Sven&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Feb 2007 11:35:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/translate-statement-in-unicode-system/m-p/1919635#M382164</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-20T11:35:21Z</dc:date>
    </item>
    <item>
      <title>Re: Translate statement in unicode system</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/translate-statement-in-unicode-system/m-p/1919636#M382165</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;The internal table trans should be character type data object so u can have only data types c,n,d,t and string in your internal table but not hexa decimal.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The  fields of internal table should be character type (The ABAP data types C, N, D, T, and STRING)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TRANSLATE ... TO UPPER/LOWER CASE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TRANSLATE ... USING&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The arguments of these instructions must be single fields of type C, N, D, T or STRING or structures of character-type only. There is a syntax or runtime error if arguments of a different type are passed. A subset of this function is provided with the addition IN BYTE MODE for processing byte strings &amp;#150; that is, operands of type X or XSTRING.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sruthi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Feb 2007 11:40:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/translate-statement-in-unicode-system/m-p/1919636#M382165</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-20T11:40:00Z</dc:date>
    </item>
    <item>
      <title>Re: Translate statement in unicode system</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/translate-statement-in-unicode-system/m-p/1919637#M382166</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;u need to change Hexadecimals to the corresponding Character types..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;goto SE24 and check the attributes in the class CL_ABAP_CHAR_UTILITIES that are can be used.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for ex:&lt;/P&gt;&lt;P&gt;X TYPE X VALUE '08' : shud be changed to CL_ABAP_CHAR_UTILITIES=&amp;gt;BACKSPACE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;X TYPE X VALUE '09' : shud be changed to CL_ABAP_CHAR_UTILITIES=&amp;gt;HORIZONTAL_TAB&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.asciitable.com/" target="test_blank"&gt;http://www.asciitable.com/&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Feb 2007 11:41:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/translate-statement-in-unicode-system/m-p/1919637#M382166</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-20T11:41:23Z</dc:date>
    </item>
    <item>
      <title>Re: Translate statement in unicode system</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/translate-statement-in-unicode-system/m-p/1919638#M382167</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;But can I be sure, that all control characters like CR or LF will be converted, when I define thme as char instead of hex?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In SAP Standard reports it is used the class cl_abap_conv_in_ce to convert the contoll characters. Maybe some methods of this class can resolve my problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Feb 2007 11:45:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/translate-statement-in-unicode-system/m-p/1919638#M382167</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-20T11:45:32Z</dc:date>
    </item>
  </channel>
</rss>

