<?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 domain fixed values in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/checking-domain-fixed-values/m-p/5320159#M1226271</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;Use the table DD07T as it contans the values and text for fixed values in a domain.&lt;/P&gt;&lt;P&gt;In the PAI processing simple select from the table DD07T sa if it is a textbox with name txt1&lt;/P&gt;&lt;P&gt;select single domvalue_l into var1 where domname = &amp;lt;domain name&amp;gt; and ddlanguage = sy-langu and domvalue_l = txt1.&lt;/P&gt;&lt;P&gt;if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;error message.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sachin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 12 Mar 2009 11:09:06 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-03-12T11:09:06Z</dc:date>
    <item>
      <title>Checking domain fixed values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/checking-domain-fixed-values/m-p/5320155#M1226267</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a screen field in a dynpro where the domain has a fixed value range. The values shows up in the F4 help, but I can't figure out the best way to validate it in the PAI short of hardcoding, which I'd like to avoid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Take for example a domain with possible values 'A', 'B', 'C', '1', '2' or '3'. These values pull through to the search help but I also need to validate manual user input against this list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I understand the DDIC attribute for a screen element can do this, but that's not an option in this case as the name of the field does not match the name of a dictionary field. Any other suggestions?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Mar 2009 09:43:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/checking-domain-fixed-values/m-p/5320155#M1226267</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-12T09:43:12Z</dc:date>
    </item>
    <item>
      <title>Re: Checking domain fixed values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/checking-domain-fixed-values/m-p/5320156#M1226268</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;After input, retrieve the value from the input field and use FM SXMB_CHECK_DOMAIN_VALUES.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Mar 2009 09:54:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/checking-domain-fixed-values/m-p/5320156#M1226268</guid>
      <dc:creator>Sm1tje</dc:creator>
      <dc:date>2009-03-12T09:54:33Z</dc:date>
    </item>
    <item>
      <title>Re: Checking domain fixed values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/checking-domain-fixed-values/m-p/5320157#M1226269</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;           May be you can check using the table as below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT DOMVALUE_L DDTEXT FROM DD07T INTO TABLE LIST&lt;/P&gt;&lt;P&gt;                       WHERE DOMNAME =  &amp;lt;domain name&amp;gt;&lt;/P&gt;&lt;P&gt;                       AND  DDLANGUAGE = SY-LANGU.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this is useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Krishna.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Mar 2009 10:40:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/checking-domain-fixed-values/m-p/5320157#M1226269</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-12T10:40:11Z</dc:date>
    </item>
    <item>
      <title>Re: Checking domain fixed values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/checking-domain-fixed-values/m-p/5320158#M1226270</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; I have a screen field in a dynpro where the domain has a fixed value range. The values shows up in the F4 help, but I can't figure out the best way to validate it in the PAI short of hardcoding, which I'd like to avoid.&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; Take for example a domain with possible values 'A', 'B', 'C', '1', '2' or '3'. These values pull through to the search help but I also need to validate manual user input against this list.&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; I understand the DDIC attribute for a screen element can do this, but that's not an option in this case as the name of the field does not match the name of a dictionary field. Any other suggestions?&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; Thanks&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;If this field should only contain values from the domain fixed value range, why don't you make it into a drop down listbox field?  This would make manual input impossible and all they can do is select values from the drop down list.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Mar 2009 11:05:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/checking-domain-fixed-values/m-p/5320158#M1226270</guid>
      <dc:creator>christine_evans</dc:creator>
      <dc:date>2009-03-12T11:05:28Z</dc:date>
    </item>
    <item>
      <title>Re: Checking domain fixed values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/checking-domain-fixed-values/m-p/5320159#M1226271</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;Use the table DD07T as it contans the values and text for fixed values in a domain.&lt;/P&gt;&lt;P&gt;In the PAI processing simple select from the table DD07T sa if it is a textbox with name txt1&lt;/P&gt;&lt;P&gt;select single domvalue_l into var1 where domname = &amp;lt;domain name&amp;gt; and ddlanguage = sy-langu and domvalue_l = txt1.&lt;/P&gt;&lt;P&gt;if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;error message.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sachin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Mar 2009 11:09:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/checking-domain-fixed-values/m-p/5320159#M1226271</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-12T11:09:06Z</dc:date>
    </item>
    <item>
      <title>Re: Checking domain fixed values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/checking-domain-fixed-values/m-p/5320160#M1226272</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Chris,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create the range for these values and check if not fields in the range then throw the error enter valid fields.Based on these you can validate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sravanthi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Mar 2009 08:42:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/checking-domain-fixed-values/m-p/5320160#M1226272</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-16T08:42:26Z</dc:date>
    </item>
  </channel>
</rss>

