<?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 Data types validation help in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-types-validation-help/m-p/7424011#M1549671</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 need to create validation for this following types &lt;/P&gt;&lt;P&gt;The validation that i need to do is regard the length &lt;/P&gt;&lt;P&gt;of the type and the DEC places of it &lt;/P&gt;&lt;P&gt;I search for documntation in the help and this is what I have found&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb2fd9358411d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb2fd9358411d1829f0000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_crm/helpdata/en/fc/eb3138358411d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_crm/helpdata/en/fc/eb3138358411d1829f0000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;any idea &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The data types are &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Decimal &lt;/P&gt;&lt;P&gt;2. single &lt;/P&gt;&lt;P&gt;3. double&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Alex Dean on Oct 20, 2010 11:33 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 19 Oct 2010 09:25:25 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-10-19T09:25:25Z</dc:date>
    <item>
      <title>Data types validation help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-types-validation-help/m-p/7424011#M1549671</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 need to create validation for this following types &lt;/P&gt;&lt;P&gt;The validation that i need to do is regard the length &lt;/P&gt;&lt;P&gt;of the type and the DEC places of it &lt;/P&gt;&lt;P&gt;I search for documntation in the help and this is what I have found&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb2fd9358411d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb2fd9358411d1829f0000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_crm/helpdata/en/fc/eb3138358411d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_crm/helpdata/en/fc/eb3138358411d1829f0000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;any idea &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The data types are &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Decimal &lt;/P&gt;&lt;P&gt;2. single &lt;/P&gt;&lt;P&gt;3. double&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Alex Dean on Oct 20, 2010 11:33 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Oct 2010 09:25:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-types-validation-help/m-p/7424011#M1549671</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-19T09:25:25Z</dc:date>
    </item>
    <item>
      <title>Re: Data types validation help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-types-validation-help/m-p/7424012#M1549672</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alex,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It seems you are persistently trying to get the answer to the question which cannot be answered.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Neither &lt;EM&gt;single&lt;/EM&gt; nor &lt;EM&gt;double&lt;/EM&gt; exist in current SAP release (at least they are not defined as such). DEC on the other hand is a type which has some range. So I think you want to get info about &lt;EM&gt;data object&lt;/EM&gt; of specific type not this &lt;EM&gt;data type&lt;/EM&gt; itself. It is because for &lt;EM&gt;data type&lt;/EM&gt; the lenght is not fixed so how would the system know what you are asking for. So the below is only available&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
data gr_elemdescr type ref to cl_abap_elemedescr.
data g_my_var(10) type p decimals 4. "existing data object to be checked

gr_elemdescr ?= cl_abap_typedescr=&amp;gt;describe_by_data( g_my_var ).
write: 'Length ', gr_elemdescr-&amp;gt;length,
           'Dec places', gr_elemdescr-&amp;gt;decimals.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Marcin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Oct 2010 10:25:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-types-validation-help/m-p/7424012#M1549672</guid>
      <dc:creator>MarcinPciak</dc:creator>
      <dc:date>2010-10-20T10:25:36Z</dc:date>
    </item>
  </channel>
</rss>

