<?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: AT SELECTION-SCREEN in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/at-selection-screen/m-p/1546541#M248441</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The reason is because, if you put just a value in the HIGH field on the selection screen, you can usee that it actually creates a BT condition in the select-options table, therefore it is picking up the "E" in the G_BESKZ table.  Do you need to have the HIGH field on the selection screen?  If not, you can get rid of it by adding no intervals.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;select-options: s_beskz for g_beskz-beskz no intervals.&lt;/CODE&gt;&lt;/PRE&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>Mon, 21 Aug 2006 18:56:05 GMT</pubDate>
    <dc:creator>RichHeilman</dc:creator>
    <dc:date>2006-08-21T18:56:05Z</dc:date>
    <item>
      <title>AT SELECTION-SCREEN</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/at-selection-screen/m-p/1546538#M248438</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi friends,&lt;/P&gt;&lt;P&gt;       Could u please send me the details&lt;/P&gt;&lt;P&gt;to validate the selection-option field which is restricted the values either 'E' or 'X' field name is &amp;lt;b&amp;gt;bskez&amp;lt;/b&amp;gt; from &amp;lt;b&amp;gt;mara&amp;lt;/b&amp;gt; table &lt;/P&gt;&lt;P&gt;for this i written the code &lt;/P&gt;&lt;P&gt;DATA:BEGIN OF G_BESKZ,&lt;/P&gt;&lt;P&gt;     BESKZ LIKE MARC-BESKZ,&lt;/P&gt;&lt;P&gt;     END OF G_BESKZ.&lt;/P&gt;&lt;P&gt;  SELECT SINGLE BESKZ&lt;/P&gt;&lt;P&gt;          FROM  MARC&lt;/P&gt;&lt;P&gt;          INTO G_BESKZ&lt;/P&gt;&lt;P&gt;          WHERE BESKZ IN S_BESKZ AND ( BESKZ EQ 'E' OR BESKZ EQ 'X' ).&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 E001(ZLOT).&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;But it is validating for only LOW in Selection-options.&lt;/P&gt;&lt;P&gt;But it is not performing any Validations for HIGH in Selection-options.&lt;/P&gt;&lt;P&gt;i need to perofrm Validations for HIGH also&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Srinu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Aug 2006 18:46:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/at-selection-screen/m-p/1546538#M248438</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-21T18:46:17Z</dc:date>
    </item>
    <item>
      <title>Re: AT SELECTION-SCREEN</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/at-selection-screen/m-p/1546539#M248439</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry did not get your problem clearly...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when you use BESKZ IN S_BESKZ, it validates the low as well as high. If you have entered in the value in S_BESKZ for E and X, u dont need to specify the AND ( BESKZ EQ 'E' OR BESKZ EQ 'X' ) condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anurag&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Aug 2006 18:51:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/at-selection-screen/m-p/1546539#M248439</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-21T18:51:37Z</dc:date>
    </item>
    <item>
      <title>Re: AT SELECTION-SCREEN</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/at-selection-screen/m-p/1546540#M248440</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;If the Low value is there in the database the select query will return SY-SUBRC = 0. So pass the  S_BESKZ-LOW and S_BESKZ-HIGH seperately in the select query and check for sy-subrc value. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Prakash.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Aug 2006 18:55:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/at-selection-screen/m-p/1546540#M248440</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-21T18:55:32Z</dc:date>
    </item>
    <item>
      <title>Re: AT SELECTION-SCREEN</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/at-selection-screen/m-p/1546541#M248441</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The reason is because, if you put just a value in the HIGH field on the selection screen, you can usee that it actually creates a BT condition in the select-options table, therefore it is picking up the "E" in the G_BESKZ table.  Do you need to have the HIGH field on the selection screen?  If not, you can get rid of it by adding no intervals.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;select-options: s_beskz for g_beskz-beskz no intervals.&lt;/CODE&gt;&lt;/PRE&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>Mon, 21 Aug 2006 18:56:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/at-selection-screen/m-p/1546541#M248441</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-08-21T18:56:05Z</dc:date>
    </item>
    <item>
      <title>Re: AT SELECTION-SCREEN</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/at-selection-screen/m-p/1546542#M248442</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Anurag ,&lt;/P&gt;&lt;P&gt;      thanks a lot for ur soon reply But I need to Validate Values Only 'E' OR 'X' But if i Written the code that field (beskz) field accepting remaining values also&lt;/P&gt;&lt;P&gt; I need to Validate only 'E' OR 'X'.&lt;/P&gt;&lt;P&gt;Please Suggest me Wating for ur soon reply&lt;/P&gt;&lt;P&gt;Thanks and Regards&lt;/P&gt;&lt;P&gt;Srinu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Aug 2006 18:57:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/at-selection-screen/m-p/1546542#M248442</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-21T18:57:24Z</dc:date>
    </item>
    <item>
      <title>Re: AT SELECTION-SCREEN</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/at-selection-screen/m-p/1546543#M248443</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SELECT * from marc&lt;/P&gt;&lt;P&gt;where beskz CA 'EX'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OR &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT * from marc&lt;/P&gt;&lt;P&gt;where beskz in ('E','X').&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try the above ..also do you plan to have it as a select-option or u just need it as a where condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-- Please note when you use SELECT SINGLE you need to use the full key otherwise it would result in error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Anurag Bankley&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Anurag Bankley&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Aug 2006 18:59:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/at-selection-screen/m-p/1546543#M248443</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-21T18:59:58Z</dc:date>
    </item>
    <item>
      <title>Re: AT SELECTION-SCREEN</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/at-selection-screen/m-p/1546544#M248444</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Srinu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you need either values E or X for BESKZ so try as follows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA:BEGIN OF G_BESKZ,&lt;/P&gt;&lt;P&gt;BESKZ LIKE MARC-BESKZ,&lt;/P&gt;&lt;P&gt;END OF G_BESKZ.&lt;/P&gt;&lt;P&gt;SELECT SINGLE BESKZ&lt;/P&gt;&lt;P&gt;FROM MARC&lt;/P&gt;&lt;P&gt;INTO G_BESKZ&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;WHERE BESKZ IN ( 'E' , 'X' ).&amp;lt;/b&amp;gt;&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 E001(ZLOT).&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vinay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Aug 2006 19:00:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/at-selection-screen/m-p/1546544#M248444</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-21T19:00:19Z</dc:date>
    </item>
    <item>
      <title>Re: AT SELECTION-SCREEN</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/at-selection-screen/m-p/1546545#M248445</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Anurag ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks alot for ur soon reply &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BUT GIVEN THE INPUT '&amp;lt;b&amp;gt;F'&amp;lt;/b&amp;gt; It showing the output&lt;/P&gt;&lt;P&gt;Actually when i press the f4 help it showing the 'E' and 'F' and 'X' But i dont want 'F' when i Given the input 'F' in LOw selection-option and HIGH select-option it displaying the out put&lt;/P&gt;&lt;P&gt;if i enter the values other  than 'E' and 'X' that input Field should not accept &lt;/P&gt;&lt;P&gt;Please  help me&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;srinu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Aug 2006 19:15:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/at-selection-screen/m-p/1546545#M248445</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-21T19:15:04Z</dc:date>
    </item>
    <item>
      <title>Re: AT SELECTION-SCREEN</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/at-selection-screen/m-p/1546546#M248446</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please check the sample coding,  this will check each value in the select-options table , the LOW and the HIGH.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

report zrich_0001.

tables: marc.

ranges: r_beskz for marc-beskz.

select-options: s_beskz for marc-beskz.


at selection-screen .


  clear r_beskz.  refresh r_beskz.
  r_beskz-sign = 'I'.
  r_beskz-option = 'EQ'.
  r_beskz-low = 'E'.
  append r_beskz.

  r_beskz-sign = 'I'.
  r_beskz-option = 'EQ'.
  r_beskz-low = 'X'.
  append r_beskz.


  loop at s_beskz.

    if not s_beskz-low in r_beskz
       and not s_beskz-low is initial.
      message e001(00) with 'Somethings not right'.
    endif.

    if not  s_beskz-high in r_beskz
     and not s_beskz-high is initial.
      message e001(00) with 'Somethings not right'.
    endif.

  endloop.

&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>Mon, 21 Aug 2006 19:22:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/at-selection-screen/m-p/1546546#M248446</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-08-21T19:22:39Z</dc:date>
    </item>
  </channel>
</rss>

