<?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: Question reg. message on selection screen in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/question-reg-message-on-selection-screen/m-p/1770675#M332788</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;&lt;/P&gt;&lt;P&gt;Add leave list-processing after the success message..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF p_vbeln IS not INITIAL.&lt;/P&gt;&lt;P&gt;SELECT vbeln erdat FROM vbak&lt;/P&gt;&lt;P&gt;INTO CORRESPONDING FIELDS OF TABLE itab_vbeln&lt;/P&gt;&lt;P&gt;WHERE vbeln = p_vbeln.&lt;/P&gt;&lt;P&gt;endif.&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 s004(zer) WITH 'No data found'.&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;LEAVE LIST-PROCESSING.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 29 Nov 2006 23:14:31 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-11-29T23:14:31Z</dc:date>
    <item>
      <title>Question reg. message on selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/question-reg-message-on-selection-screen/m-p/1770674#M332787</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;On selection screen, I want to display a status message if the data is not found from the values the user entered. I wrote the following coding. I am able to get the message but it is coming out in the output rather than on the selction screen itself. Can you tell me what correction I can make to get the desired result?&lt;/P&gt;&lt;P&gt;IF p_vbeln IS not INITIAL.&lt;/P&gt;&lt;P&gt;  SELECT vbeln erdat FROM vbak&lt;/P&gt;&lt;P&gt;  INTO CORRESPONDING FIELDS OF TABLE itab_vbeln&lt;/P&gt;&lt;P&gt;  WHERE vbeln = p_vbeln.&lt;/P&gt;&lt;P&gt;  endif.&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 s004(zer) WITH 'No data found'.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much,&lt;/P&gt;&lt;P&gt;Krishen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Nov 2006 23:11:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/question-reg-message-on-selection-screen/m-p/1770674#M332787</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-29T23:11:33Z</dc:date>
    </item>
    <item>
      <title>Re: Question reg. message on selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/question-reg-message-on-selection-screen/m-p/1770675#M332788</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;&lt;/P&gt;&lt;P&gt;Add leave list-processing after the success message..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF p_vbeln IS not INITIAL.&lt;/P&gt;&lt;P&gt;SELECT vbeln erdat FROM vbak&lt;/P&gt;&lt;P&gt;INTO CORRESPONDING FIELDS OF TABLE itab_vbeln&lt;/P&gt;&lt;P&gt;WHERE vbeln = p_vbeln.&lt;/P&gt;&lt;P&gt;endif.&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 s004(zer) WITH 'No data found'.&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;LEAVE LIST-PROCESSING.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Nov 2006 23:14:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/question-reg-message-on-selection-screen/m-p/1770675#M332788</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-29T23:14:31Z</dc:date>
    </item>
    <item>
      <title>Re: Question reg. message on selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/question-reg-message-on-selection-screen/m-p/1770676#M332789</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please do your coding in the AT SELECTION-SCREEN event.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;AT Selection-Screen.

IF p_vbeln IS not INITIAL.
SELECT vbeln erdat FROM vbak
INTO CORRESPONDING FIELDS OF TABLE itab_vbeln
WHERE vbeln = p_vbeln.
endif.

IF sy-subrc &amp;lt;&amp;gt; 0.
MESSAGE s004(zer) WITH 'No data found'.
ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Nov 2006 23:16:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/question-reg-message-on-selection-screen/m-p/1770676#M332789</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-11-29T23:16:00Z</dc:date>
    </item>
  </channel>
</rss>

