<?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: function module on string in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-on-string/m-p/2464707#M553308</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kanti&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You don't need a function module.&lt;/P&gt;&lt;P&gt;You can do this by using the following statement:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if var1 ca '0123456789'.&lt;/P&gt;&lt;P&gt; ...&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;CA&amp;lt;/b&amp;gt; Contains Any: True, if operand1 contains at least one character from operand2. Upper/lower case and trailing blanks are taken into account for both operands. If operand1 or operand2 is of type string and initial, the logical expression is always false. If result of the comparison is positive, sy-fdpos contains the offset of the first character in operand1 that is also contained in operand2. If the result of the comparison is negative, sy-fdpos contains the length of operand1. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 22 Jun 2007 07:33:30 GMT</pubDate>
    <dc:creator>Faaiez</dc:creator>
    <dc:date>2007-06-22T07:33:30Z</dc:date>
    <item>
      <title>function module on string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-on-string/m-p/2464705#M553306</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 a parameter (var1) which is declared as String .now i want a function module which will not allow any other datatype otherthan number (type N) to be entered in that variable.is there any function module like that?would appreciate if u help me.&lt;/P&gt;&lt;P&gt;thanks and regards,&lt;/P&gt;&lt;P&gt;kanti&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jun 2007 07:27:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-on-string/m-p/2464705#M553306</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-22T07:27:38Z</dc:date>
    </item>
    <item>
      <title>Re: function module on string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-on-string/m-p/2464706#M553307</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think this should be done as validation after input only. But, no matter what data you enter, since it will be compatible with String type, ti will not throw an error. You can do this validation for other data types maybe, but I doubt if it will work on a string.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jun 2007 07:30:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-on-string/m-p/2464706#M553307</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-22T07:30:26Z</dc:date>
    </item>
    <item>
      <title>Re: function module on string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-on-string/m-p/2464707#M553308</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kanti&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You don't need a function module.&lt;/P&gt;&lt;P&gt;You can do this by using the following statement:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if var1 ca '0123456789'.&lt;/P&gt;&lt;P&gt; ...&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;CA&amp;lt;/b&amp;gt; Contains Any: True, if operand1 contains at least one character from operand2. Upper/lower case and trailing blanks are taken into account for both operands. If operand1 or operand2 is of type string and initial, the logical expression is always false. If result of the comparison is positive, sy-fdpos contains the offset of the first character in operand1 that is also contained in operand2. If the result of the comparison is negative, sy-fdpos contains the length of operand1. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jun 2007 07:33:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-on-string/m-p/2464707#M553308</guid>
      <dc:creator>Faaiez</dc:creator>
      <dc:date>2007-06-22T07:33:30Z</dc:date>
    </item>
    <item>
      <title>Re: function module on string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-on-string/m-p/2464708#M553309</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kanti,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Take help from this code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data : Str_num TYPE string.&lt;/P&gt;&lt;P&gt;str_num = ' 0123456789'.&lt;/P&gt;&lt;P&gt;IF  number CO str_mob.&lt;/P&gt;&lt;P&gt;    .......................&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;          Eroor Message.................&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sandeep kaushik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jun 2007 07:37:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-on-string/m-p/2464708#M553309</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-22T07:37:44Z</dc:date>
    </item>
  </channel>
</rss>

