<?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 getting  the char length in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-the-char-length/m-p/1814537#M348930</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I´m working with type C, and I wonder how can I get, in my program, the length of a variable or a parameter declarated like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETER: chain(10).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know that its lenght is 10 (max) but I would like to know if there is a way in ABAP  to get it dynamically, I mean, in the program. &lt;/P&gt;&lt;P&gt;Thank you very much.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reyes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 15 Jan 2007 10:40:09 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-01-15T10:40:09Z</dc:date>
    <item>
      <title>getting  the char length</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-the-char-length/m-p/1814537#M348930</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I´m working with type C, and I wonder how can I get, in my program, the length of a variable or a parameter declarated like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETER: chain(10).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know that its lenght is 10 (max) but I would like to know if there is a way in ABAP  to get it dynamically, I mean, in the program. &lt;/P&gt;&lt;P&gt;Thank you very much.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reyes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Jan 2007 10:40:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-the-char-length/m-p/1814537#M348930</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-15T10:40:09Z</dc:date>
    </item>
    <item>
      <title>Re: getting  the char length</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-the-char-length/m-p/1814538#M348931</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use describe statement as follows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: n type i.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;describe field chain length n.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you want exact length of the content in chain.&lt;/P&gt;&lt;P&gt;then use strlen().&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regds,&lt;/P&gt;&lt;P&gt;kiran&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Jan 2007 10:43:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-the-char-length/m-p/1814538#M348931</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-15T10:43:16Z</dc:date>
    </item>
    <item>
      <title>Re: getting  the char length</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-the-char-length/m-p/1814539#M348932</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;USE &amp;lt;b&amp;gt;STRLEN&amp;lt;/b&amp;gt; OPTION&lt;/P&gt;&lt;P&gt;DATA: CHAIN(10) TYPE C  VALUE 'ABCDEFGHIJ'. &lt;/P&gt;&lt;P&gt;DATA : LEN TYPE I.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LEN = STRLEN( CHAIN ).&lt;/P&gt;&lt;P&gt;WRITE:/ 'length of chain is', LEN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Jan 2007 10:43:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-the-char-length/m-p/1814539#M348932</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-15T10:43:44Z</dc:date>
    </item>
    <item>
      <title>Re: getting  the char length</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-the-char-length/m-p/1814540#M348933</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Reyes,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check this option: &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data len type i.
     i = STRLEN( chain ).&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;hope this helps,&lt;/P&gt;&lt;P&gt;Sajan Joseph.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Jan 2007 10:44:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-the-char-length/m-p/1814540#M348933</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-15T10:44:32Z</dc:date>
    </item>
    <item>
      <title>Re: getting  the char length</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-the-char-length/m-p/1814541#M348934</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;say ur field has 'ABAP'.&lt;/P&gt;&lt;P&gt;now, V1 = strlen( chain ).&lt;/P&gt;&lt;P&gt;so, V1 returns 4.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Jan 2007 10:56:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-the-char-length/m-p/1814541#M348934</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-15T10:56:52Z</dc:date>
    </item>
  </channel>
</rss>

