<?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: selection screen validation  - one field based on another field in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-validation-one-field-based-on-another-field/m-p/4116037#M984053</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;Just declare those variables as mandatory variables,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so that system will through an error if user won't enter values in month or year.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Otherwise just write ur if conditional statements with in AT SELECTION screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kusuma.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 30 Jun 2008 03:53:21 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-06-30T03:53:21Z</dc:date>
    <item>
      <title>selection screen validation  - one field based on another field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-validation-one-field-based-on-another-field/m-p/4116033#M984049</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;&lt;/P&gt;&lt;P&gt;i'm getting &lt;STRONG&gt;Month in Select option and Year in Parameter.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;When i execute the report, it should check whether one is entered without the other one. If so, it should throw error message.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to do this in selection screen ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is what the coding should be...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  if s_month[] is not initial and p_year is initial.&lt;/P&gt;&lt;P&gt;    Message 'Enter Payroll Year' type 'E'.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  if s_month[] is initial and p_year is not initial.&lt;/P&gt;&lt;P&gt;    Message 'Enter Payroll month' type 'E'.&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;&lt;/P&gt;&lt;P&gt;But under which event i should write this..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can anyone pls help me..&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;Shanthi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 29 Jun 2008 11:27:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-validation-one-field-based-on-another-field/m-p/4116033#M984049</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-29T11:27:44Z</dc:date>
    </item>
    <item>
      <title>Re: selection screen validation  - one field based on another field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-validation-one-field-based-on-another-field/m-p/4116034#M984050</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shanthi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; You can write your checks at "at selection-screen" event.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Yossi.R.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 29 Jun 2008 11:39:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-validation-one-field-based-on-another-field/m-p/4116034#M984050</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-29T11:39:09Z</dc:date>
    </item>
    <item>
      <title>Re: selection screen validation  - one field based on another field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-validation-one-field-based-on-another-field/m-p/4116035#M984051</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shanti,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Try the following in &lt;STRONG&gt;AT Selection-Screen&lt;/STRONG&gt;  event.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if s_month[] is initial.&lt;/P&gt;&lt;P&gt; if p_year is initial.&lt;/P&gt;&lt;P&gt;    message 'Enter month and year' type E.&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;    message 'Enter month also' type 'E'.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;if p_year is initial.&lt;/P&gt;&lt;P&gt;  message 'Enter year also' type 'E'.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;P&gt;Any queries, get back to me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Chandra Sekhar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 29 Jun 2008 16:01:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-validation-one-field-based-on-another-field/m-p/4116035#M984051</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-29T16:01:46Z</dc:date>
    </item>
    <item>
      <title>Re: selection screen validation  - one field based on another field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-validation-one-field-based-on-another-field/m-p/4116036#M984052</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shanti,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Define your selection-screen elements between &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECTION-SCREEN BEGIN OF BLOCK &amp;lt;block name&amp;gt;

Select-options....

Parameters:

SELECTION-SCREEN END OF BLOCK &amp;lt;block name&amp;gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You specify ur code in AT SELECTION-SCREEN ON BLOCK &amp;lt;b1&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This would help you if either one of the entry is missing...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And even you can mention in AT SELECTION-SCREEN event...&lt;/P&gt;&lt;P&gt;But if you have any other parameters there its not necessary for the user to specify if he had entered...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As month and year are interrelated for your program its better you go for the first procedure ie in BLOCK event.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this would help you,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Narin Nandivada.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 29 Jun 2008 18:01:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-validation-one-field-based-on-another-field/m-p/4116036#M984052</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-29T18:01:37Z</dc:date>
    </item>
    <item>
      <title>Re: selection screen validation  - one field based on another field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-validation-one-field-based-on-another-field/m-p/4116037#M984053</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;Just declare those variables as mandatory variables,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so that system will through an error if user won't enter values in month or year.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Otherwise just write ur if conditional statements with in AT SELECTION screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kusuma.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jun 2008 03:53:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-validation-one-field-based-on-another-field/m-p/4116037#M984053</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-30T03:53:21Z</dc:date>
    </item>
  </channel>
</rss>

