<?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: Create data type T error in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-data-type-t-error/m-p/8185746#M1624734</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Suhas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Assume that i have &amp;lt;lv_field_type&amp;gt; that is type any and are getting every time different type ,and i want to use the STRLEN ,&lt;/P&gt;&lt;P&gt;how can analyze in order to prevent dump. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Joy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 08 Sep 2011 12:32:27 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-09-08T12:32:27Z</dc:date>
    <item>
      <title>Create data type T error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-data-type-t-error/m-p/8185744#M1624732</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;&lt;/P&gt;&lt;P&gt;I am trying to create data type time and I have error,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the value is  ls_abap_field_desc-type = T&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can i overcome this issue,and what I doing wrong ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CREATE DATA lv_field_type TYPE (ls_abap_field_desc-type) LENGTH  ls_prop-length.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Joy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Sep 2011 07:22:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-data-type-t-error/m-p/8185744#M1624732</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-09-08T07:22:44Z</dc:date>
    </item>
    <item>
      <title>Re: Create data type T error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-data-type-t-error/m-p/8185745#M1624733</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Joy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You're getting this error because of the 'T' data type. You cannot use LENGTH addition with 'T' ABAP type, it can be used for C,N,P &amp;amp; X types only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Sep 2011 08:20:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-data-type-t-error/m-p/8185745#M1624733</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2011-09-08T08:20:52Z</dc:date>
    </item>
    <item>
      <title>Re: Create data type T error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-data-type-t-error/m-p/8185746#M1624734</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Suhas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Assume that i have &amp;lt;lv_field_type&amp;gt; that is type any and are getting every time different type ,and i want to use the STRLEN ,&lt;/P&gt;&lt;P&gt;how can analyze in order to prevent dump. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Joy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Sep 2011 12:32:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-data-type-t-error/m-p/8185746#M1624734</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-09-08T12:32:27Z</dc:date>
    </item>
    <item>
      <title>Re: Create data type T error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-data-type-t-error/m-p/8185747#M1624735</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A small code snippet to help you out:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;PARAMETERS: p_type TYPE typename OBLIGATORY,
            p_len  TYPE i DEFAULT 8.

DATA: go_typedescr TYPE REF TO cl_abap_typedescr,
      gv_dref      TYPE REF TO data.

* Get the type reference of the i/p type
go_typedescr = cl_abap_typedescr=&amp;gt;describe_by_name( p_type ).

CASE go_typedescr-&amp;gt;type_kind.
  WHEN
    cl_abap_typedescr=&amp;gt;typekind_num     OR  "Numeric
    cl_abap_typedescr=&amp;gt;typekind_packed  OR  "Packed
    cl_abap_typedescr=&amp;gt;typekind_char    OR  "Character
    cl_abap_typedescr=&amp;gt;typekind_hex.        "Hex
    CREATE DATA gv_dref TYPE (go_typedescr-&amp;gt;type_kind) LENGTH p_len.
  WHEN OTHERS.
    CREATE DATA gv_dref TYPE (go_typedescr-&amp;gt;type_kind).
ENDCASE.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Sep 2011 12:50:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-data-type-t-error/m-p/8185747#M1624735</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2011-09-08T12:50:25Z</dc:date>
    </item>
    <item>
      <title>Re: Create data type T error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-data-type-t-error/m-p/8185748#M1624736</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Suhas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks you very much its help ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had another question assume i have field  with name phone and i want to ask that if phone = phone1 &lt;/P&gt;&lt;P&gt;this will work with abap true .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the phone is variable and can be any name the only difference is  the number after it and i guess that &lt;/P&gt;&lt;P&gt;Regax will help like the following but i am not sure how to use it with varibale that can be phone address &lt;/P&gt;&lt;P&gt;e.g. if address = address99 etc &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;FIND REGEX '^([[:digit:]]+)$'&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Warm Regards&lt;/P&gt;&lt;P&gt;Joy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Sep 2011 13:59:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-data-type-t-error/m-p/8185748#M1624736</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-09-08T13:59:41Z</dc:date>
    </item>
  </channel>
</rss>

