<?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: how to replace character for a variable? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-replace-character-for-a-variable/m-p/4434536#M1052546</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;TRANSALATE or REPLACE, base on your requirement.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 16 Sep 2008 08:29:12 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-09-16T08:29:12Z</dc:date>
    <item>
      <title>how to replace character for a variable?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-replace-character-for-a-variable/m-p/4434531#M1052541</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In ABAP, if I want to replace * with &amp;amp; which in the variable 'input1'. How to write the code?&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, 16 Sep 2008 08:21:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-replace-character-for-a-variable/m-p/4434531#M1052541</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-16T08:21:10Z</dc:date>
    </item>
    <item>
      <title>Re: how to replace character for a variable?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-replace-character-for-a-variable/m-p/4434532#M1052542</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Type REPLACE into the abap editor, and then press F1.  or TRANSLATE can also be used.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Sep 2008 08:22:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-replace-character-for-a-variable/m-p/4434532#M1052542</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2008-09-16T08:22:20Z</dc:date>
    </item>
    <item>
      <title>Re: how to replace character for a variable?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-replace-character-for-a-variable/m-p/4434533#M1052543</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;PRE&gt;&lt;CODE&gt;TRANSLATE string USING '*&amp;amp;'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;P&gt;ec&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Sep 2008 08:22:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-replace-character-for-a-variable/m-p/4434533#M1052543</guid>
      <dc:creator>JozsefSzikszai</dc:creator>
      <dc:date>2008-09-16T08:22:36Z</dc:date>
    </item>
    <item>
      <title>Re: how to replace character for a variable?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-replace-character-for-a-variable/m-p/4434534#M1052544</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt; See Help on REPLACE statement [F1].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Sudharshan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Sep 2008 08:22:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-replace-character-for-a-variable/m-p/4434534#M1052544</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-16T08:22:53Z</dc:date>
    </item>
    <item>
      <title>Re: how to replace character for a variable?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-replace-character-for-a-variable/m-p/4434535#M1052545</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;wuyia,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use REPLACE ALL OCCURENCES.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For syntax, check ABAPHELP transaction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;K.Kiran.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Sep 2008 08:23:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-replace-character-for-a-variable/m-p/4434535#M1052545</guid>
      <dc:creator>kiran_k8</dc:creator>
      <dc:date>2008-09-16T08:23:05Z</dc:date>
    </item>
    <item>
      <title>Re: how to replace character for a variable?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-replace-character-for-a-variable/m-p/4434536#M1052546</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;TRANSALATE or REPLACE, base on your requirement.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Sep 2008 08:29:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-replace-character-for-a-variable/m-p/4434536#M1052546</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-16T08:29:12Z</dc:date>
    </item>
    <item>
      <title>Re: how to replace character for a variable?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-replace-character-for-a-variable/m-p/4434537#M1052547</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Wuyia,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Try this way:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Data:
  w_char(20).

w_char = 'ab*c*def*h'.

REPLACE ALL OCCURRENCES OF '*' IN w_char WITH '&amp;amp;'.

Write: w_char.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With luck,&lt;/P&gt;&lt;P&gt;Pritam.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Sep 2008 08:31:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-replace-character-for-a-variable/m-p/4434537#M1052547</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-16T08:31:57Z</dc:date>
    </item>
    <item>
      <title>Re: how to replace character for a variable?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-replace-character-for-a-variable/m-p/4434538#M1052548</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use this sample code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MOVE 'ABCB' TO FIELD.&lt;/P&gt;&lt;P&gt;REPLACE 'B' WITH 'string' INTO field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;returns:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FIELD = 'AstringCB', SY-SUBRC = 0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The fields f and g in the REPLACE statement should not overlap.&lt;/P&gt;&lt;P&gt;Otherwise, the result is undefined.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Alpesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Sep 2008 08:32:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-replace-character-for-a-variable/m-p/4434538#M1052548</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-16T08:32:08Z</dc:date>
    </item>
  </channel>
</rss>

