<?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: regarding STRLEN in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-strlen/m-p/1017541#M80381</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;STRLEN will work when you  have some value in the variable. Try putting some value in p_ltab_zlotmg .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 09 Sep 2005 03:14:03 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-09-09T03:14:03Z</dc:date>
    <item>
      <title>regarding STRLEN</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-strlen/m-p/1017540#M80380</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;DEAR GUYS.&lt;/P&gt;&lt;P&gt;ALREAYD I ASKED THIS QUESTION..but it does not worked out..before.&lt;/P&gt;&lt;P&gt;my question is here..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA p_ltab_zlotmg(30) TYPE C.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA  MYLEN TYPE I.&lt;/P&gt;&lt;P&gt;MYLEN = STRLEN( p_ltab_zlotmg ).&lt;/P&gt;&lt;P&gt;I want to check if my len of input is greater than 13 digits.&lt;/P&gt;&lt;P&gt;why its not working..it always shows 0 here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if MYLEN &amp;gt;13. &lt;/P&gt;&lt;P&gt;...error.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ALTERNATIVEly i tried this..&lt;/P&gt;&lt;P&gt;    DESCRIBE FIELD p_ltab_zlotmg LENGTH MYLEN IN CHARACTER MODE.&lt;/P&gt;&lt;P&gt;but it always gives the variable lenght size declared already..&lt;/P&gt;&lt;P&gt;could somebody clear me..&lt;/P&gt;&lt;P&gt;ambichan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Sep 2005 03:10:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-strlen/m-p/1017540#M80380</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-09T03:10:29Z</dc:date>
    </item>
    <item>
      <title>Re: regarding STRLEN</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-strlen/m-p/1017541#M80381</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;STRLEN will work when you  have some value in the variable. Try putting some value in p_ltab_zlotmg .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Sep 2005 03:14:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-strlen/m-p/1017541#M80381</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-09T03:14:03Z</dc:date>
    </item>
    <item>
      <title>Re: regarding STRLEN</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-strlen/m-p/1017542#M80382</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;U can get the defined attrubites(like length,type) using describe stmt...&lt;/P&gt;&lt;P&gt;to find the length u have to use strlen&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try this&lt;/P&gt;&lt;P&gt;DATA p_ltab_zlotmg(30) TYPE C value '12345'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA MYLEN TYPE I.&lt;/P&gt;&lt;P&gt;MYLEN = STRLEN( p_ltab_zlotmg ).&lt;/P&gt;&lt;P&gt;now u will get mylen = 5...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please close the old threads which were answered &amp;amp; still opened..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;gv&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Venkat&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Venkat&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Sep 2005 03:14:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-strlen/m-p/1017542#M80382</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-09T03:14:36Z</dc:date>
    </item>
    <item>
      <title>Re: regarding STRLEN</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-strlen/m-p/1017543#M80383</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If there is any data in p_ltab_zlotmg, then STRLEN should return you a value other than 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA p_ltab_zlotmg(30) TYPE C.
DATA mylen TYPE I.

p_ltab_zlotmg = 'ABCD'.
mylen = STRLEN( p_ltab_zlotmg ).
*-- in this case MYLEN will be 4.
p_ltab_zlotmg = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'.
*-- In this case it will be 26
if MYLEN &amp;gt;13. 
...error.
endif.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Sep 2005 03:16:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-strlen/m-p/1017543#M80383</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-09T03:16:57Z</dc:date>
    </item>
    <item>
      <title>Re: regarding STRLEN</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-strlen/m-p/1017544#M80384</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;TRY F1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;STRLEN &lt;/P&gt;&lt;P&gt;Length of a string (type STRING or XSTRING) or a character field (particularly type C) up to its last &amp;lt;b&amp;gt;non-space &amp;lt;/b&amp;gt;character (its occupied length). &lt;/P&gt;&lt;P&gt;&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, 09 Sep 2005 03:19:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-strlen/m-p/1017544#M80384</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-09T03:19:24Z</dc:date>
    </item>
    <item>
      <title>Re: regarding STRLEN</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-strlen/m-p/1017545#M80385</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;DESCRIBE just describes the attributes of the field. Since you asked for the length attribute, it will always give you 30 because that is the defined length.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the runtime occupied lenght you will use STRLEN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If answered please close the post.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Srinivas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Sep 2005 03:24:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-strlen/m-p/1017545#M80385</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-09T03:24:20Z</dc:date>
    </item>
    <item>
      <title>Re: regarding STRLEN</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-strlen/m-p/1017546#M80386</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi, please aware that the STRLEN can't calculate the length, if the field is all filled with SPACE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Sep 2005 03:25:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-strlen/m-p/1017546#M80386</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-09T03:25:01Z</dc:date>
    </item>
  </channel>
</rss>

