<?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: Checking a value against a domain (with no fixed values) in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/checking-a-value-against-a-domain-with-no-fixed-values/m-p/11871474#M1959920</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Then look at a FM like OIUREP_CHECK_STRUCT_WITH_DDIC or a method like CL_CA_FACTS_TOOLS-&amp;gt;CHECK_FIELD to build your own logic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raymond&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 04 Oct 2016 14:10:32 GMT</pubDate>
    <dc:creator>RaymondGiuseppi</dc:creator>
    <dc:date>2016-10-04T14:10:32Z</dc:date>
    <item>
      <title>Checking a value against a domain (with no fixed values)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/checking-a-value-against-a-domain-with-no-fixed-values/m-p/11871470#M1959916</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to validate a value against an existing domain (without fixed values).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; value&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = '99'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; tabname&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = 'MARA'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fieldname&amp;nbsp;&amp;nbsp;&amp;nbsp; = 'SPART'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; domain&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = 'SPART'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to check if the value '99' is a suitable entry for the field MARA-SPART with the domain SPART. The domain has no check table or value table. The domain has datatype char 2. So '99' would be valid, but 'ABC' would not be valid because it's too long.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I already found and tried several function modules, but they all seem to work for domains with fixed values only. For example 'FM_DOMAINVALUE_CHECK' works fine, but if I use it with a domain that has no fixed values, I always get an exception 'input error'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So my question is: is there something similar for domains that have no fixed values? A function module where I can use tabname+fieldname or domain as input aswell as the value would be great.&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;Sebastian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Oct 2016 11:43:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/checking-a-value-against-a-domain-with-no-fixed-values/m-p/11871470#M1959916</guid>
      <dc:creator>former_member828817</dc:creator>
      <dc:date>2016-10-04T11:43:58Z</dc:date>
    </item>
    <item>
      <title>Re: Checking a value against a domain (with no fixed values)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/checking-a-value-against-a-domain-with-no-fixed-values/m-p/11871471#M1959917</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;You can create a Check table. And assign values over-there.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Niraj Sinha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Oct 2016 12:06:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/checking-a-value-against-a-domain-with-no-fixed-values/m-p/11871471#M1959917</guid>
      <dc:creator>niraj_sinha4</dc:creator>
      <dc:date>2016-10-04T12:06:10Z</dc:date>
    </item>
    <item>
      <title>Re: Checking a value against a domain (with no fixed values)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/checking-a-value-against-a-domain-with-no-fixed-values/m-p/11871472#M1959918</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SPART as already a value table, it's TSPA. Did you try a generic FM like DDUT_INPUT_CHECK?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raymond&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Oct 2016 12:35:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/checking-a-value-against-a-domain-with-no-fixed-values/m-p/11871472#M1959918</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2016-10-04T12:35:02Z</dc:date>
    </item>
    <item>
      <title>Re: Checking a value against a domain (with no fixed values)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/checking-a-value-against-a-domain-with-no-fixed-values/m-p/11871473#M1959919</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Raymond,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you for that hint. Unfortunately, my example with MARA and SPART was not very good.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried FM DDUT_INPUT_CHECK. Like the other FMs that I tested, it only gives correct error messages for domains with check tables or value tables.&lt;/P&gt;&lt;P&gt;One problem with this FM is that it doesn't care about the length. When I have a domain like STFAK that has the data type INT2 (5 places) and I use value = '123456' it doesn't complain. I know how I can check if the length is ok, but I would like to avoid doing that seperately.&lt;/P&gt;&lt;P&gt;Another problem: it doesn't complain about value = 'ABD' either, although that is not even a number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Sebastian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Oct 2016 13:24:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/checking-a-value-against-a-domain-with-no-fixed-values/m-p/11871473#M1959919</guid>
      <dc:creator>former_member828817</dc:creator>
      <dc:date>2016-10-04T13:24:51Z</dc:date>
    </item>
    <item>
      <title>Re: Checking a value against a domain (with no fixed values)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/checking-a-value-against-a-domain-with-no-fixed-values/m-p/11871474#M1959920</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Then look at a FM like OIUREP_CHECK_STRUCT_WITH_DDIC or a method like CL_CA_FACTS_TOOLS-&amp;gt;CHECK_FIELD to build your own logic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raymond&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Oct 2016 14:10:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/checking-a-value-against-a-domain-with-no-fixed-values/m-p/11871474#M1959920</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2016-10-04T14:10:32Z</dc:date>
    </item>
  </channel>
</rss>

