<?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: Query on Event in Report program in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/query-on-event-in-report-program/m-p/4991189#M1162652</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 need to use AT SELECTION-SCREEN event to validate it.&lt;/P&gt;&lt;P&gt;That means under this event you need to check if the value of select-option or parameter is GT sy-datum.&lt;/P&gt;&lt;P&gt;then display the message accorndingly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT selection-screen on &amp;lt;para&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If &amp;lt;para&amp;gt; LT sy-datum.&lt;/P&gt;&lt;P&gt;message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope it will help you.&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;Rajesh Kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 15 Jan 2009 04:52:17 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-01-15T04:52:17Z</dc:date>
    <item>
      <title>Query on Event in Report program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/query-on-event-in-report-program/m-p/4991184#M1162647</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;          I have a requirement to validate the date entered on the selection screen of a Report progam. &lt;/P&gt;&lt;P&gt;The validation needs to be done is that whether the date is less than today's date...If the date is a future date then an error message needs to be displayed and the program should not execute.&lt;/P&gt;&lt;P&gt;The validation of the date must be done when the user clicks on execute button / when the user saves the selection screen by cicking save button / when the user presses enter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please provide me some pointers on the above.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Jan 2009 17:56:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/query-on-event-in-report-program/m-p/4991184#M1162647</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-14T17:56:57Z</dc:date>
    </item>
    <item>
      <title>Re: Query on Event in Report program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/query-on-event-in-report-program/m-p/4991185#M1162648</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 this code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

" P_date is the selection screen field.

AT SELECTION-SCREEN ON p_date.

IF P_DATE GT SY-DATUM.
   MESSAGE e058(00) WITH 'Please enter the data greater than today's date'
ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Jan 2009 18:08:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/query-on-event-in-report-program/m-p/4991185#M1162648</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-14T18:08:56Z</dc:date>
    </item>
    <item>
      <title>Re: Query on Event in Report program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/query-on-event-in-report-program/m-p/4991186#M1162649</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;  Addon to the above code u have to use below mentioned code as well if u want the error message on save button as well:-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   maintain the PF status for the button SAVE with the name SAVE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  data : ucomm type sy-ucomm.&lt;/P&gt;&lt;P&gt;           ucomm = sy-ucomm.&lt;/P&gt;&lt;P&gt;           Case ucomm.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     when 'SAVE'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    if p_date gt sy_datum.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    error message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;Ruchi Tiwari&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jan 2009 04:29:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/query-on-event-in-report-program/m-p/4991186#M1162649</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-15T04:29:50Z</dc:date>
    </item>
    <item>
      <title>Re: Query on Event in Report program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/query-on-event-in-report-program/m-p/4991187#M1162650</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;small tip........IF P_DATE GT SY-DATUM.----&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt;&amp;gt; this will work, provided the p_date declaration with an DATE type field, like p_date type sy-datum or p_date type bkpf-budat etc.....otherwise, u hv to go to FMs to compare the dates.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanq&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jan 2009 04:40:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/query-on-event-in-report-program/m-p/4991187#M1162650</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-15T04:40:20Z</dc:date>
    </item>
    <item>
      <title>Re: Query on Event in Report program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/query-on-event-in-report-program/m-p/4991188#M1162651</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;    Whenever you click on selection screen the event  AT SELECTION-SCREEN  is called ,&lt;/P&gt;&lt;P&gt;so under that event you can validate your date logic .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;example :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETER : DATE TYPE SY-DATUM .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN  ON DATE .   " THIS IS EVENT USED FOR VALIDATE PARTICULAR FIELD&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF  DATE GT  SY-DATUM .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     MESSAGE E000(00) WITH 'Please enter valid date , it should not greater than current date' .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDIF .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your prob. will solved definately .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REGARDS&lt;/P&gt;&lt;P&gt;NILESH JAIN .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jan 2009 04:50:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/query-on-event-in-report-program/m-p/4991188#M1162651</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-15T04:50:33Z</dc:date>
    </item>
    <item>
      <title>Re: Query on Event in Report program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/query-on-event-in-report-program/m-p/4991189#M1162652</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 need to use AT SELECTION-SCREEN event to validate it.&lt;/P&gt;&lt;P&gt;That means under this event you need to check if the value of select-option or parameter is GT sy-datum.&lt;/P&gt;&lt;P&gt;then display the message accorndingly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT selection-screen on &amp;lt;para&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If &amp;lt;para&amp;gt; LT sy-datum.&lt;/P&gt;&lt;P&gt;message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope it will help you.&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;Rajesh Kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jan 2009 04:52:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/query-on-event-in-report-program/m-p/4991189#M1162652</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-15T04:52:17Z</dc:date>
    </item>
    <item>
      <title>Re: Query on Event in Report program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/query-on-event-in-report-program/m-p/4991190#M1162653</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;The following code will definitely help u.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETER: date TYPE sy-datum.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN on date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF date gt sy-datum.&lt;/P&gt;&lt;P&gt;MESSAGE 'Date should be less than or equals to today date' TYPE 'E'.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jan 2009 04:57:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/query-on-event-in-report-program/m-p/4991190#M1162653</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-15T04:57:15Z</dc:date>
    </item>
  </channel>
</rss>

