<?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: Replace a string in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-a-string/m-p/5822217#M1315170</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is not necessary that  i must highlight with different color.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any highlight options in the pop up is fine for that character.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 16 Jun 2009 11:58:15 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-06-16T11:58:15Z</dc:date>
    <item>
      <title>Replace a string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-a-string/m-p/5822211#M1315164</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;I need to replace a string as per the example below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;w_string = '  Varenr800294TC59 ROSINER!  Mål/Vægt   '.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this string mentioned above , i need to replace the 2 character  'a' to different color.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can some one help me with this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jun 2009 11:40:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-a-string/m-p/5822211#M1315164</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-16T11:40:07Z</dc:date>
    </item>
    <item>
      <title>Re: Replace a string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-a-string/m-p/5822212#M1315165</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vijay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not clear to your question. Do you want to REPLACE a string with some other character? What do you mean by &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt; i need to replace the 2 character 'a' to different color.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please explain.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Amol&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jun 2009 11:43:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-a-string/m-p/5822212#M1315165</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-16T11:43:52Z</dc:date>
    </item>
    <item>
      <title>Re: Replace a string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-a-string/m-p/5822213#M1315166</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;Is this a text which is displayed in your ALV cell... I mean you want to change the a's to a different COLOR.... If you want to do this ..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jun 2009 11:48:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-a-string/m-p/5822213#M1315166</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-16T11:48:48Z</dc:date>
    </item>
    <item>
      <title>Re: Replace a string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-a-string/m-p/5822214#M1315167</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a string  w_string = '  Varenr800294TC59 ROSINER!Mål/Vægt'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this string , i have to highlight the 2 character &lt;U&gt;w&lt;/U&gt;string+0(2) with a  different color .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can i do this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jun 2009 11:52:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-a-string/m-p/5822214#M1315167</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-16T11:52:23Z</dc:date>
    </item>
    <item>
      <title>Re: Replace a string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-a-string/m-p/5822215#M1315168</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This string is shown in the pop up screen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jun 2009 11:53:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-a-string/m-p/5822215#M1315168</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-16T11:53:03Z</dc:date>
    </item>
    <item>
      <title>Re: Replace a string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-a-string/m-p/5822216#M1315169</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;I dont think it is possible in a pop-up screen..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jun 2009 11:55:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-a-string/m-p/5822216#M1315169</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-16T11:55:06Z</dc:date>
    </item>
    <item>
      <title>Re: Replace a string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-a-string/m-p/5822217#M1315170</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is not necessary that  i must highlight with different color.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any highlight options in the pop up is fine for that character.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jun 2009 11:58:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-a-string/m-p/5822217#M1315170</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-16T11:58:15Z</dc:date>
    </item>
    <item>
      <title>Re: Replace a string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-a-string/m-p/5822218#M1315171</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;When you are saying its a pop-up do you mean that its an information box or a window that you are displaying..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jun 2009 12:05:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-a-string/m-p/5822218#M1315171</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-16T12:05:25Z</dc:date>
    </item>
    <item>
      <title>Re: Replace a string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-a-string/m-p/5822219#M1315172</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is only possible during list processing using options like &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORMAT COLOR COL_BACKGROUND or COL_NEGATIVE or COL_POSITIVE etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do F1 help on FORMAT.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jun 2009 12:07:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-a-string/m-p/5822219#M1315172</guid>
      <dc:creator>Sm1tje</dc:creator>
      <dc:date>2009-06-16T12:07:57Z</dc:date>
    </item>
    <item>
      <title>Re: Replace a string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-a-string/m-p/5822220#M1315173</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is not an information window.This is a normal window.&lt;/P&gt;&lt;P&gt;I am calling this FM COPO_POPUP_TO_DISPLAY_TEXTLIST to display the string.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jun 2009 12:08:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-a-string/m-p/5822220#M1315173</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-16T12:08:52Z</dc:date>
    </item>
    <item>
      <title>Re: Replace a string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-a-string/m-p/5822221#M1315174</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;Please try this to highlight the code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   WRITE: / listtab+6(lv_len) COLOR COL_NEGATIVE&amp;lt;----- You may also use COL_POSITIVE&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jun 2009 12:18:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-a-string/m-p/5822221#M1315174</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-16T12:18:11Z</dc:date>
    </item>
    <item>
      <title>Re: Replace a string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-a-string/m-p/5822222#M1315175</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Even you can try below options for different colors.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;WRITE  w_string+6(2) COLOR COL_TOTAL. " COL_NORMAL." COL_GROUP." COL_POSITIVE.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Amol&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jun 2009 12:31:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-a-string/m-p/5822222#M1315175</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-16T12:31:19Z</dc:date>
    </item>
    <item>
      <title>Re: Replace a string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-a-string/m-p/5822223#M1315176</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;Thanks all for the replies.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If i use this ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then i only see the colored character as output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But i need the full string as output with the formatted character colored.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jun 2009 12:36:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-a-string/m-p/5822223#M1315176</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-16T12:36:23Z</dc:date>
    </item>
    <item>
      <title>Re: Replace a string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-a-string/m-p/5822224#M1315177</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What you can do is you can read the entire string and find the position of the character you want to color... Then color it accordingly...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

 LOOP AT so_name.
      lv_len = strlen( so_name-low ).
      CLEAR lv_pos.
      WHILE lv_pos LT lv_len.
        lv_c = so_name-low+lv_pos(c_no).
        lv_pos = lv_pos +  1.
        IF c_wild CA lv_c.  &amp;lt;--- Check for your character here
set the color here 

           REFRESH so_name.
          CLEAR so_name.
          EXIT.
        ENDIF.
      ENDWHILE.
    ENDLOOP.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Amol:  Whatever you mentioned has been written earlier...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jun 2009 12:42:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-a-string/m-p/5822224#M1315177</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-16T12:42:38Z</dc:date>
    </item>
    <item>
      <title>Re: Replace a string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-a-string/m-p/5822225#M1315178</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think below code will be useful to you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;WRITE :/ w_string+0(6) COLOR COL_POSITIVE, w_string+6(1) COLOR COL_GROUP, w_string+6(27) COLOR COL_TOTAL.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Amol&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jun 2009 12:46:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-a-string/m-p/5822225#M1315178</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-16T12:46:27Z</dc:date>
    </item>
    <item>
      <title>Re: Replace a string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-a-string/m-p/5822226#M1315179</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;DATA col TYPE i VALUE 0.&lt;/P&gt;&lt;P&gt;data : string(100) type c value 'abcdefghijkl'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  col = 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  WRITE: / string+0(5).&lt;/P&gt;&lt;P&gt;  FORMAT COLOR = col.&lt;/P&gt;&lt;P&gt;   write: string+5(3).&lt;/P&gt;&lt;P&gt;  format color off.&lt;/P&gt;&lt;P&gt;  write: string+8(92).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jun 2009 12:58:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-a-string/m-p/5822226#M1315179</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-16T12:58:55Z</dc:date>
    </item>
  </channel>
</rss>

