<?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: Display error message when value entered does not have same data type in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/display-error-message-when-value-entered-does-not-have-same-data-type/m-p/8658978#M1667307</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;For data types I, P and D and some others you will get a standard message,&lt;/P&gt;&lt;P&gt;to handle the Char type data validation use &lt;/P&gt;&lt;H1&gt;&lt;SPAN style="color: #000080; font-size: 18pt;"&gt;log_exp - Comparison operators for character-type operands &lt;/SPAN&gt;&lt;/H1&gt;&lt;P&gt;&lt;SPAN style="color: #000080; font-size: 18pt;"&gt;Ex: CA contains any, NA contains not any...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000080; font-size: 18pt;"&gt;if the screen field is v_matnr and supposed enter only character and type of Char....&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000080; font-size: 18pt;"&gt;If v-matnr CA 'numbers'. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000080; font-size: 18pt;"&gt;i hope you may try the logic with existing classes&amp;nbsp; like &lt;/SPAN&gt;CL_ABAP_CHAR_UTILITIES.&lt;/P&gt;&lt;P&gt;Hope the info would help you..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 20 Mar 2012 11:31:03 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2012-03-20T11:31:03Z</dc:date>
    <item>
      <title>Display error message when value entered does not have same data type</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/display-error-message-when-value-entered-does-not-have-same-data-type/m-p/8658973#M1667302</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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; How do I Display an error message when the value entered for a FIELD in the SCREEN is not of the same Data type as assigned to the field????&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Mar 2012 06:32:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/display-error-message-when-value-entered-does-not-have-same-data-type/m-p/8658973#M1667302</guid>
      <dc:creator>former_member188103</dc:creator>
      <dc:date>2012-03-15T06:32:26Z</dc:date>
    </item>
    <item>
      <title>Re: Display error message when value entered does not have same data type</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/display-error-message-when-value-entered-does-not-have-same-data-type/m-p/8658974#M1667303</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Provide more details.&lt;/P&gt;&lt;P&gt;Your question is wrong as of now because the value is provided as input by the user in the screen and how does the value have a data type ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Mar 2012 06:55:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/display-error-message-when-value-entered-does-not-have-same-data-type/m-p/8658974#M1667303</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2012-03-15T06:55:26Z</dc:date>
    </item>
    <item>
      <title>Re: Display error message when value entered does not have same data type</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/display-error-message-when-value-entered-does-not-have-same-data-type/m-p/8658975#M1667304</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kesavadas,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I have designed a screen and I have dragged and dropped fields from the Dictionary, To be specific the fields from the tables which I have CUSTOM CREATED..The Fields by default have the dictionary data type mapping from the tables.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; For me, from the End- User Point of View, if the user enters a value that is not supposed to be entered in that field, LIKE SAY FOR EXAMPLE For a&amp;nbsp; NAME ,I enter a NUMBER by MISTAKE.&lt;/P&gt;&lt;P&gt;For this kind of a scenario i need to throw an error message. &lt;/P&gt;&lt;P&gt;How Can I go Forward with it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Mar 2012 07:04:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/display-error-message-when-value-entered-does-not-have-same-data-type/m-p/8658975#M1667304</guid>
      <dc:creator>former_member188103</dc:creator>
      <dc:date>2012-03-15T07:04:01Z</dc:date>
    </item>
    <item>
      <title>Re: Display error message when value entered does not have same data type</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/display-error-message-when-value-entered-does-not-have-same-data-type/m-p/8658976#M1667305</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Those are handled by default. You need not worry&lt;/P&gt;&lt;P&gt;for example, execute this&lt;/P&gt;&lt;P&gt;parameters:pa&amp;nbsp; type i. "Try entering a alphabet here&lt;/P&gt;&lt;P&gt;parameters:pa2 type p. "Try entering a symbol&amp;nbsp;&amp;nbsp; here&lt;/P&gt;&lt;P&gt;parameters:pa3 type sy-datum. "Try entering a symbol or alphabet here&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Mar 2012 07:15:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/display-error-message-when-value-entered-does-not-have-same-data-type/m-p/8658976#M1667305</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2012-03-15T07:15:50Z</dc:date>
    </item>
    <item>
      <title>Re: Display error message when value entered does not have same data type</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/display-error-message-when-value-entered-does-not-have-same-data-type/m-p/8658977#M1667306</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, numbers are a subset of characters, so I'm not sure what you want.&lt;/P&gt;&lt;P&gt;For example, if the screen field is an address, you would want to allow users to enter something like "123 Main St."&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Mar 2012 13:49:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/display-error-message-when-value-entered-does-not-have-same-data-type/m-p/8658977#M1667306</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-03-16T13:49:00Z</dc:date>
    </item>
    <item>
      <title>Re: Display error message when value entered does not have same data type</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/display-error-message-when-value-entered-does-not-have-same-data-type/m-p/8658978#M1667307</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;For data types I, P and D and some others you will get a standard message,&lt;/P&gt;&lt;P&gt;to handle the Char type data validation use &lt;/P&gt;&lt;H1&gt;&lt;SPAN style="color: #000080; font-size: 18pt;"&gt;log_exp - Comparison operators for character-type operands &lt;/SPAN&gt;&lt;/H1&gt;&lt;P&gt;&lt;SPAN style="color: #000080; font-size: 18pt;"&gt;Ex: CA contains any, NA contains not any...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000080; font-size: 18pt;"&gt;if the screen field is v_matnr and supposed enter only character and type of Char....&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000080; font-size: 18pt;"&gt;If v-matnr CA 'numbers'. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000080; font-size: 18pt;"&gt;i hope you may try the logic with existing classes&amp;nbsp; like &lt;/SPAN&gt;CL_ABAP_CHAR_UTILITIES.&lt;/P&gt;&lt;P&gt;Hope the info would help you..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Mar 2012 11:31:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/display-error-message-when-value-entered-does-not-have-same-data-type/m-p/8658978#M1667307</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-03-20T11:31:03Z</dc:date>
    </item>
    <item>
      <title>Re: Display error message when value entered does not have same data type</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/display-error-message-when-value-entered-does-not-have-same-data-type/m-p/8658979#M1667308</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bharath,&lt;/P&gt;&lt;P&gt;You can use, &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;FIELD &amp;lt;fieldname&amp;gt; MODULE &amp;lt;modulename&amp;gt;. "for single field check&lt;/P&gt;&lt;P&gt;CHAIN .... ENDCHAIN construct "for multiple fields&amp;nbsp; in PAI &lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;and write logic in &amp;lt;modulename&amp;gt; to check whether the input is correct format or not like&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;if fieldname co '0123456789'&amp;nbsp; "syntax for checking if a field value contains only numbers&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&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;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Mar 2012 08:44:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/display-error-message-when-value-entered-does-not-have-same-data-type/m-p/8658979#M1667308</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-03-21T08:44:54Z</dc:date>
    </item>
  </channel>
</rss>

