<?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: code- in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/code/m-p/2347048#M517852</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: t(10) TYPE c VALUE 'AbCdEfGhIj',&lt;/P&gt;&lt;P&gt;      string LIKE t,&lt;/P&gt;&lt;P&gt;      rule(20) TYPE c VALUE 'AxbXCydYEzfZ'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;string = t.&lt;/P&gt;&lt;P&gt;WRITE string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TRANSLATE string TO UPPER CASE.&lt;/P&gt;&lt;P&gt;WRITE / string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;string = t.&lt;/P&gt;&lt;P&gt;TRANSLATE string TO LOWER CASE.&lt;/P&gt;&lt;P&gt;WRITE / string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;string = t.&lt;/P&gt;&lt;P&gt;TRANSLATE string USING rule.&lt;/P&gt;&lt;P&gt;WRITE / string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Neelambari&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 05 Jun 2007 12:08:44 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-06-05T12:08:44Z</dc:date>
    <item>
      <title>code-</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code/m-p/2347045#M517849</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;Anybody can give me any two or three line code on TRANSLATE. I want to check and execute that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jun 2007 12:05:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code/m-p/2347045#M517849</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-05T12:05:13Z</dc:date>
    </item>
    <item>
      <title>Re: code-</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code/m-p/2347046#M517850</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Data: v1(10) type c value 'ABCDEFGHIJ'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;TRANSLATE v1 to lowercase.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;output is 'abcdefghij'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if useful&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anji&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jun 2007 12:06:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code/m-p/2347046#M517850</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-05T12:06:57Z</dc:date>
    </item>
    <item>
      <title>Re: code-</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code/m-p/2347047#M517851</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Abhay,&lt;/P&gt;&lt;P&gt;  go through the following code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: T(10) VALUE 'AbCdEfGhIj',&lt;/P&gt;&lt;P&gt;STRING LIKE T,&lt;/P&gt;&lt;P&gt;RULE(20) VALUE 'AxbXCydYEzfZ'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;STRING = T.&lt;/P&gt;&lt;P&gt;WRITE STRING.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TRANSLATE STRING TO UPPER CASE.&lt;/P&gt;&lt;P&gt;WRITE / STRING.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;STRING = T.&lt;/P&gt;&lt;P&gt;TRANSLATE STRING TO LOWER CASE.&lt;/P&gt;&lt;P&gt;WRITE / STRING.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;STRING = T.&lt;/P&gt;&lt;P&gt;TRANSLATE STRING USING RULE.&lt;/P&gt;&lt;P&gt;WRITE / STRING.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jun 2007 12:07:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code/m-p/2347047#M517851</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-05T12:07:29Z</dc:date>
    </item>
    <item>
      <title>Re: code-</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code/m-p/2347048#M517852</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: t(10) TYPE c VALUE 'AbCdEfGhIj',&lt;/P&gt;&lt;P&gt;      string LIKE t,&lt;/P&gt;&lt;P&gt;      rule(20) TYPE c VALUE 'AxbXCydYEzfZ'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;string = t.&lt;/P&gt;&lt;P&gt;WRITE string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TRANSLATE string TO UPPER CASE.&lt;/P&gt;&lt;P&gt;WRITE / string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;string = t.&lt;/P&gt;&lt;P&gt;TRANSLATE string TO LOWER CASE.&lt;/P&gt;&lt;P&gt;WRITE / string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;string = t.&lt;/P&gt;&lt;P&gt;TRANSLATE string USING rule.&lt;/P&gt;&lt;P&gt;WRITE / string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Neelambari&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jun 2007 12:08:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code/m-p/2347048#M517852</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-05T12:08:44Z</dc:date>
    </item>
    <item>
      <title>Re: code-</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code/m-p/2347049#M517853</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Abhay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The TRANSLATE statement converts characters into upper or lower case, or uses substitution rules to convert all occurrences of one character to another character.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Converting to Upper or Lower Case&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TRANSLATE &amp;lt;c&amp;gt; TO UPPER CASE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TRANSLATE &amp;lt;c&amp;gt; TO LOWER CASE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These statements convert all lower case letters in the field &amp;lt;c&amp;gt; to upper case or vice versa.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Substituting Characters&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TRANSLATE &amp;lt;c&amp;gt; USING &amp;lt;r&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This statement replaces all characters in field &amp;lt;c&amp;gt; according to the substitution rule stored in field &amp;lt;r&amp;gt; . &amp;lt;r&amp;gt; contains pairs of letters, where the first letter of each pair is replaced by the second letter. &amp;lt;r&amp;gt; can be a variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For more variants of the TRANSLATE statement with more complex substitution rules, see the keyword documentation in the ABAP Editor.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: T(10) VALUE 'AbCdEfGhIj',&lt;/P&gt;&lt;P&gt;STRING LIKE T,&lt;/P&gt;&lt;P&gt;RULE(20) VALUE 'AxbXCydYEzfZ'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;STRING = T.&lt;/P&gt;&lt;P&gt;WRITE STRING.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TRANSLATE STRING TO UPPER CASE.&lt;/P&gt;&lt;P&gt;WRITE / STRING.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;STRING = T.&lt;/P&gt;&lt;P&gt;TRANSLATE STRING TO LOWER CASE.&lt;/P&gt;&lt;P&gt;WRITE / STRING.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;STRING = T.&lt;/P&gt;&lt;P&gt;TRANSLATE STRING USING RULE.&lt;/P&gt;&lt;P&gt;WRITE / STRING.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Output:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AbCdEfGhIj&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ABCDEFGHIJ&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;abcdefghij&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;xXyYzZGhIj&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;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. A statement such as CONCATENATE a x b INTO c is thus no longer possible when a,b, and c are all character-type, but x is of type X.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TRANSLATE ... CODEPAGE ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TRANSLATE ... NUMBER FORMAT ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The above statements are not allowed in Unicode programs. Instead, you can use the new conversion classes, which are described in more detail in Converting Data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These classes are used to convert ABAP data from the system format to external formats and vice versa. During this conversion process, character-type data may be converted to another character set, while numeric-type data may be converted to another byte order (or endian format). You must use a container of type X or XSTRING for data in an external format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Character sets and endian formats are also converted by the file interface (OPEN DATASET with new additions), RFCs, and the function modules GUI_DOWNLOAD and GUI_UPLOAD. The classes described below are available for those special cases where the possibilities offered by conversion are insufficient. Since these classes work with containers of types X and XSTRING, these containers can be copied unconverted by the file interface (OPEN DATASET with new additions), RFCs, and the function modules GUI_DOWNLOAD and GUI_UPLOAD. These classes replace the following two statements:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TRANSLATE c ...FROM CODE PAGE g1 ... TO CODE PAGE g2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TRANSLATE f ...FROM NUMBER FORMAT n1 ... TO NUMBER FORMAT n2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For a detailed description, see the class documentation in the Class Builder. The following classes are available:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CL_ABAP_CONV_IN_CE&lt;/P&gt;&lt;P&gt;Reads data from a container and converts it to the system format. You can also fill structures with data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CL_ABAP_CONV_OUT_CE&lt;/P&gt;&lt;P&gt;Converts data from the system format to an external format and writes it to a container.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CL_ABAP_CONV_X2X_CE&lt;/P&gt;&lt;P&gt;Converts data from one external format to another.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;Reward if it helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jun 2007 12:09:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code/m-p/2347049#M517853</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-05T12:09:03Z</dc:date>
    </item>
    <item>
      <title>Re: code-</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code/m-p/2347050#M517854</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;good&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Converting to Upper or Lower Case&lt;/P&gt;&lt;P&gt;TRANSLATE text TO UPPER CASE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TRANSLATE text TO LOWER CASE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These statements convert all lower case letters in the field &amp;lt;c&amp;gt; to upper case or vice versa.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Substituting Characters&lt;/P&gt;&lt;P&gt;TRANSLATE text USING pattern.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This statement replaces all characters in the text field according to the substitution rule stored in pattern. pattern contains letter pairs where the first letter of each pair is replaced by the second. pattern can be a variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For more variants of the TRANSLATE statement with more complex substitution rules (obsolete variants!), refer to the keyword documentation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: t(10) TYPE c VALUE 'AbCdEfGhIj',&lt;/P&gt;&lt;P&gt;      string LIKE t,&lt;/P&gt;&lt;P&gt;      rule(20) TYPE c VALUE 'AxbXCydYEzfZ'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;string = t.&lt;/P&gt;&lt;P&gt;WRITE string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TRANSLATE string TO UPPER CASE.&lt;/P&gt;&lt;P&gt;WRITE / string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;string = t.&lt;/P&gt;&lt;P&gt;TRANSLATE string TO LOWER CASE.&lt;/P&gt;&lt;P&gt;WRITE / string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;string = t.&lt;/P&gt;&lt;P&gt;TRANSLATE string USING rule.&lt;/P&gt;&lt;P&gt;WRITE / string.&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;mrutyun^&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jun 2007 12:10:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code/m-p/2347050#M517854</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-05T12:10:34Z</dc:date>
    </item>
    <item>
      <title>Re: code-</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code/m-p/2347051#M517855</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;TRANSLATE Converts characters in strings.&lt;/P&gt;&lt;P&gt;Syntax&lt;/P&gt;&lt;P&gt;TRANSLATE &amp;lt;c&amp;gt; TO UPPER|LOWER CASE&lt;/P&gt;&lt;P&gt;|USING &amp;lt;r&amp;gt;.&lt;/P&gt;&lt;P&gt;The characters of the string &amp;lt;c&amp;gt; are converted into upper- or lowercase, or according to a&lt;/P&gt;&lt;P&gt;substitution rule specified in &amp;lt;r&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: T(10) VALUE 'AbCdEfGhIj',&lt;/P&gt;&lt;P&gt;STRING LIKE T,&lt;/P&gt;&lt;P&gt;RULE(20) VALUE 'AxbXCydYEzfZ'.&lt;/P&gt;&lt;P&gt;STRING = T.&lt;/P&gt;&lt;P&gt;WRITE STRING.&lt;/P&gt;&lt;P&gt;TRANSLATE STRING TO UPPER CASE.&lt;/P&gt;&lt;P&gt;WRITE / STRING.&lt;/P&gt;&lt;P&gt;STRING = T.&lt;/P&gt;&lt;P&gt;TRANSLATE STRING TO LOWER CASE.&lt;/P&gt;&lt;P&gt;WRITE / STRING.&lt;/P&gt;&lt;P&gt;STRING = T.&lt;/P&gt;&lt;P&gt;TRANSLATE STRING USING RULE.&lt;/P&gt;&lt;P&gt;WRITE / STRING.&lt;/P&gt;&lt;P&gt;Output:&lt;/P&gt;&lt;P&gt;AbCdEfGhIj&lt;/P&gt;&lt;P&gt;ABCDEFGHIJ&lt;/P&gt;&lt;P&gt;abcdefghij&lt;/P&gt;&lt;P&gt;xXyYzZGhIj&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Bhaskar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jun 2007 12:10:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code/m-p/2347051#M517855</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-05T12:10:50Z</dc:date>
    </item>
    <item>
      <title>Re: code-</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code/m-p/2347052#M517856</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;my question has been answered by some great people of sdn.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jun 2007 12:27:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code/m-p/2347052#M517856</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-05T12:27:05Z</dc:date>
    </item>
  </channel>
</rss>

