<?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 Finding Specific Text within a string in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/finding-specific-text-within-a-string/m-p/3187387#M759126</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have an internal table with a comments field defined as a string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;An example of the contents could be :-&lt;/P&gt;&lt;P&gt;Sickness Insurance; Payment fund; Compensation&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;Payment fund; Compensation; Medical Cover&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I am trying to do, is when looping through the internal table, if Payment Fund exists anywhere within the string, I need to remove the words 'Payment Funds' from the string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this makes sense.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 13 Dec 2007 11:46:14 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-12-13T11:46:14Z</dc:date>
    <item>
      <title>Finding Specific Text within a string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/finding-specific-text-within-a-string/m-p/3187387#M759126</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have an internal table with a comments field defined as a string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;An example of the contents could be :-&lt;/P&gt;&lt;P&gt;Sickness Insurance; Payment fund; Compensation&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;Payment fund; Compensation; Medical Cover&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I am trying to do, is when looping through the internal table, if Payment Fund exists anywhere within the string, I need to remove the words 'Payment Funds' from the string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this makes sense.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Dec 2007 11:46:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/finding-specific-text-within-a-string/m-p/3187387#M759126</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-13T11:46:14Z</dc:date>
    </item>
    <item>
      <title>Re: Finding Specific Text within a string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/finding-specific-text-within-a-string/m-p/3187388#M759127</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;loop at itab.&lt;/P&gt;&lt;P&gt;replace all occurances of 'Payment fund' in itab-string with space ignoring case.&lt;/P&gt;&lt;P&gt;condense itab-string.&lt;/P&gt;&lt;P&gt;modify itab index sy-tabix.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;hope that make sense&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Dec 2007 11:50:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/finding-specific-text-within-a-string/m-p/3187388#M759127</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-13T11:50:49Z</dc:date>
    </item>
    <item>
      <title>Re: Finding Specific Text within a string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/finding-specific-text-within-a-string/m-p/3187389#M759128</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;One solution can be :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loop at itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if itab-field1 CS 'Payment Fund'.&lt;/P&gt;&lt;P&gt;replace 'Payment Funds' by space.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endloop,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this would be helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Lalit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Dec 2007 11:50:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/finding-specific-text-within-a-string/m-p/3187389#M759128</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-13T11:50:54Z</dc:date>
    </item>
    <item>
      <title>Re: Finding Specific Text within a string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/finding-specific-text-within-a-string/m-p/3187390#M759129</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;wk_val =  'Payment fund;'  &amp;lt;--"include semi-colon here&lt;/P&gt;&lt;P&gt;wk_val1 =  'Sickness Insurance;'  &amp;lt;--"include semi-colon here&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;guess your words in the fields are seperated by semi-colons&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if itab-fields CS wk_val..&lt;/P&gt;&lt;P&gt;replace all occurences of wk_val in itab-fields with space.&lt;/P&gt;&lt;P&gt;condense itab-fields .&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if itab-fields CS wk_val1..&lt;/P&gt;&lt;P&gt;replace all occurences of wk_val in itab-fields with space.&lt;/P&gt;&lt;P&gt;condense itab-fields .&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;same way check for other strings.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;before endloop modify the itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;code this using modularization techniques !!!!&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, 13 Dec 2007 11:53:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/finding-specific-text-within-a-string/m-p/3187390#M759129</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2007-12-13T11:53:19Z</dc:date>
    </item>
    <item>
      <title>Re: Finding Specific Text within a string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/finding-specific-text-within-a-string/m-p/3187391#M759130</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try this...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA : BEGIN OF itab OCCURS 0,
text TYPE string ,
END OF itab.
DATA : substr TYPE string VALUE 'Payment fund;'.

itab-text = 'Sickness Insurance; Payment fund; Compensation;'.
APPEND itab.

LOOP AT itab.
  REPLACE ALL OCCURRENCES OF  substr
    IN itab-text
    WITH space.
  WRITE itab-text.
ENDLOOP.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Dec 2007 11:59:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/finding-specific-text-within-a-string/m-p/3187391#M759130</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-13T11:59:49Z</dc:date>
    </item>
  </channel>
</rss>

