<?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: Message options in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/message-options/m-p/1261243#M147700</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pradipta,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;U can validate the selection-screen in the event At Selection-Screen.&lt;/P&gt;&lt;P&gt;in ur case u can write as:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF S_MRU IS NOT INITIAL.&lt;/P&gt;&lt;P&gt;SELECT TERMSCHL FROM TE422 INTO S_MRU.&lt;/P&gt;&lt;P&gt;ENDSELECT.&lt;/P&gt;&lt;P&gt;IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;MESSAGE E001(ZZ).&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;MESSAGE E002(ZZ).&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF P_INS &amp;lt; 1.&lt;/P&gt;&lt;P&gt;MESSAGE E003(ZZ).&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ZZ-IS THE MESSAGE CLASS.&lt;/P&gt;&lt;P&gt;E001,E002,E003 ARE THE MESSAGES U WOULD LIKE TO DISPLAY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HOPE THIS HELPS,&lt;/P&gt;&lt;P&gt;THANKS,&lt;/P&gt;&lt;P&gt;PRIYA&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Priya&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 22 Mar 2006 04:59:44 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-03-22T04:59:44Z</dc:date>
    <item>
      <title>Message options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/message-options/m-p/1261242#M147699</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please let me know how do I validate a parameter on a selection screen by using messaging options.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for eg..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS: s_mru FOR te422-termschl.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN END OF BLOCK b1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETER : p_ins TYPE i DEFAULT 150.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;suppose I need to validate for both the fields &lt;/P&gt;&lt;P&gt;1. s_mru (it should not accept a value which is not in the table field te422-termschl)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. p_ins (the output screen should not come if the value of p_ins is less than 1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;kindly show me the flow of code ....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thx...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Mar 2006 04:50:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/message-options/m-p/1261242#M147699</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-22T04:50:43Z</dc:date>
    </item>
    <item>
      <title>Re: Message options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/message-options/m-p/1261243#M147700</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pradipta,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;U can validate the selection-screen in the event At Selection-Screen.&lt;/P&gt;&lt;P&gt;in ur case u can write as:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF S_MRU IS NOT INITIAL.&lt;/P&gt;&lt;P&gt;SELECT TERMSCHL FROM TE422 INTO S_MRU.&lt;/P&gt;&lt;P&gt;ENDSELECT.&lt;/P&gt;&lt;P&gt;IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;MESSAGE E001(ZZ).&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;MESSAGE E002(ZZ).&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF P_INS &amp;lt; 1.&lt;/P&gt;&lt;P&gt;MESSAGE E003(ZZ).&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ZZ-IS THE MESSAGE CLASS.&lt;/P&gt;&lt;P&gt;E001,E002,E003 ARE THE MESSAGES U WOULD LIKE TO DISPLAY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HOPE THIS HELPS,&lt;/P&gt;&lt;P&gt;THANKS,&lt;/P&gt;&lt;P&gt;PRIYA&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Priya&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Mar 2006 04:59:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/message-options/m-p/1261243#M147700</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-22T04:59:44Z</dc:date>
    </item>
    <item>
      <title>Re: Message options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/message-options/m-p/1261244#M147701</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pradipta,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try these code sample .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. s_mru (it should not accept a value which is not in the table field te422-termschl)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;At selection-screen .&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;*Select termschl from te422 table present in select option&lt;/P&gt;&lt;P&gt;  select  termschl from  te422  into  table it_termschl&lt;/P&gt;&lt;P&gt;                where termschl in    s_mru.&lt;/P&gt;&lt;P&gt;*If not found&lt;/P&gt;&lt;P&gt;  if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;*Message that value not found&lt;/P&gt;&lt;P&gt;    message i008(Message class).&lt;/P&gt;&lt;P&gt;STOP&lt;/P&gt;&lt;P&gt;Endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. p_ins (the output screen should not come if the value of p_ins is less than 1)&lt;/P&gt;&lt;P&gt;the output screen should not come means that the report output should not be displayed , correct me if i  am wrong .&lt;/P&gt;&lt;P&gt; In that case&lt;/P&gt;&lt;P&gt;  You can use&lt;/P&gt;&lt;P&gt; If p_ins &amp;lt; 1.&lt;/P&gt;&lt;P&gt;  Message e008(Message class)&lt;/P&gt;&lt;P&gt; Endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hopw these will help you , let me know if you still have some doubts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;P&gt;Rewrd points, if found helpful&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Sunny&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Mar 2006 05:05:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/message-options/m-p/1261244#M147701</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-22T05:05:53Z</dc:date>
    </item>
    <item>
      <title>Re: Message options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/message-options/m-p/1261245#M147702</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hai pradipta,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this way can be used for validation of selection screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN ON s_mru.&lt;/P&gt;&lt;P&gt;IF s_mru IS NOT INITIAL.&lt;/P&gt;&lt;P&gt;LOOP AT SCREEN .&lt;/P&gt;&lt;P&gt;IF screen-group1 = 'M02' .&lt;/P&gt;&lt;P&gt;    screen-required = '1'.&lt;/P&gt;&lt;P&gt;    MODIFY SCREEN .&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN ON p_ins.&lt;/P&gt;&lt;P&gt;IF p_ins  IS NOT INITIAL.&lt;/P&gt;&lt;P&gt;LOOP AT SCREEN .&lt;/P&gt;&lt;P&gt;IF screen-group1 = 'M01' .&lt;/P&gt;&lt;P&gt;    screen-required = '1'.&lt;/P&gt;&lt;P&gt;    MODIFY SCREEN .&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope its helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;praba.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Mar 2006 05:14:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/message-options/m-p/1261245#M147702</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-22T05:14:05Z</dc:date>
    </item>
    <item>
      <title>Re: Message options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/message-options/m-p/1261246#M147703</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Pradipta,&lt;/P&gt;&lt;P&gt;   For the selection screen validation you can use the &amp;lt;b&amp;gt;AUTHORITY-CHECK&amp;lt;/b&amp;gt; at AT SELECTION-SCREEN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this check can be applied for s_mru &lt;/P&gt;&lt;P&gt;source code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
