<?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: CONTAINS STRING in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/contains-string/m-p/2118899#M443845</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;DATA: BEGIN OF ITAB OCCURS 0,&lt;/P&gt;&lt;P&gt;        STATUS(4),&lt;/P&gt;&lt;P&gt;      END OF ITAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: WA(50) VALUE 'CRTD MSPT REL'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SPLIT WA AT SPACE INTO TABLE ITAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT ITAB WHERE STATUS = 'REL'.&lt;/P&gt;&lt;P&gt;  EXIT.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;IF SY-SUBRC = 0. WRITE 'OK'. ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 29 Mar 2007 11:41:13 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-03-29T11:41:13Z</dc:date>
    <item>
      <title>CONTAINS STRING</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/contains-string/m-p/2118892#M443838</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi friends,&lt;/P&gt;&lt;P&gt;i have one urgent issue.&lt;/P&gt;&lt;P&gt;in my internal table, i hav one field status with value 'PREL'.&lt;/P&gt;&lt;P&gt;i have one more record with status value 'REL'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so, the problem here is - when i want to display the record containing value 'REL',&lt;/P&gt;&lt;P&gt;the record with value 'PREL' is also getting picked up.&lt;/P&gt;&lt;P&gt;here, all the other records with statuses 'CRTD', 'MSPT' are getting deleted.&lt;/P&gt;&lt;P&gt;the code i'm using is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;delete t_final where status ns l_status.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please suggest me some solution for this..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;An early reply could be of great help and deserve great reward.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Praveen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Mar 2007 11:16:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/contains-string/m-p/2118892#M443838</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-29T11:16:45Z</dc:date>
    </item>
    <item>
      <title>Re: CONTAINS STRING</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/contains-string/m-p/2118893#M443839</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:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS: P(4).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: STRING(3) VALUE 'REL'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF P CS STRING. WRITE P. ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Mar 2007 11:23:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/contains-string/m-p/2118893#M443839</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-29T11:23:14Z</dc:date>
    </item>
    <item>
      <title>Re: CONTAINS STRING</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/contains-string/m-p/2118894#M443840</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use CS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CS (Contains String): &lt;/P&gt;&lt;P&gt;c1 contains the character string c2. &lt;/P&gt;&lt;P&gt;Trailing blanks in c1 and c2 are ignored if the respective field is of type C. &lt;/P&gt;&lt;P&gt;An empty string c2 (i.e., only blanks with type C, or empty string with type STRING) is included in any string c1, including the empty string itself. On the other hand, there is no non-empty string c2 included in an empty string c1. &lt;/P&gt;&lt;P&gt;If the result of the comparison is positive, the system field SY-FDPOS contains the offset of the first character of c2 in c1. &lt;/P&gt;&lt;P&gt;If the result of the comparison is negative, the system field SY-FDPOS contains the length of c1. &lt;/P&gt;&lt;P&gt;The comparison is not case-sensitive.&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;Hans&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please reward all helpful answers !!!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Mar 2007 11:23:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/contains-string/m-p/2118894#M443840</guid>
      <dc:creator>h_senden2</dc:creator>
      <dc:date>2007-03-29T11:23:20Z</dc:date>
    </item>
    <item>
      <title>Re: CONTAINS STRING</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/contains-string/m-p/2118895#M443841</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;    if it's only that u have to draw a line between PREL and REL..then u could do something like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;just add a field value in your itab...set flag for all the records with status PREL..and then change your del condition as below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data val(1) value 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODIFY t_final TRANSPORTING val where status eq 'PREL'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;delete t_final where status ns l_status and val ne 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if helpful, reward&lt;/P&gt;&lt;P&gt;Sathish. R&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Sathish R&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Mar 2007 11:25:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/contains-string/m-p/2118895#M443841</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-29T11:25:15Z</dc:date>
    </item>
    <item>
      <title>Re: CONTAINS STRING</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/contains-string/m-p/2118896#M443842</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;actually its not just 'REL' or 'PREL'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;its like 1. CRTD MSPT REL. &lt;/P&gt;&lt;P&gt;          2. DLV TECO PREL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in these records i need to delete the 2nd record.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope you got it right now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks, &lt;/P&gt;&lt;P&gt;Praveen.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Mar 2007 11:31:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/contains-string/m-p/2118896#M443842</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-29T11:31:28Z</dc:date>
    </item>
    <item>
      <title>Re: CONTAINS STRING</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/contains-string/m-p/2118897#M443843</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;   u want to delete the 2nd record, right? then, just change the status to REL&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODIFY t_final TRANSPORTING val where status eq 'REL'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;delete t_final where status ns l_status and val ne 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if helpful, reward&lt;/P&gt;&lt;P&gt;Sathish. R&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Mar 2007 11:35:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/contains-string/m-p/2118897#M443843</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-29T11:35:52Z</dc:date>
    </item>
    <item>
      <title>Re: CONTAINS STRING</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/contains-string/m-p/2118898#M443844</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;In ur code write NP instead of NS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check n reply if it works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Neha Bansal.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Mar 2007 11:39:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/contains-string/m-p/2118898#M443844</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-29T11:39:03Z</dc:date>
    </item>
    <item>
      <title>Re: CONTAINS STRING</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/contains-string/m-p/2118899#M443845</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;DATA: BEGIN OF ITAB OCCURS 0,&lt;/P&gt;&lt;P&gt;        STATUS(4),&lt;/P&gt;&lt;P&gt;      END OF ITAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: WA(50) VALUE 'CRTD MSPT REL'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SPLIT WA AT SPACE INTO TABLE ITAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT ITAB WHERE STATUS = 'REL'.&lt;/P&gt;&lt;P&gt;  EXIT.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;IF SY-SUBRC = 0. WRITE 'OK'. ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Mar 2007 11:41:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/contains-string/m-p/2118899#M443845</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-29T11:41:13Z</dc:date>
    </item>
    <item>
      <title>Re: CONTAINS STRING</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/contains-string/m-p/2118900#M443846</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi friends,&lt;/P&gt;&lt;P&gt;really thanks for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max - i have followed your logic of course not the entire idea but copying it into one ITAB and using it as per my requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot friends,&lt;/P&gt;&lt;P&gt;Praveen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Mar 2007 13:17:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/contains-string/m-p/2118900#M443846</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-29T13:17:33Z</dc:date>
    </item>
  </channel>
</rss>

