<?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 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/translate/m-p/2794944#M652348</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Translate converts letters into Upper case to Lower case or vice versa.&lt;/P&gt;&lt;P&gt;Reward if useful!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 30 Aug 2007 10:02:14 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-08-30T10:02:14Z</dc:date>
    <item>
      <title>TRANSLATE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/translate/m-p/2794943#M652347</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;         Can anybody please explain me what is the exact use of TRANSLATE as I have seen an example for TRANSLATE in abap help it is as follows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA text TYPE string. &lt;/P&gt;&lt;P&gt;text = `Barbcbdbarb`. &lt;/P&gt;&lt;P&gt;TRANSLATE text USING 'ABBAabba'. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the output is :     Abracadabra&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have gone through the documentation provided there, But Iam not clear with that documentation. Please help me&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Aug 2007 09:59:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/translate/m-p/2794943#M652347</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-30T09:59:20Z</dc:date>
    </item>
    <item>
      <title>Re: TRANSLATE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/translate/m-p/2794944#M652348</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Translate converts letters into Upper case to Lower case or vice versa.&lt;/P&gt;&lt;P&gt;Reward if useful!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Aug 2007 10:02:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/translate/m-p/2794944#M652348</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-30T10:02:14Z</dc:date>
    </item>
    <item>
      <title>Re: TRANSLATE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/translate/m-p/2794945#M652349</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dixit,&lt;/P&gt;&lt;P&gt;            I know that but what is use of the below mentioned statement when we add USING to it succeded by the text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TRANSLATE text USING 'ABBAabba'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Aug 2007 10:06:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/translate/m-p/2794945#M652349</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-30T10:06:25Z</dc:date>
    </item>
    <item>
      <title>Re: TRANSLATE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/translate/m-p/2794946#M652350</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ranjith,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TRANSLATE is mainly used to convert the text in to upper case, lower case or using any specific rule.&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;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 will be &amp;lt;b&amp;gt;xXyYzZGhIj&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This means the rule has been defined like &lt;/P&gt;&lt;P&gt;A which is in T(10) should be converted to Lower case indicated by "x" 2nd letter in the RULE while the first letter in RULE denotes the letter (from T) itself.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In other terms the mapping is like bwloe:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;T(10) VALUE        'AbCdEfGhIj',&lt;/P&gt;&lt;P&gt;RULE(20) VALUE 'AxbXCydYEzfZ'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here &lt;/P&gt;&lt;P&gt;A in T is mapped with x in RULE.&lt;/P&gt;&lt;P&gt;b in T is mapped with X in RULE.&lt;/P&gt;&lt;P&gt;C in T is mapped with y in RULE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and goes on....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Reward points for helpful answers&amp;lt;/b&amp;gt;.&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Ram.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Aug 2007 10:07:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/translate/m-p/2794946#M652350</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-30T10:07:46Z</dc:date>
    </item>
    <item>
      <title>Re: TRANSLATE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/translate/m-p/2794947#M652351</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ranjeet,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check this link&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sts.tu-harburg.de/teaching/sap_r3/ABAP4/translat.htm" target="test_blank"&gt;http://www.sts.tu-harburg.de/teaching/sap_r3/ABAP4/translat.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TRANSLATE text USING 'ABBAabba'&lt;/P&gt;&lt;P&gt;This translates text using the character set specified in the USING clause.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here it replaces A with B, B with A, a with b and b with a in the text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the USING clause, the second character is replaced with first character in the string and so on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vinay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Aug 2007 10:09:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/translate/m-p/2794947#M652351</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-30T10:09:21Z</dc:date>
    </item>
    <item>
      <title>Re: TRANSLATE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/translate/m-p/2794948#M652352</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;TRANSLATE c USING r. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect &lt;/P&gt;&lt;P&gt;Replaces all the characters in the field c according to the rule in field r. c1 containscharacter pairs. The second character in each pair replaces the first. If r does not contain a character in c, this character remains unchanged. r can also be a variable. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example&lt;/P&gt;&lt;P&gt;DATA: letters(20) TYPE C VALUE 'abcabcabcXab', &lt;/P&gt;&lt;P&gt;      change(15)  TYPE C VALUE 'aXbaYBabZacZ'. &lt;/P&gt;&lt;P&gt;TRANSLATE letters USING change. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;letters now contains 'XaZXaZXaZXXaZ'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Aug 2007 10:10:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/translate/m-p/2794948#M652352</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-30T10:10:18Z</dc:date>
    </item>
    <item>
      <title>Re: TRANSLATE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/translate/m-p/2794949#M652353</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ram,&lt;/P&gt;&lt;P&gt;              Thank you very much. It was a very good example. Thanks a Lot&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Aug 2007 10:14:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/translate/m-p/2794949#M652353</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-30T10:14:16Z</dc:date>
    </item>
    <item>
      <title>Re: TRANSLATE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/translate/m-p/2794950#M652354</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;&amp;lt;u&amp;gt;&amp;lt;b&amp;gt;TRANSLATE&amp;lt;/b&amp;gt;&amp;lt;/u&amp;gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TRANSLATE text {TO {UPPER|LOWER} CASE} &lt;/P&gt;&lt;P&gt;                            | {USING pattern}. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This statement converts the case or single characters of the character-type data object text. The statement CASE can be used for the conversion to upper/lower case; USING can be used for the conversion according to a pattern. The variable text must be character-type. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are two obsolete variants of this statement: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Addition 1 &lt;/P&gt;&lt;P&gt;... TO {UPPER|LOWER} CASE &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you specify UPPER, all lower-case letters of the data object text are converted to upper case. If you specify LOWER, all upper-case letters are converted to lower case. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The conversion of the upper/lower case depends on the text environment. Problems may occur if the language of the text environment differs from the language in which the data to be processed is entered. Data loss will occur if a conversion between the source and target language has not been defined. To avoid this type of inconsistency, you must appropriately set the text environment using the SET LOCALE statement prior to the conversion. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example &lt;/P&gt;&lt;P&gt;After the conversion, the variable text contains "CAREFUL WITH THAT AXE, EUGENE". &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA text TYPE string. &lt;/P&gt;&lt;P&gt;text = `Careful with that Axe, Eugene`. &lt;/P&gt;&lt;P&gt;TRANSLATE text TO UPPER CASE. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Addition 2 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;... USING  pattern &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you specify USING, the characters in text are converted according to the rule specified in pattern. pattern must be a character-type data object whose contents are interpreted as a sequence of character pairs. text is searched for the first character of each pair, starting with the first pair, and each location found is replaced with the second character of the pair. The search is case-sensitive. If pattern contains a character multiple times as the first character of a pair, only the first pair is taken into account. A character in text that has already been replaced cannot be replaced again in the same TRANSLATE statement. Therefore, if the second character of a pair in pattern appears as the first character of a subsequent pair, the second pair affects only the original characters in text. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Trailing blanks in data objects text and pattern are taken into account for data objects. If pattern contains an uneven number of characters, the last character is ignored. If pattern is a blank string, no replacements take place. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example &lt;/P&gt;&lt;P&gt;Converts the characters "A" to "B", "a" to "b", and vice versa. text contains "Abracadabra" after the conversion. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA text TYPE string. &lt;/P&gt;&lt;P&gt;text = `Barbcbdbarb`. &lt;/P&gt;&lt;P&gt;TRANSLATE text USING 'ABBAabba'. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REWARD IF USEFULL&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Aug 2007 10:16:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/translate/m-p/2794950#M652354</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-30T10:16:45Z</dc:date>
    </item>
    <item>
      <title>Re: TRANSLATE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/translate/m-p/2794951#M652355</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ranjith..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data :v_str(10) value 'ABCBBC' .&lt;/P&gt;&lt;P&gt;TRANSLATE v_str USING 'AXBY'.&lt;/P&gt;&lt;P&gt;write:/ v_str.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Translate in this case Will be used for Character Replacement of all occurrences in a String .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So It will Replace all the characters 'A' with 'X' &lt;/P&gt;&lt;P&gt;and  all the characters 'B' with 'Y'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That means it will divide the String 'AXBY' into Pairs of Characters and In each Pair the First Character Occurrences will be Replaced with The Second Character...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So the Result will be :  XYCYYC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;REWARD IF HELPFUL.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Aug 2007 11:32:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/translate/m-p/2794951#M652355</guid>
      <dc:creator>varma_narayana</dc:creator>
      <dc:date>2007-08-30T11:32:39Z</dc:date>
    </item>
    <item>
      <title>Re: TRANSLATE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/translate/m-p/2794952#M652356</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ranjithm&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TRANSLATE text USING 'ABBAabba'. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the above statement it takes 2 letters at a time&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;say the first 2 letters are , AB , here A will be converted to B in text&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;next 2 letter are BA , so B will be converted to A in text&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;next 2 letters are ab , a will be converted to b &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and so on..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Aug 2007 11:37:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/translate/m-p/2794952#M652356</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-30T11:37:44Z</dc:date>
    </item>
  </channel>
</rss>

