<?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 Error message in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-message/m-p/6179833#M1373077</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have to write a error message if after entering data in the selection screen i have no data, something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if ti_data[] is not initial.&lt;/P&gt;&lt;P&gt;     perform show_report.&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;     message e002(z_mensajes).&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But, if ti_data IS INITIAL, I have to come back to the selection screen, how I can do that? I see an empty page and the error message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gabriela.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 05 Oct 2009 13:17:15 GMT</pubDate>
    <dc:creator>former_member204025</dc:creator>
    <dc:date>2009-10-05T13:17:15Z</dc:date>
    <item>
      <title>Error message</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-message/m-p/6179833#M1373077</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have to write a error message if after entering data in the selection screen i have no data, something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if ti_data[] is not initial.&lt;/P&gt;&lt;P&gt;     perform show_report.&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;     message e002(z_mensajes).&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But, if ti_data IS INITIAL, I have to come back to the selection screen, how I can do that? I see an empty page and the error message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gabriela.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Oct 2009 13:17:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-message/m-p/6179833#M1373077</guid>
      <dc:creator>former_member204025</dc:creator>
      <dc:date>2009-10-05T13:17:15Z</dc:date>
    </item>
    <item>
      <title>Re: Error message</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-message/m-p/6179834#M1373078</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I did it this way.  Does it fit with your requirement?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;at selection-screen.
if p_x = 'E'.
   message s000(ZMSG) with 'dodgy value in param'.
   stop.
endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Oct 2009 13:21:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-message/m-p/6179834#M1373078</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-05T13:21:35Z</dc:date>
    </item>
    <item>
      <title>Re: Error message</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-message/m-p/6179835#M1373079</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
if ti_data[] is not initial.
perform show_report.
else.
message e002(z_mensajes).
exit.          " add this
endif.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Oct 2009 13:22:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-message/m-p/6179835#M1373079</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-05T13:22:35Z</dc:date>
    </item>
    <item>
      <title>Re: Error message</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-message/m-p/6179836#M1373080</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;try:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL SELECTION-SCREEN ....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;leave screen&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Nicole&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Oct 2009 13:24:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-message/m-p/6179836#M1373080</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-05T13:24:06Z</dc:date>
    </item>
    <item>
      <title>Re: Error message</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-message/m-p/6179837#M1373081</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I forgot to tell you, that I have that code un the END-OF.SELECTION event.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;select * into corresponding fields of ti_vuelos&lt;/P&gt;&lt;P&gt;          from ztabla_vuelos&lt;/P&gt;&lt;P&gt;         where carrid eq p_carrid and&lt;/P&gt;&lt;P&gt;                    connid in s_carrid and&lt;/P&gt;&lt;P&gt;                      countryfr eq p_country.&lt;/P&gt;&lt;P&gt;check sy-subrc eq 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;END-OF-SELECTION.&lt;/P&gt;&lt;P&gt;  IF ti_vuelos[] IS NOT INITIAL.&lt;/P&gt;&lt;P&gt;    PERFORM show_report.&lt;/P&gt;&lt;P&gt;  ELSE.&lt;/P&gt;&lt;P&gt;    MESSAGE e004(z_gabriela).&lt;/P&gt;&lt;P&gt;    EXIT.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried with EXIT, but is not working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN __jive_emoticon_name="sad"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I can do? I have to return to the selection screen after the error message in order to enter new values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;Gaby&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Oct 2009 13:29:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-message/m-p/6179837#M1373081</guid>
      <dc:creator>former_member204025</dc:creator>
      <dc:date>2009-10-05T13:29:12Z</dc:date>
    </item>
    <item>
      <title>Re: Error message</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-message/m-p/6179838#M1373082</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;Try like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

if ti_data[] is not initial.
perform show_report.
else.
message I002(z_mensajes).
LEAVE LIST-PROCESSING.
endif.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nagaraj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Oct 2009 13:32:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-message/m-p/6179838#M1373082</guid>
      <dc:creator>former_member404244</dc:creator>
      <dc:date>2009-10-05T13:32:54Z</dc:date>
    </item>
    <item>
      <title>Re: Error message</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-message/m-p/6179839#M1373083</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nagaraj,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not working yet, I mean, If I write an information message, works, but I need an error message and then return to the selection screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks anyway!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Oct 2009 13:36:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-message/m-p/6179839#M1373083</guid>
      <dc:creator>former_member204025</dc:creator>
      <dc:date>2009-10-05T13:36:39Z</dc:date>
    </item>
    <item>
      <title>Re: Error message</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-message/m-p/6179840#M1373084</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;Try to use like this without the message class &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
START-OF-SELECTION.
select * into corresponding fields of ti_vuelos
from ztabla_vuelos
where carrid eq p_carrid and
connid in s_carrid and
countryfr eq p_country.
check sy-subrc eq 0.

END-OF-SELECTION.
IF ti_vuelos[] IS NOT INITIAL.
PERFORM show_report.
ELSE.
MESSAGE 'Error message' TYPE 'S' DISPLAY LIKE 'E'.
EXIT.
ENDIF.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Oct 2009 13:39:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-message/m-p/6179840#M1373084</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-05T13:39:43Z</dc:date>
    </item>
    <item>
      <title>Re: Error message</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-message/m-p/6179841#M1373085</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;IT WORKED!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you Vinkranth!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wrote this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   MESSAGE 'Error message' TYPE 'S' DISPLAY LIKE 'E'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thak you very much!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gaby&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Oct 2009 13:43:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-message/m-p/6179841#M1373085</guid>
      <dc:creator>former_member204025</dc:creator>
      <dc:date>2009-10-05T13:43:26Z</dc:date>
    </item>
    <item>
      <title>Re: Error message</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-message/m-p/6179842#M1373086</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; we do give error messages when we want to validate the selection screen fields .Once we enter the data and then execute , for the data retrieval part if we don't get any records we give information message and go back to selection screen.error message won't work as it blanks the screen. Hence i suggested for information message&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;else try this&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
if ti_data[] is not initial.
perform show_report.
else.
MESSAGE 'No DATA ' TYPE 'S' DISPLAY LIKE 'E'.
LEAVE LIST-PROCESSING.
endif.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nagaraj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Oct 2009 13:45:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-message/m-p/6179842#M1373086</guid>
      <dc:creator>former_member404244</dc:creator>
      <dc:date>2009-10-05T13:45:57Z</dc:date>
    </item>
    <item>
      <title>Re: Error message</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-message/m-p/6179843#M1373087</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Nagaraj!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Oct 2009 13:51:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-message/m-p/6179843#M1373087</guid>
      <dc:creator>former_member204025</dc:creator>
      <dc:date>2009-10-05T13:51:50Z</dc:date>
    </item>
  </channel>
</rss>

