<?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: help in message in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-in-message/m-p/1909554#M378746</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT-OPTIONS: s_matnr FOR  marc-matnr.                  "Material No
AT SELECTION-SCREEN ON s_matnr.
 
*Validate material no details
  PERFORM validate_matno.
FORM validate_matno.
DATA: v_matnr LIEK mara-matnr.
IF NOT s_matnr[] IS INITIAL.
LOOP AT s_matnr.
  SELECT SINGLE matnr INTO v_matnr
         FROM mara
         WHERE matnr = s_matnr-low.
 
  IF sy-subrc NE 0.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;lt;b&amp;gt;MESSAGE i128.&lt;/P&gt;&lt;P&gt;  LEAVE LIST-PROCESSING&amp;lt;/b&amp;gt;.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;ENDIF.
ENDLOOP.
ENDIF.
ENDFORM.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;make sure u r using the message number available in ur message class.&lt;/P&gt;&lt;P&gt;Reward if u find helpful,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 27 Feb 2007 10:40:11 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-02-27T10:40:11Z</dc:date>
    <item>
      <title>help in message</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-in-message/m-p/1909548#M378740</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hallow i doing a report program that select some course from table . in the selection screen if u bring invalid course i bring a message like the course is invalid .&lt;/P&gt;&lt;P&gt;the problem is that i do that after select and not in at selection screen, and after the message come i have dump. my question if the user put course invalid i wont after the message he continue to write courses how can i do that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select .....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;message i(014)&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;leave to ?&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;which screen or other option &lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Feb 2007 10:27:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-in-message/m-p/1909548#M378740</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-27T10:27:37Z</dc:date>
    </item>
    <item>
      <title>Re: help in message</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-in-message/m-p/1909549#M378741</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use the option below: (assuming that you are not displaying any list in the event END-OF-SELECTION).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;message i(014)&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;LEAVE TO LIST-PROCESSING.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Feb 2007 10:34:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-in-message/m-p/1909549#M378741</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-27T10:34:23Z</dc:date>
    </item>
    <item>
      <title>Re: help in message</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-in-message/m-p/1909550#M378742</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use the STOP. command.&lt;/P&gt;&lt;P&gt;This would skip the rest of the code in the start-of-selection and go to the first line of te end-of-selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use EXIT. if you want to exit the program itself.&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>Tue, 27 Feb 2007 10:36:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-in-message/m-p/1909550#M378742</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-27T10:36:27Z</dc:date>
    </item>
    <item>
      <title>Re: help in message</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-in-message/m-p/1909551#M378743</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Antonio,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Apparently you don't want to use the AT SELECTION-SCREEN. A trick would be to give a S message (instead of I) and to submit the report again, so:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;message S(014).&lt;/P&gt;&lt;P&gt;SUBMIT sy-repid.&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;&lt;/P&gt;&lt;P&gt;John.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Feb 2007 10:36:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-in-message/m-p/1909551#M378743</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-27T10:36:37Z</dc:date>
    </item>
    <item>
      <title>Re: help in message</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-in-message/m-p/1909552#M378744</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 have to do SCreen Validations in the event AT SELECTION SCREEN only.&lt;/P&gt;&lt;P&gt;Even if you enter wrong values it will stop there itself, without going to select statements, which unnecessarily consumes time of the database.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After select statement you can check SY-SUBRC  and give error Message and use STOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;  Message ....&lt;/P&gt;&lt;P&gt;STOP or EXIT.&lt;/P&gt;&lt;P&gt;Endif.&lt;/P&gt;&lt;P&gt;It won't dump.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Anji&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Feb 2007 10:37:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-in-message/m-p/1909552#M378744</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-27T10:37:56Z</dc:date>
    </item>
    <item>
      <title>Re: help in message</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-in-message/m-p/1909553#M378745</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;ONE WAY IS TO&lt;/P&gt;&lt;P&gt;CREATE A F4 HELP FOR UR FIELD IN SELECTION SCREEN(COURSE).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WHATS THE DUMP U ARE GETTING?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Feb 2007 10:38:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-in-message/m-p/1909553#M378745</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-27T10:38:54Z</dc:date>
    </item>
    <item>
      <title>Re: help in message</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-in-message/m-p/1909554#M378746</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT-OPTIONS: s_matnr FOR  marc-matnr.                  "Material No
AT SELECTION-SCREEN ON s_matnr.
 
*Validate material no details
  PERFORM validate_matno.
FORM validate_matno.
DATA: v_matnr LIEK mara-matnr.
IF NOT s_matnr[] IS INITIAL.
LOOP AT s_matnr.
  SELECT SINGLE matnr INTO v_matnr
         FROM mara
         WHERE matnr = s_matnr-low.
 
  IF sy-subrc NE 0.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;lt;b&amp;gt;MESSAGE i128.&lt;/P&gt;&lt;P&gt;  LEAVE LIST-PROCESSING&amp;lt;/b&amp;gt;.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;ENDIF.
ENDLOOP.
ENDIF.
ENDFORM.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;make sure u r using the message number available in ur message class.&lt;/P&gt;&lt;P&gt;Reward if u find helpful,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Feb 2007 10:40:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-in-message/m-p/1909554#M378746</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-27T10:40:11Z</dc:date>
    </item>
    <item>
      <title>Re: help in message</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-in-message/m-p/1909555#M378747</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;I think u might have given an abend msg...there should not b any problem with the ifo msg type...even if given after select...&lt;/P&gt;&lt;P&gt;would u like to send the code that u have written...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Feb 2007 11:11:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-in-message/m-p/1909555#M378747</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-27T11:11:13Z</dc:date>
    </item>
  </channel>
</rss>

