<?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: Problem with REPLACE ALL OCCURRENCES in Smartform in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-replace-all-occurrences-in-smartform/m-p/5655600#M1286653</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See the follwoing example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT it_otfdata1 INTO wotfdata .&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;REPLACE ALL OCCURRENCE OF '#' IN wotfdata-tdprintpar WITH ' '.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;MODIFY it_otfdata1 FROM wotfdata INDEX sy-tabix TRANSPORTING tdprintpar.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endloop&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 03 Jun 2009 13:06:13 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-06-03T13:06:13Z</dc:date>
    <item>
      <title>Problem with REPLACE ALL OCCURRENCES in Smartform</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-replace-all-occurrences-in-smartform/m-p/5655594#M1286647</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am having a problem with REPLACE ALL OCCURRENCES when using it in Smartform.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code from my Smartfom is as below :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;LOOP AT zline INTO lwa_zline.
  REPLACE ALL OCCURRENCES OF '#' IN lwa_zline-tdline WITH space
              IN CHARACTER MODE.    
  MODIFY zline FROM lwa_zline.
ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;This code works fine if written in a report but does not replace character # when written in Smartform.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls help.&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;Jinson.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jun 2009 12:09:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-replace-all-occurrences-in-smartform/m-p/5655594#M1286647</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-03T12:09:28Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with REPLACE ALL OCCURRENCES in Smartform</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-replace-all-occurrences-in-smartform/m-p/5655595#M1286648</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;Use Modify keyword with TRANSPORTING.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Modify zline FROM lwa_zline index sy-tabix TRANSPORTING tdline.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jun 2009 12:12:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-replace-all-occurrences-in-smartform/m-p/5655595#M1286648</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-03T12:12:30Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with REPLACE ALL OCCURRENCES in Smartform</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-replace-all-occurrences-in-smartform/m-p/5655596#M1286649</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Santhosh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPLACE is not working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Its not replacing the '#' char from the string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Jinson.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jun 2009 12:25:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-replace-all-occurrences-in-smartform/m-p/5655596#M1286649</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-03T12:25:24Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with REPLACE ALL OCCURRENCES in Smartform</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-replace-all-occurrences-in-smartform/m-p/5655597#M1286650</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;try this way it will work...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
replace all occurances of  CL_ABAP_CHAR_UTILITIES=&amp;gt;newline   "use this in place of '#'
                                        in string with space.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
LOOP AT zline INTO lwa_zline.
  REPLACE ALL OCCURRENCES OFcl_abap_char_utilities=&amp;gt;NEWLINE   "try to use class
                  IN lwa_zline-tdline WITH space
              IN CHARACTER MODE.    
  MODIFY zline FROM lwa_zline.
ENDLOOP.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;see the link[link for rplace # or ##|&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="7629061"&gt;&lt;/A&gt;]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Prabhu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jun 2009 12:30:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-replace-all-occurrences-in-smartform/m-p/5655597#M1286650</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-03T12:30:49Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with REPLACE ALL OCCURRENCES in Smartform</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-replace-all-occurrences-in-smartform/m-p/5655598#M1286651</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Prabhu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using CL_ABAP_CHAR_UTILITIES=&amp;gt;newline  didnt work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I checked the hex values also...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The value from which I want to remove is &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;YAEM2#HINGE&lt;/STRONG&gt; and its hex value is &lt;STRONG&gt;5941454D320948494E4745&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and the hex value for &lt;STRONG&gt;CL_ABAP_CHAR_UTILITIES=&amp;gt;newline&lt;/STRONG&gt;  is &lt;STRONG&gt;0A&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jun 2009 12:49:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-replace-all-occurrences-in-smartform/m-p/5655598#M1286651</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-03T12:49:44Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with REPLACE ALL OCCURRENCES in Smartform</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-replace-all-occurrences-in-smartform/m-p/5655599#M1286652</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jinson,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try to comment &lt;STRONG&gt;IN CHARACTER MODE&lt;/STRONG&gt; and check ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
LOOP AT zline INTO lwa_zline.
  REPLACE ALL OCCURRENCES OFcl_abap_char_utilities=&amp;gt;NEWLINE   "try to use class
                  IN lwa_zline-tdline WITH space.
              IN CHARACTER MODE.                           "comment this and check 
  MODIFY zline FROM lwa_zline.
ENDLOOP.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Prabhu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jun 2009 12:56:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-replace-all-occurrences-in-smartform/m-p/5655599#M1286652</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-03T12:56:48Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with REPLACE ALL OCCURRENCES in Smartform</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-replace-all-occurrences-in-smartform/m-p/5655600#M1286653</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See the follwoing example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT it_otfdata1 INTO wotfdata .&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;REPLACE ALL OCCURRENCE OF '#' IN wotfdata-tdprintpar WITH ' '.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;MODIFY it_otfdata1 FROM wotfdata INDEX sy-tabix TRANSPORTING tdprintpar.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endloop&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jun 2009 13:06:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-replace-all-occurrences-in-smartform/m-p/5655600#M1286653</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-03T13:06:13Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with REPLACE ALL OCCURRENCES in Smartform</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-replace-all-occurrences-in-smartform/m-p/5655601#M1286654</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; Hi Jinson,&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; try to comment &lt;STRONG&gt;IN CHARACTER MODE&lt;/STRONG&gt; and check ..&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;/CODE&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;CODE&gt;
&amp;gt; LOOP AT zline INTO lwa_zline.
&amp;gt;   REPLACE ALL OCCURRENCES OFcl_abap_char_utilities=&amp;gt;NEWLINE   "try to use class
&amp;gt;                   IN lwa_zline-tdline WITH space.
&amp;gt;               IN CHARACTER MODE.                           "comment this and check 
&amp;gt;   MODIFY zline FROM lwa_zline.
&amp;gt; ENDLOOP.
&amp;gt; &lt;/CODE&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; Prabhu&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Prabhu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tried using   &lt;/P&gt;&lt;P&gt;REPLACE ALL OCCURRENCES OF CL_ABAP_CHAR_UTILITIES=&amp;gt;newline IN lwa_zline-tdline WITH space.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Didnt work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jun 2009 13:11:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-replace-all-occurrences-in-smartform/m-p/5655601#M1286654</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-03T13:11:12Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with REPLACE ALL OCCURRENCES in Smartform</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-replace-all-occurrences-in-smartform/m-p/5655602#M1286655</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Prabhu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Resolved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Used CL_ABAP_CHAR_UTILITIES=&amp;gt;HORIZONTAL_TAB instead of NEWLINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks Prabhu for the help.&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;Jinson.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jun 2009 13:25:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-replace-all-occurrences-in-smartform/m-p/5655602#M1286655</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-03T13:25:14Z</dc:date>
    </item>
  </channel>
</rss>

