<?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: Generic value check in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/generic-value-check/m-p/1393214#M190868</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Nicolas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ABAP isn't type safe to domain value references if the data type referres to CHAR. Only a dynpro with user interaction will throw an error message on an illegal input.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are function modules to retrieve the allowed values, e.g. DOMAIN_VALUES_GET. You have to implemented such restriction by yourself.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best wishes,&lt;/P&gt;&lt;P&gt;Florin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 22 Jun 2006 21:45:15 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-06-22T21:45:15Z</dc:date>
    <item>
      <title>Generic value check</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/generic-value-check/m-p/1393213#M190867</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 want to implement a generic value check. I have a table of name/value pairs (all chars) and I know, of which DDIC type the field is. So during runtime I do the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;assign value to &amp;lt;value&amp;gt; casting type (rollname).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The thing is, that the assign doesn't throw any error, though the value is illegal for the DDIC type. I tested it with a date like '200612ab'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, the question is, is there any way to perform a value check, or do I have to implement that one of my own?&lt;/P&gt;&lt;P&gt;(I searched for cl_abap* classes, but couldn't find any proper).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thx!&lt;/P&gt;&lt;P&gt;Nick&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Jun 2006 15:19:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/generic-value-check/m-p/1393213#M190867</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-21T15:19:43Z</dc:date>
    </item>
    <item>
      <title>Re: Generic value check</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/generic-value-check/m-p/1393214#M190868</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Nicolas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ABAP isn't type safe to domain value references if the data type referres to CHAR. Only a dynpro with user interaction will throw an error message on an illegal input.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are function modules to retrieve the allowed values, e.g. DOMAIN_VALUES_GET. You have to implemented such restriction by yourself.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best wishes,&lt;/P&gt;&lt;P&gt;Florin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jun 2006 21:45:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/generic-value-check/m-p/1393214#M190868</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-22T21:45:15Z</dc:date>
    </item>
  </channel>
</rss>

