<?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: Programmatically determine the length of a variable in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/programmatically-determine-the-length-of-a-variable/m-p/1559771#M253245</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you can use the DESCRIBE FIELD statement&lt;/P&gt;&lt;P&gt;~Suresh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 11 Oct 2006 16:34:59 GMT</pubDate>
    <dc:creator>suresh_datti</dc:creator>
    <dc:date>2006-10-11T16:34:59Z</dc:date>
    <item>
      <title>Programmatically determine the length of a variable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/programmatically-determine-the-length-of-a-variable/m-p/1559770#M253244</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 a program that calls a subroutine multiple times.&lt;/P&gt;&lt;P&gt;There is a changing parameter on this subroutine e.g. f_value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sometimes when this subroutine is called the f_value value being passed in is based on CHAR60, other times CHAR40.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;StrLen() does not do this becasue this gives me how many of the 40 or 60 characters are populated within the f_value field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Within the subroutine I want to determine whether f_value is based on a CHAR40 or a CHAR60.&lt;/P&gt;&lt;P&gt;Is there a function that will allow me to determine this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many Thanks In Advance&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Oct 2006 16:32:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/programmatically-determine-the-length-of-a-variable/m-p/1559770#M253244</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-11T16:32:58Z</dc:date>
    </item>
    <item>
      <title>Re: Programmatically determine the length of a variable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/programmatically-determine-the-length-of-a-variable/m-p/1559771#M253245</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you can use the DESCRIBE FIELD statement&lt;/P&gt;&lt;P&gt;~Suresh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Oct 2006 16:34:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/programmatically-determine-the-length-of-a-variable/m-p/1559771#M253245</guid>
      <dc:creator>suresh_datti</dc:creator>
      <dc:date>2006-10-11T16:34:59Z</dc:date>
    </item>
    <item>
      <title>Re: Programmatically determine the length of a variable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/programmatically-determine-the-length-of-a-variable/m-p/1559772#M253246</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt; Make use of &amp;lt;b&amp;gt;describe&amp;lt;/b&amp;gt; field statement ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;describe field &amp;lt;fieldname&amp;gt; length v_len.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Santosh&amp;lt;b&amp;gt;&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Oct 2006 16:35:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/programmatically-determine-the-length-of-a-variable/m-p/1559772#M253246</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-11T16:35:30Z</dc:date>
    </item>
    <item>
      <title>Re: Programmatically determine the length of a variable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/programmatically-determine-the-length-of-a-variable/m-p/1559773#M253247</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;Please check out the following code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          DATA: ws_char TYPE char40.&lt;/P&gt;&lt;P&gt;          DATA: descr_ref TYPE REF TO cl_abap_typedescr.&lt;/P&gt;&lt;P&gt;          FIELD-SYMBOLS: &amp;lt;length&amp;gt; TYPE ANY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          descr_ref  ?= cl_abap_tabledescr=&amp;gt;describe_by_data( ws_char ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          ASSIGN descr_ref-&amp;gt;length TO &amp;lt;length&amp;gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Oct 2006 16:48:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/programmatically-determine-the-length-of-a-variable/m-p/1559773#M253247</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-11T16:48:20Z</dc:date>
    </item>
  </channel>
</rss>

