<?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: String in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/string/m-p/1012927#M79282</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 that is the case,then try this.&lt;/P&gt;&lt;P&gt;DATA: source TYPE string,&lt;/P&gt;&lt;P&gt;s_one type string,&lt;/P&gt;&lt;P&gt;s_two type string.&lt;/P&gt;&lt;P&gt;source = 'This is a /entlittle /ent* sentence.'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SPLIT source AT '/ent*' INTO s_ONE s_TWO.&lt;/P&gt;&lt;P&gt;if sy-subrc eq 0.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Here you can understand that the string is containing '/ent&lt;/STRONG&gt;' without using search&lt;/P&gt;&lt;P&gt;write s_two.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 05 Jul 2005 07:20:38 GMT</pubDate>
    <dc:creator>jayanthi_jayaraman</dc:creator>
    <dc:date>2005-07-05T07:20:38Z</dc:date>
    <item>
      <title>String</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string/m-p/1012926#M79281</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   Please help me to resolve the below issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   Let us assume the following&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     DATA: source TYPE string,&lt;/P&gt;&lt;P&gt;     source = 'This is a /entlittle /ent* sentence.'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     I just wanted to find /ent* in the above string&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     The function "search" is used for the purpose.&lt;/P&gt;&lt;P&gt;     But the problem here is, "the * in the above string is&lt;/P&gt;&lt;P&gt;considered as a wildcard character &amp;amp; not a character".&lt;/P&gt;&lt;P&gt;     So the result of sy-subrc after search is 4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     Could anyone resolve this issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Usha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jul 2005 07:11:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string/m-p/1012926#M79281</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-07-05T07:11:30Z</dc:date>
    </item>
    <item>
      <title>Re: String</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string/m-p/1012927#M79282</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 that is the case,then try this.&lt;/P&gt;&lt;P&gt;DATA: source TYPE string,&lt;/P&gt;&lt;P&gt;s_one type string,&lt;/P&gt;&lt;P&gt;s_two type string.&lt;/P&gt;&lt;P&gt;source = 'This is a /entlittle /ent* sentence.'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SPLIT source AT '/ent*' INTO s_ONE s_TWO.&lt;/P&gt;&lt;P&gt;if sy-subrc eq 0.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Here you can understand that the string is containing '/ent&lt;/STRONG&gt;' without using search&lt;/P&gt;&lt;P&gt;write s_two.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jul 2005 07:20:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string/m-p/1012927#M79282</guid>
      <dc:creator>jayanthi_jayaraman</dc:creator>
      <dc:date>2005-07-05T07:20:38Z</dc:date>
    </item>
    <item>
      <title>Re: String</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string/m-p/1012928#M79283</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi usha,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try that:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;IF source CS '/ent*'.
  found = 'X'.
ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards Andreas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jul 2005 07:25:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string/m-p/1012928#M79283</guid>
      <dc:creator>andreas_mann3</dc:creator>
      <dc:date>2005-07-05T07:25:24Z</dc:date>
    </item>
    <item>
      <title>Re: String</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string/m-p/1012929#M79284</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jayanthi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   I am using the position of search string in the other part of the code, so split doesn't help in this case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Usha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jul 2005 07:27:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string/m-p/1012929#M79284</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-07-05T07:27:09Z</dc:date>
    </item>
    <item>
      <title>Re: String</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string/m-p/1012930#M79285</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Usha,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you need the position, you can use the solution provided by Jayanthi and then something like this :&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
w_position = strlen( s_ONE ).
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;erwan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jul 2005 07:31:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string/m-p/1012930#M79285</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-07-05T07:31:08Z</dc:date>
    </item>
    <item>
      <title>Re: String</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string/m-p/1012931#M79286</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Don't forget the SY-FDPOS to know the offset when the CS had result.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jul 2005 07:33:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string/m-p/1012931#M79286</guid>
      <dc:creator>eddy_declercq</dc:creator>
      <dc:date>2005-07-05T07:33:30Z</dc:date>
    </item>
    <item>
      <title>Re: String</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string/m-p/1012932#M79287</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;As Erwan told you can use strlen .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: source TYPE string,&lt;/P&gt;&lt;P&gt;s_one type string,&lt;/P&gt;&lt;P&gt;s_two type string,&lt;/P&gt;&lt;P&gt;n type i.&lt;/P&gt;&lt;P&gt;source = 'This is a /entlittle /ent* sentence.'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SPLIT source AT '/ent*' INTO s_ONE s_TWO.&lt;/P&gt;&lt;P&gt;if sy-subrc eq 0.&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;n = strlen( s_one ).&lt;/P&gt;&lt;P&gt;write n.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If it doesn't suit your requirement,tell the exact thing you want to achieve from search.&lt;/P&gt;&lt;P&gt;Give your coding part also.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jul 2005 08:02:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string/m-p/1012932#M79287</guid>
      <dc:creator>jayanthi_jayaraman</dc:creator>
      <dc:date>2005-07-05T08:02:02Z</dc:date>
    </item>
    <item>
      <title>Re: String</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string/m-p/1012933#M79288</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can try this&lt;/P&gt;&lt;P&gt;DATA :   source(50).&lt;/P&gt;&lt;P&gt;source = 'This is a /entlittle /ent* sentence.'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF source CS '/ent*'.&lt;/P&gt;&lt;P&gt;  WRITE: sy-fdpos.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;sy-fdpos = sy-fdpos + 1.&lt;/P&gt;&lt;P&gt;WRITE:/ source+sy-fdpos(4).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Prabhu Rajesh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jul 2005 08:33:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string/m-p/1012933#M79288</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-07-05T08:33:46Z</dc:date>
    </item>
    <item>
      <title>Re: String</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string/m-p/1012934#M79289</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Prabhu / Andreas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   Thanks. The problem is resolved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Usha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jul 2005 08:47:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string/m-p/1012934#M79289</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-07-05T08:47:07Z</dc:date>
    </item>
  </channel>
</rss>

