<?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: Validate a screen entry through message in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/validate-a-screen-entry-through-message/m-p/4781049#M1120058</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;My suggestion is you can go with message type 'E'.  Check the following code:&lt;/P&gt;&lt;P&gt;tables: vbak, vbap.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;parameters: vbeln like vbak-vbeln,&lt;/P&gt;&lt;P&gt;            netwr like vbak-netwr. " Currency field&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at selection-screen on netwr.&lt;/P&gt;&lt;P&gt;if netwr &amp;gt; 1000.&lt;/P&gt;&lt;P&gt;message e000(00) with 'Enter less than or equal 1000.'.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;start-of-selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write: vbeln, netwr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Bhaskar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 24 Nov 2008 05:57:22 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-11-24T05:57:22Z</dc:date>
    <item>
      <title>Validate a screen entry through message</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validate-a-screen-entry-through-message/m-p/4781044#M1120053</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;Moderator message: do NOT offer points&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Dear experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  I have designed one screen containing 10 entries of 10 different fields.&lt;/P&gt;&lt;P&gt;One entry is for amount . I want that amount to be less than 1000.00 and if it is not so it should give message.&lt;/P&gt;&lt;P&gt;   My logic is working fine..but the only problem is that when I make a wrong entry , it should allow me to corrrect it there and there only..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now with message type E , it disables all the fields and other entries are also to be entered again...&lt;/P&gt;&lt;P&gt;and with message type W  and I , it is taking that as a right entry.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  So which message type should I use ? Or any other alternative ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;&amp;lt;text removed&amp;gt;&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Matt on Nov 24, 2008 11:21 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Nov 2008 05:03:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validate-a-screen-entry-through-message/m-p/4781044#M1120053</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-24T05:03:53Z</dc:date>
    </item>
    <item>
      <title>Re: Validate a screen entry through message</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validate-a-screen-entry-through-message/m-p/4781045#M1120054</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;at selection-screen on &amp;lt;screen field&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do your validation here.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Nov 2008 05:05:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validate-a-screen-entry-through-message/m-p/4781045#M1120054</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2008-11-24T05:05:19Z</dc:date>
    </item>
    <item>
      <title>Re: Validate a screen entry through message</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validate-a-screen-entry-through-message/m-p/4781046#M1120055</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 use field checks in the PAI of the screen. &lt;/P&gt;&lt;P&gt;The syntax is &lt;U&gt;&lt;STRONG&gt;Field &amp;lt;fieldname&amp;gt; Module &amp;lt;check module name&amp;gt;&lt;/STRONG&gt;&lt;/U&gt;. In the module you write the code to check the field and give the message with Type 'E' ie., type error then you can modify the individual field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    If that is an internal table field you can use it within LOOP and ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Thabitha.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Nov 2008 05:11:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validate-a-screen-entry-through-message/m-p/4781046#M1120055</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-24T05:11:57Z</dc:date>
    </item>
    <item>
      <title>Re: Validate a screen entry through message</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validate-a-screen-entry-through-message/m-p/4781047#M1120056</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you want all the fields to be input enabled use &lt;/P&gt;&lt;P&gt;CHAIN&lt;/P&gt;&lt;P&gt;field fnam module mname on input/request&lt;/P&gt;&lt;P&gt;when you use FIELD key word the system delays the transfer of the values from screen to program until the checks have been validated.&lt;/P&gt;&lt;P&gt;ENDCHAIN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for further help go through the KEY word documentaion.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Ramchander Rao.K&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: ramchander krishnamraju on Nov 24, 2008 6:23 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Nov 2008 05:19:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validate-a-screen-entry-through-message/m-p/4781047#M1120056</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-24T05:19:34Z</dc:date>
    </item>
    <item>
      <title>Re: Validate a screen entry through message</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validate-a-screen-entry-through-message/m-p/4781048#M1120057</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use Message Type W or S and then write a STOP statement after it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The control will remain on your Selection Screen and you will be able to make the required changes.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Nov 2008 05:20:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validate-a-screen-entry-through-message/m-p/4781048#M1120057</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-24T05:20:43Z</dc:date>
    </item>
    <item>
      <title>Re: Validate a screen entry through message</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validate-a-screen-entry-through-message/m-p/4781049#M1120058</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;My suggestion is you can go with message type 'E'.  Check the following code:&lt;/P&gt;&lt;P&gt;tables: vbak, vbap.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;parameters: vbeln like vbak-vbeln,&lt;/P&gt;&lt;P&gt;            netwr like vbak-netwr. " Currency field&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at selection-screen on netwr.&lt;/P&gt;&lt;P&gt;if netwr &amp;gt; 1000.&lt;/P&gt;&lt;P&gt;message e000(00) with 'Enter less than or equal 1000.'.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;start-of-selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write: vbeln, netwr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Bhaskar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Nov 2008 05:57:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validate-a-screen-entry-through-message/m-p/4781049#M1120058</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-24T05:57:22Z</dc:date>
    </item>
    <item>
      <title>Re: Validate a screen entry through message</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validate-a-screen-entry-through-message/m-p/4781050#M1120059</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;In the PAI of that screen you can use CHAIN...ENDCHAIN or simply in the Module USER_COMMAND of that screen once user presses ENTER or whatever you can validate it there so once 1st field is validated it will validate 2nd and so on and in order to make the fields Editable when some Invalidation happens in that case use FM &lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'MESSAGE_TEXT_BUILD'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      msgid               = g_msgid&lt;/P&gt;&lt;P&gt;      msgnr               = g_msgno&lt;/P&gt;&lt;P&gt;      msgv1               = g_msgv1&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      message_text_output = g_message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;which will extract the message text based on the message class and message no,and since you validating in the manner i mentioned above it will behave like an ERROR message but will allow you to edit.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Nov 2008 06:07:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validate-a-screen-entry-through-message/m-p/4781050#M1120059</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-24T06:07:51Z</dc:date>
    </item>
    <item>
      <title>Re: Validate a screen entry through message</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validate-a-screen-entry-through-message/m-p/4781051#M1120060</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;For validating single field:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;In PAI&lt;/P&gt;&lt;P&gt;field &amp;lt;field1&amp;gt; module check_field1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;" if in module u thro message of type E or W after validating. The field field1 will remain available for input.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;For validating multiple fields:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;In PAI&lt;/P&gt;&lt;P&gt;chain.&lt;/P&gt;&lt;P&gt;field &amp;lt;field1&amp;gt;.&lt;/P&gt;&lt;P&gt;field &amp;lt;field2&amp;gt;.&lt;/P&gt;&lt;P&gt;field &amp;lt;field3&amp;gt;.&lt;/P&gt;&lt;P&gt;module check_fields.&lt;/P&gt;&lt;P&gt;endchain.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;" if in module u thro message of type E or W after validating. The all the fields mentioned within chain endchain will remain available for input.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;For validating fields in Table control:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;In PAI&lt;/P&gt;&lt;P&gt;loop at itab.&lt;/P&gt;&lt;P&gt;Use any of above two methods&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Nov 2008 06:38:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validate-a-screen-entry-through-message/m-p/4781051#M1120060</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-24T06:38:55Z</dc:date>
    </item>
  </channel>
</rss>

