<?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 Modifications in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/string-modifications/m-p/6682318#M1449835</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Paresh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the correct format would be,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REPLACE ALL OCCURRENCES OF REGEX '[[:punct:]]' IN v_string WITH ''.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Herwin.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Herwin Wilmet Dsouza on Feb 23, 2010 11:11 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 23 Feb 2010 10:10:25 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-02-23T10:10:25Z</dc:date>
    <item>
      <title>String Modifications</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string-modifications/m-p/6682313#M1449830</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a requirement to take first 10 characters of a string including spaces and numbers but eliminating punctuations marks.&lt;/P&gt;&lt;P&gt;So can someone please help me with the punctuation part i.e is there a way to include all punctuations or do i have to write explicitly all of them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in anticipation.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Feb 2010 09:02:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string-modifications/m-p/6682313#M1449830</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-23T09:02:53Z</dc:date>
    </item>
    <item>
      <title>Re: String Modifications</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string-modifications/m-p/6682314#M1449831</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Suppose&lt;/P&gt;&lt;P&gt;L_STR = '    123456789'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then do like this...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;L_str1 = l_str+0(10).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Feb 2010 09:07:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string-modifications/m-p/6682314#M1449831</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-23T09:07:28Z</dc:date>
    </item>
    <item>
      <title>Re: String Modifications</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string-modifications/m-p/6682315#M1449832</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First of all welcome to SDN and please read the engagement rules .. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do search before posting such basic questions &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Still i am giving you this code .. Not exactly what you want .. but i am sure you can tweak it to your requirements ..&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
REPORT zstring. 
DATA : ipstr TYPE string. 
DATA : opstr TYPE string. 
DATA : len TYPE i VALUE 0. 
DATA : ch TYPE char1. 
DATA : num TYPE i VALUE 0.   "No of Characters to be taken 
DATA : pos TYPE char3.       "Position of Char in the Input String 
*Input string 
ipstr = '&amp;lt;FT&amp;gt;&amp;lt;H&amp;gt;&amp;lt;T&amp;gt; Line Clearance &amp;lt;/&amp;gt;&amp;lt;/&amp;gt;&amp;lt;/&amp;gt;'. 
*Removing only "&amp;lt;/&amp;gt;" 
REPLACE ALL OCCURRENCES OF '&amp;lt;/&amp;gt;' IN ipstr WITH ' '. 
*Removing only "&amp;lt;" 
REPLACE ALL OCCURRENCES OF '&amp;lt;' IN ipstr WITH ' '. 
CONDENSE ipstr. 
*Length of Input String 
len = STRLEN( ipstr ). 
  DO len TIMES. 
*Char by Char 
  ch = ipstr+pos(1). 
  pos = pos + 1. 
*Scan each char in input String for "&amp;gt;" 
  FIND '&amp;gt;' IN ch IGNORING CASE. 
  IF sy-subrc = 0. 
    num = len - pos. 
*Output String 
    opstr = ipstr+pos(num). 
  ENDIF. 
ENDDO. 
  WRITE :/ opstr.   
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will help you to modify any type of strings .. in the code i have pasted it removes HTML tags .. instead of that just give the punctuation marks .. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this answer helps you &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards ..&lt;/P&gt;&lt;P&gt;Manthan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Feb 2010 09:11:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string-modifications/m-p/6682315#M1449832</guid>
      <dc:creator>manthanraja</dc:creator>
      <dc:date>2010-02-23T09:11:12Z</dc:date>
    </item>
    <item>
      <title>Re: String Modifications</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string-modifications/m-p/6682316#M1449833</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;Please see my question " I have asked do i need to explictly give all the punctuations marks or is there is some other way round".&lt;/P&gt;&lt;P&gt;Anyways thanks for ur Advise and Help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Feb 2010 09:16:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string-modifications/m-p/6682316#M1449833</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-23T09:16:59Z</dc:date>
    </item>
    <item>
      <title>Re: String Modifications</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string-modifications/m-p/6682317#M1449834</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;Which version of SAP are you in ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have Reg-ex available then you can make use of &lt;STRONG&gt;[:punct:]&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;E.g.,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REPLACE ALL OCCURENCES OF REGEX [:punct:] IN V_STRING WITH ` `.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Suhas Saha on Feb 23, 2010 3:00 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Feb 2010 09:24:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string-modifications/m-p/6682317#M1449834</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2010-02-23T09:24:46Z</dc:date>
    </item>
    <item>
      <title>Re: String Modifications</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string-modifications/m-p/6682318#M1449835</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Paresh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the correct format would be,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REPLACE ALL OCCURRENCES OF REGEX '[[:punct:]]' IN v_string WITH ''.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Herwin.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Herwin Wilmet Dsouza on Feb 23, 2010 11:11 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Feb 2010 10:10:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string-modifications/m-p/6682318#M1449835</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-23T10:10:25Z</dc:date>
    </item>
    <item>
      <title>Re: String Modifications</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string-modifications/m-p/6682319#M1449836</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Answered.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Feb 2010 10:14:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string-modifications/m-p/6682319#M1449836</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-23T10:14:53Z</dc:date>
    </item>
  </channel>
</rss>