AT selection-screen.
authority-check object 'TERMSCHL'
 id 'TERMSCHL' field s_mru.
if sy-subrc &amp;lt;&amp;gt; 0.
MESSAGE ID 'message class' TYPE 'E' NUMBER XX with s_mru.
endif.

if p_ins lt 1.
  MESSAGE ID 'message class' TYPE 'E' NUMBER XX.
endif.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; i hope this will be helpful&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Kinshuk Saxena&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Mar 2006 05:50:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/message-options/m-p/1261246#M147703</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-22T05:50:18Z</dc:date>
    </item>
    <item>
      <title>Re: Message options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/message-options/m-p/1261247#M147704</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Pradipta,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As per form etiquette's&lt;/P&gt;&lt;P&gt;If you are satisfied , please close the thread by rewarding appropriate points to the helpful answers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Mar 2006 09:12:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/message-options/m-p/1261247#M147704</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-22T09:12:55Z</dc:date>
    </item>
    <item>
      <title>Re: Message options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/message-options/m-p/1261248#M147705</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How do I check validation of a field in the selection screen ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for eg. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;suppose I check for field ADRC-ADDRNUMBER from the adrc table in the selection screen. I need to check for two conditions:&lt;/P&gt;&lt;P&gt;1. the value of the field should not be negative&lt;/P&gt;&lt;P&gt;2. the program should not run on any value type other than the data type defined in the transparent table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Mar 2006 09:31:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/message-options/m-p/1261248#M147705</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-24T09:31:54Z</dc:date>
    </item>
    <item>
      <title>Re: Message options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/message-options/m-p/1261249#M147706</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pradipta,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can do these check on &lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;at selection-screen &amp;lt;/b&amp;gt; event.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;P&gt;Rewrd points, if found helpful&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Sunny&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Mar 2006 09:39:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/message-options/m-p/1261249#M147706</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-24T09:39:56Z</dc:date>
    </item>
    <item>
      <title>Re: Message options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/message-options/m-p/1261250#M147707</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Report test.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN.&lt;/P&gt;&lt;P&gt;*Validate addrnumber&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN ON p_addr.&lt;/P&gt;&lt;P&gt;  PERFORM f1003_validate_addr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*********&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Form  f1003_validate_addr&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      Validate addr&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM f1003_validate_addr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA lv_addr TYPE ADRC-ADDRNUMBER.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Check for valid addr&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CHECK NOT p_addr IS GE 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CLEAR lv_addr.&lt;/P&gt;&lt;P&gt;  SELECT SINGLE addrnumber INTO lv_addr FROM adrc WHERE  &lt;/P&gt;&lt;P&gt;                             ADDRNUMBER  IN p_addr.&lt;/P&gt;&lt;P&gt;  IF sy-subrc NE 0.&lt;/P&gt;&lt;P&gt;    MESSAGE e000 WITH text-016.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.                    " f1003_validate_addr&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Anjali&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Mar 2006 10:08:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/message-options/m-p/1261250#M147707</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-24T10:08:52Z</dc:date>
    </item>
  </channel>
</rss>

