<?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: Performance optimization of a string operation in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-optimization-of-a-string-operation/m-p/1665754#M294721</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I have found out the solution .&lt;/P&gt;&lt;P&gt;It wud be enough if we use CN.&lt;/P&gt;&lt;P&gt;Thanks  a lot for your suggestions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 14 Nov 2006 08:19:04 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-11-14T08:19:04Z</dc:date>
    <item>
      <title>Performance optimization of a string operation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-optimization-of-a-string-operation/m-p/1665747#M294714</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;We have a project requirement of giving an error message if a string has characters other then the ones valid.&lt;/P&gt;&lt;P&gt;Scenario is :&lt;/P&gt;&lt;P&gt; wf_ex field can have characters from alphabets,digits and underscroe and if t has characters other than the ones specified we hav to give an error message &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At present  we are finding  the length of the variable and &lt;/P&gt;&lt;P&gt; we are looping for the number of times of length of the var and chking out if  each char is ther in the allowed set of values.&lt;/P&gt;&lt;P&gt;But there is a performance problem in this .Any suggestion in this regardis highly appreciable.&lt;/P&gt;&lt;P&gt;We need to find out if the varirable has any other charcters other than the one specified.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Its very urgent.&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Rajashree&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Nov 2006 04:07:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-optimization-of-a-string-operation/m-p/1665747#M294714</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-14T04:07:43Z</dc:date>
    </item>
    <item>
      <title>Re: Performance optimization of a string operation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-optimization-of-a-string-operation/m-p/1665748#M294715</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;    One simple way is this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: var  type string.&lt;/P&gt;&lt;P&gt;CONSTANTS: const type string value 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_'.&lt;/P&gt;&lt;P&gt;if var CO const.&lt;/P&gt;&lt;P&gt;*This is valid&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;invalid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sesh&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Nov 2006 04:20:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-optimization-of-a-string-operation/m-p/1665748#M294715</guid>
      <dc:creator>seshatalpasai_madala</dc:creator>
      <dc:date>2006-11-14T04:20:25Z</dc:date>
    </item>
    <item>
      <title>Re: Performance optimization of a string operation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-optimization-of-a-string-operation/m-p/1665749#M294716</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;We have already doen this but it's not working  is ther any other way of doing this.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rajashree&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Nov 2006 06:21:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-optimization-of-a-string-operation/m-p/1665749#M294716</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-14T06:21:08Z</dc:date>
    </item>
    <item>
      <title>Re: Performance optimization of a string operation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-optimization-of-a-string-operation/m-p/1665750#M294717</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: str(100) type c.&lt;/P&gt;&lt;P&gt;data: str_n type string.&lt;/P&gt;&lt;P&gt;data: str_c type string.&lt;/P&gt;&lt;P&gt;data: str_d type string.&lt;/P&gt;&lt;P&gt;data: str_p type string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: len1 type i.&lt;/P&gt;&lt;P&gt;data: ofst1 type i.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;str = '#ABCD%123'.&lt;/P&gt;&lt;P&gt;len1 = strlen( str ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  if ofst1 = len1.&lt;/P&gt;&lt;P&gt;    exit.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  if str+ofst1(1) co sy-abcde  .&lt;/P&gt;&lt;P&gt;      concatenate str_c str+ofst1(1) into str_c.&lt;/P&gt;&lt;P&gt;  elseif str+ofst1(1) co '0123456789'  .&lt;/P&gt;&lt;P&gt;    concatenate str_p str+ofst1(1) into str_p.&lt;/P&gt;&lt;P&gt;    else.&lt;/P&gt;&lt;P&gt;    concatenate str_d str+ofst1(1) into str_d.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ofst1 = ofst1 + 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;enddo.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Nov 2006 06:23:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-optimization-of-a-string-operation/m-p/1665750#M294717</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-14T06:23:58Z</dc:date>
    </item>
    <item>
      <title>Re: Performance optimization of a string operation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-optimization-of-a-string-operation/m-p/1665751#M294718</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;We are using this currently ,we need a way such that it can be done in one shot as loop or do would create performance issues.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rajashree&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Nov 2006 06:31:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-optimization-of-a-string-operation/m-p/1665751#M294718</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-14T06:31:27Z</dc:date>
    </item>
    <item>
      <title>Re: Performance optimization of a string operation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-optimization-of-a-string-operation/m-p/1665752#M294719</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rajashree,&lt;/P&gt;&lt;P&gt;Try With these FM's.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CLHU_FIND_STRING_IN_TABLE
CPWBBROWSER_SEARCH_FOR_STRING
FC_GET_SEARCH_STRING
STRING_FIND_WORD_FUZZY
G_BOOL_TABLE_CHECK_STRING
CHECK_STRING_ALPHA_SUCCESSOR
CHECK_STRING_DIGIT_SUCCESSOR
CHECK_STRING_SUCCESSOR
CHECK_STRING_SPEC_CHARACTERS
SCP_CHECK_CHARSET_OF_STRING
SF_STRING_CHECK
STRING_COMPARE_FUZZY
SWA_STRING_FIND_ALL
SWF_TASKS_OF_SEARCHSTRING_GET
SD_SOURCE_SEARCH_FOR_STRING
POSED_SEARCH_STRING
POSED_SEARCH_STRING_WPUBON&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raghav&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Nov 2006 06:31:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-optimization-of-a-string-operation/m-p/1665752#M294719</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-14T06:31:27Z</dc:date>
    </item>
    <item>
      <title>Re: Performance optimization of a string operation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-optimization-of-a-string-operation/m-p/1665753#M294720</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;DATA: var type string.&lt;/P&gt;&lt;P&gt;CONSTANTS: const type string value 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_'.&lt;/P&gt;&lt;P&gt;if var CO const.&lt;/P&gt;&lt;P&gt;*This is valid&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;invalid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Modify the above example as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONSTANTS: const type string value 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_ '.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SPACE is there after '_' and try&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;otherwise try this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;len = strlen( var ).&lt;/P&gt;&lt;P&gt;if var+0(len) CO const.&lt;/P&gt;&lt;P&gt;*valid&lt;/P&gt;&lt;P&gt;else&lt;/P&gt;&lt;P&gt;*invalid&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Nov 2006 07:42:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-optimization-of-a-string-operation/m-p/1665753#M294720</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-14T07:42:31Z</dc:date>
    </item>
    <item>
      <title>Re: Performance optimization of a string operation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-optimization-of-a-string-operation/m-p/1665754#M294721</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I have found out the solution .&lt;/P&gt;&lt;P&gt;It wud be enough if we use CN.&lt;/P&gt;&lt;P&gt;Thanks  a lot for your suggestions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Nov 2006 08:19:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-optimization-of-a-string-operation/m-p/1665754#M294721</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-14T08:19:04Z</dc:date>
    </item>
  </channel>
</rss>

