<?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: Selction Screen in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/selction-screen/m-p/2679861#M619305</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Agreed - this is best done in the "at selection-screen" event... one thing to be careful of is that since you appear to be using select-options for each criterion, you need to code you validation to check the body of the range, not just the screen elements i.e.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;if s_bukrs[] is initial.
  set cursor field 'S_BUKRS-LOW'.
  message e398(00) with 'Company Code must be provided'
    space space space.
endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 12 Aug 2007 00:57:31 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-08-12T00:57:31Z</dc:date>
    <item>
      <title>Selction Screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selction-screen/m-p/2679859#M619303</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Everybody,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can anybody help me regarding selection-screen.&lt;/P&gt;&lt;P&gt;My requirement is&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in Selection screen iam having the following fields with condition&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A-...... to .......&lt;/P&gt;&lt;P&gt;B-...... to .......&lt;/P&gt;&lt;P&gt;C-...... to .......&lt;/P&gt;&lt;P&gt;D-...... to .......&lt;/P&gt;&lt;P&gt;E-...... to .......&lt;/P&gt;&lt;P&gt;F-...... to .......&lt;/P&gt;&lt;P&gt;here condition is either A or D were mandatory&lt;/P&gt;&lt;P&gt;and if 'D' is populated then 'E','F' are mandatory.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanking you,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Aug 2007 22:49:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selction-screen/m-p/2679859#M619303</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-11T22:49:36Z</dc:date>
    </item>
    <item>
      <title>Re: Selction Screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selction-screen/m-p/2679860#M619304</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead of making a selection screen like this the best way is do this validaion in AT SELECTION SCREEN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There you can check for these conditions and it is only the best way to do this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Atish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Aug 2007 23:48:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selction-screen/m-p/2679860#M619304</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-11T23:48:35Z</dc:date>
    </item>
    <item>
      <title>Re: Selction Screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selction-screen/m-p/2679861#M619305</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Agreed - this is best done in the "at selection-screen" event... one thing to be careful of is that since you appear to be using select-options for each criterion, you need to code you validation to check the body of the range, not just the screen elements i.e.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;if s_bukrs[] is initial.
  set cursor field 'S_BUKRS-LOW'.
  message e398(00) with 'Company Code must be provided'
    space space space.
endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Aug 2007 00:57:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selction-screen/m-p/2679861#M619305</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-12T00:57:31Z</dc:date>
    </item>
    <item>
      <title>Re: Selction Screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selction-screen/m-p/2679862#M619306</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;iam asking how to write code for looping the screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i.e., we must give value either 'A' or 'D' ('A' or 'D' is Mandatory)&lt;/P&gt;&lt;P&gt;if we give any value for 'A' then 'B', 'C'  should be mandatory( if 'A' is populated)&lt;/P&gt;&lt;P&gt;if we give any value for 'D' then 'E', 'F'  should be mandatory( if 'D' is populated)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think this condition will be done on AT Selection-Screen OUTPUT.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Aug 2007 17:43:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selction-screen/m-p/2679862#M619306</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-12T17:43:10Z</dc:date>
    </item>
    <item>
      <title>Re: Selction Screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selction-screen/m-p/2679863#M619307</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunil&lt;/P&gt;&lt;P&gt;  This validation is done in AT SELECTION-SCREEN event.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your Code:&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF A[] IS INITIAL AND D[] IS INITIAL.&lt;/P&gt;&lt;P&gt;    Message 'Error' TYPE e. " Sunil replace this by your message class.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF NOT A[] IS INITIAL.&lt;/P&gt;&lt;P&gt;    IF B[] IS INITIAL OR C[] IS INITIAL.&lt;/P&gt;&lt;P&gt;      Message 'Error' TYPE e. " Sunil replace this by your message class.&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;  IF NOT D[] IS INITIAL.&lt;/P&gt;&lt;P&gt;    IF E[] IS INITIAL OR F[] IS INITIAL.&lt;/P&gt;&lt;P&gt;      Message 'Error' TYPE e. " Sunil replace this by your message class.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Aug 2007 22:14:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selction-screen/m-p/2679863#M619307</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-12T22:14:50Z</dc:date>
    </item>
  </channel>
</rss>

