<?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 c using c1 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/translate-c-using-c1/m-p/1812217#M348105</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;Read this, u will understand what translate does.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Translate abc 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;Translate, in this case, will replace all occurances of a "-" with a space.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; translate p_number using '- '.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another example, say that you want do translate all commas, to periods. You could do this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; translate p_number using '-.'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 14 Dec 2006 10:16:13 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-12-14T10:16:13Z</dc:date>
    <item>
      <title>Translate c using c1</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/translate-c-using-c1/m-p/1812215#M348103</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;What is the use of  Translate c using c1 ststement ?&lt;/P&gt;&lt;P&gt;could you please explain wit a exapmle ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks in advance&lt;/P&gt;&lt;P&gt;Krish...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Dec 2006 10:03:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/translate-c-using-c1/m-p/1812215#M348103</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-14T10:03:10Z</dc:date>
    </item>
    <item>
      <title>Re: Translate c using c1</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/translate-c-using-c1/m-p/1812216#M348104</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Dec 2006 10:09:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/translate-c-using-c1/m-p/1812216#M348104</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-14T10:09:42Z</dc:date>
    </item>
    <item>
      <title>Re: Translate c using c1</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/translate-c-using-c1/m-p/1812217#M348105</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;Read this, u will understand what translate does.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Translate abc 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;Translate, in this case, will replace all occurances of a "-" with a space.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; translate p_number using '- '.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another example, say that you want do translate all commas, to periods. You could do this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; translate p_number using '-.'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Dec 2006 10:16:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/translate-c-using-c1/m-p/1812217#M348105</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-14T10:16:13Z</dc:date>
    </item>
    <item>
      <title>Re: Translate c using c1</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/translate-c-using-c1/m-p/1812218#M348106</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi &lt;/P&gt;&lt;P&gt;syntx : TRANSLATE src USING dest.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The TRANSLATE command  groups the characters in dest string in pairs .&lt;/P&gt;&lt;P&gt;it then changes the characters in src string using the corresponding 2nd character &lt;/P&gt;&lt;P&gt;of the pair in the destination string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data : num(10) value '123456' ,&lt;/P&gt;&lt;P&gt;          chars(10) value '1a2b3c4d5e6f0'.&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;Eq TRANSLATE  num using chars.&lt;/P&gt;&lt;P&gt;The resulting value in num is 'abcdef' .&lt;/P&gt;&lt;P&gt;Explain .  for 1 in num , the refernce is made to pairs in chars , here '1a' pair.&lt;/P&gt;&lt;P&gt;              the first value in pair is replaced with the secondvalue ie 1 by a .&lt;/P&gt;&lt;P&gt;lly   for 2 in num , reference to 2b in chars is made .. the matching 2 in num is replaced  by the second entry in the pair in chars ie 'b' in the pair '2b' .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i hope this helps u.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Pankaj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Dec 2006 10:24:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/translate-c-using-c1/m-p/1812218#M348106</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-14T10:24:23Z</dc:date>
    </item>
  </channel>
</rss>

