<?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: Value Check for Parameters does not work in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/value-check-for-parameters-does-not-work/m-p/6494421#M1420774</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your Replies&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But, &lt;/P&gt;&lt;P&gt;1) I dont write an additionall select,because the use of Valucheck is to avoid it.&lt;/P&gt;&lt;P&gt;2) This has already the Value table.&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;Ratna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 21 Jan 2010 05:22:43 GMT</pubDate>
    <dc:creator>ratna_rajeshp</dc:creator>
    <dc:date>2010-01-21T05:22:43Z</dc:date>
    <item>
      <title>Value Check for Parameters does not work</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/value-check-for-parameters-does-not-work/m-p/6494415#M1420768</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Iam trying to use the Value Check addition for a paramter,but it does not do any validation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Parameters : p_bukrs type t001-bukrs obligatory value check.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It allows me to enter any wrong values&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any thing that i need to do in addition to this.&lt;/P&gt;&lt;P&gt;&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;Ratna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jan 2010 05:00:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/value-check-for-parameters-does-not-work/m-p/6494415#M1420768</guid>
      <dc:creator>ratna_rajeshp</dc:creator>
      <dc:date>2010-01-21T05:00:38Z</dc:date>
    </item>
    <item>
      <title>Re: Value Check for Parameters does not work</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/value-check-for-parameters-does-not-work/m-p/6494416#M1420769</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ratna.&lt;/P&gt;&lt;P&gt;You can also write a logic for the validation.&lt;/P&gt;&lt;P&gt;use select query and show error if bukrs does not exist.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;eg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tables: t001.&lt;/P&gt;&lt;P&gt;select single bukrs&lt;/P&gt;&lt;P&gt;from t001&lt;/P&gt;&lt;P&gt;into t001-bukrs.&lt;/P&gt;&lt;P&gt;if sy-subrc &amp;lt;&amp;gt; 0.     "no data exists&lt;/P&gt;&lt;P&gt;message: 'Company Code does not exist' type 'E'.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jan 2010 05:10:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/value-check-for-parameters-does-not-work/m-p/6494416#M1420769</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-21T05:10:10Z</dc:date>
    </item>
    <item>
      <title>Re: Value Check for Parameters does not work</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/value-check-for-parameters-does-not-work/m-p/6494417#M1420770</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi, try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;AT SELECTION-SCREEN.
  
IF &amp;lt;your condition not satisfied&amp;gt;.
    MESSAGE E000(ZMSG_MUSTER) .
  ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sumit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jan 2010 05:14:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/value-check-for-parameters-does-not-work/m-p/6494417#M1420770</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-21T05:14:42Z</dc:date>
    </item>
    <item>
      <title>Re: Value Check for Parameters does not work</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/value-check-for-parameters-does-not-work/m-p/6494418#M1420771</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;VALUE CHECK addition checks the input value against the fixed values  defined in the domain of the data type. And if, If the data type is a component of a foreign key table, a check against the check table is done. See if either of these exists.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jan 2010 05:14:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/value-check-for-parameters-does-not-work/m-p/6494418#M1420771</guid>
      <dc:creator>former_member206377</dc:creator>
      <dc:date>2010-01-21T05:14:53Z</dc:date>
    </item>
    <item>
      <title>Re: Value Check for Parameters does not work</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/value-check-for-parameters-does-not-work/m-p/6494419#M1420772</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ratna,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;implement at the event "AT-SELECTION-SCREN" the FM "COMPANY_CODE_READ"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
AT-SELECTION-SCREEN.
CALL FUNCTION 'COMPANY_CODE_READ'
  EXPORTING
    i_bukrs                 = pa_bukrs.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards &lt;/P&gt;&lt;P&gt;Dirk&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Dirk Altmann on Jan 21, 2010 6:19 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jan 2010 05:19:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/value-check-for-parameters-does-not-work/m-p/6494419#M1420772</guid>
      <dc:creator>DirkAltmann</dc:creator>
      <dc:date>2010-01-21T05:19:28Z</dc:date>
    </item>
    <item>
      <title>Re: Value Check for Parameters does not work</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/value-check-for-parameters-does-not-work/m-p/6494420#M1420773</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This message was moderated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jan 2010 05:20:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/value-check-for-parameters-does-not-work/m-p/6494420#M1420773</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-21T05:20:20Z</dc:date>
    </item>
    <item>
      <title>Re: Value Check for Parameters does not work</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/value-check-for-parameters-does-not-work/m-p/6494421#M1420774</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your Replies&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But, &lt;/P&gt;&lt;P&gt;1) I dont write an additionall select,because the use of Valucheck is to avoid it.&lt;/P&gt;&lt;P&gt;2) This has already the Value table.&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;Ratna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jan 2010 05:22:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/value-check-for-parameters-does-not-work/m-p/6494421#M1420774</guid>
      <dc:creator>ratna_rajeshp</dc:creator>
      <dc:date>2010-01-21T05:22:43Z</dc:date>
    </item>
    <item>
      <title>Re: Value Check for Parameters does not work</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/value-check-for-parameters-does-not-work/m-p/6494422#M1420775</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 &lt;STRONG&gt;T001D Instead of T001&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Parameters bukrs type t001d-bukrs obligatory value check

"Since t001 bukrs doesnot have foreign key established it will not do value check
 "in case of T001d-bukrs foreign key is with table T001-BUKRS so it works for you&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Ratna wrote&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;This has already the Value table.

Please note Having a Value table doesnt mean that there is a Foreign key provided it only proposes&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Cheerz&lt;/P&gt;&lt;P&gt;Ram&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jan 2010 05:25:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/value-check-for-parameters-does-not-work/m-p/6494422#M1420775</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-21T05:25:04Z</dc:date>
    </item>
    <item>
      <title>Re: Value Check for Parameters does not work</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/value-check-for-parameters-does-not-work/m-p/6494423#M1420776</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;When you use  Value Check addition for a paramter content of the input field is checked against the fixed values defined in the domain of the data type. In case data type is a component of a foreign key table, a check against the check table is executed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In case of T001-bukrs check table is same table T001.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you will test same for Parameters : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;p_MANDT type t001-MANDT obligatory value check.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Error message will come.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So , you can write your own logic for validation of field value from T001-bukrs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jan 2010 05:25:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/value-check-for-parameters-does-not-work/m-p/6494423#M1420776</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-21T05:25:13Z</dc:date>
    </item>
    <item>
      <title>Re: Value Check for Parameters does not work</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/value-check-for-parameters-does-not-work/m-p/6494424#M1420777</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ratna,&lt;/P&gt;&lt;P&gt;                 You can see that the field BUKRS in table T001 does not have foriegn key relation and neither does it have a value range. Check table of the domain BUKRS  is table T001 itself and hence  Foriegn Key maintenance is not possible. &lt;/P&gt;&lt;P&gt;So in such a case I think you will have to use FM COMPANY_CODE_READ as mentioned in one of the posts above or use any of the tables that has T001 as check table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jan 2010 05:28:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/value-check-for-parameters-does-not-work/m-p/6494424#M1420777</guid>
      <dc:creator>former_member206377</dc:creator>
      <dc:date>2010-01-21T05:28:44Z</dc:date>
    </item>
  </channel>
</rss>

