<?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: Character count of a string in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/character-count-of-a-string/m-p/4334643#M1032709</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;data len type i&lt;/P&gt;&lt;P&gt;data str type string value '1210000000'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;len = strlen( str ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt; len.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you want only numbers from STR you can copy the value in a type 'n' variable so it will have only the numeric characters&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the you can compare the length and if they are not same, you can know that there is a combination of letters and numbers, the length of the type 'n' variable will give you the count of numeric characters, and the difference in lengths will give you the count of characters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Priyank Jain on Aug 14, 2008 4:32 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 14 Aug 2008 08:31:48 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-08-14T08:31:48Z</dc:date>
    <item>
      <title>Character count of a string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/character-count-of-a-string/m-p/4334642#M1032708</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;I need to know wheter a variable has how many letters or composition of both letters and numbers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Assume:  var = '0200000010'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here the count is 10, I need to know this strings lenght, how can I do this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Aug 2008 08:27:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/character-count-of-a-string/m-p/4334642#M1032708</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-14T08:27:59Z</dc:date>
    </item>
    <item>
      <title>Re: Character count of a string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/character-count-of-a-string/m-p/4334643#M1032709</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;data len type i&lt;/P&gt;&lt;P&gt;data str type string value '1210000000'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;len = strlen( str ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt; len.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you want only numbers from STR you can copy the value in a type 'n' variable so it will have only the numeric characters&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the you can compare the length and if they are not same, you can know that there is a combination of letters and numbers, the length of the type 'n' variable will give you the count of numeric characters, and the difference in lengths will give you the count of characters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Priyank Jain on Aug 14, 2008 4:32 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Aug 2008 08:31:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/character-count-of-a-string/m-p/4334643#M1032709</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-14T08:31:48Z</dc:date>
    </item>
    <item>
      <title>Re: Character count of a string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/character-count-of-a-string/m-p/4334644#M1032710</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;PRE&gt;&lt;CODE&gt;DATA: var TYPE string.
var = '0200000010'.
DATA:length type i.

length = STRLEN( VAR ).

WRITE:/ 'length is', length.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Aug 2008 08:32:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/character-count-of-a-string/m-p/4334644#M1032710</guid>
      <dc:creator>former_member188829</dc:creator>
      <dc:date>2008-08-14T08:32:01Z</dc:date>
    </item>
    <item>
      <title>Re: Character count of a string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/character-count-of-a-string/m-p/4334645#M1032711</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use FM&lt;/P&gt;&lt;P&gt;DATA : ABC type STRING&lt;/P&gt;&lt;P&gt;DATA : X type i.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ABC = '90ABDC0'.&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'STRING_LENGTH'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;     STRING = ABC&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;      LENGTH = X&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WRTIE : X.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Aug 2008 08:42:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/character-count-of-a-string/m-p/4334645#M1032711</guid>
      <dc:creator>former_member585060</dc:creator>
      <dc:date>2008-08-14T08:42:05Z</dc:date>
    </item>
    <item>
      <title>Re: Character count of a string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/character-count-of-a-string/m-p/4334646#M1032712</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Deniz,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: len type i.&lt;/P&gt;&lt;P&gt;If var co '0123456789'.  "Contains only numbers&lt;/P&gt;&lt;P&gt;len = strlen( var ).&lt;/P&gt;&lt;P&gt;else. &lt;/P&gt;&lt;P&gt;condense var.  "Remove leading and trailing space characters&lt;/P&gt;&lt;P&gt;len = strlen( var ).&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;&lt;P&gt;David Cooper&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Aug 2008 08:50:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/character-count-of-a-string/m-p/4334646#M1032712</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-14T08:50:51Z</dc:date>
    </item>
  </channel>
</rss>

