<?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 and range in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-and-range/m-p/5670675#M1289488</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Mr. Andre,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can try below logic also&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF sobkz CA 'VWEKMQ'. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write your code further&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;Have a Nice Day,&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sujeet&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 09 Jun 2009 04:51:00 GMT</pubDate>
    <dc:creator>SujeetMishra</dc:creator>
    <dc:date>2009-06-09T04:51:00Z</dc:date>
    <item>
      <title>selection and range</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-and-range/m-p/5670670#M1289483</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hy expert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the module is MM,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have a select option: sobkz for mseg-sobkz.&lt;/P&gt;&lt;P&gt;but i want to check that the value the user enter is  only&lt;/P&gt;&lt;P&gt;                              'V', or&lt;/P&gt;&lt;P&gt;                              'W' or,&lt;/P&gt;&lt;P&gt;                              'E' or,&lt;/P&gt;&lt;P&gt;                              'K' or,&lt;/P&gt;&lt;P&gt;                              'M' or,&lt;/P&gt;&lt;P&gt;                              'Q' or.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how can i check that the sobkz is in those 6 value (or range of value)?&lt;/P&gt;&lt;P&gt;thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jun 2009 16:42:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-and-range/m-p/5670670#M1289483</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-08T16:42:51Z</dc:date>
    </item>
    <item>
      <title>Re: selection and range</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-and-range/m-p/5670671#M1289484</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please search in this forum with key word &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT_OPTIONS_RESTRICT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a®&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jun 2009 16:49:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-and-range/m-p/5670671#M1289484</guid>
      <dc:creator>former_member194669</dc:creator>
      <dc:date>2009-06-08T16:49:13Z</dc:date>
    </item>
    <item>
      <title>Re: selection and range</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-and-range/m-p/5670672#M1289485</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is a little tricky when checking a range of values, but for single values.  You can just loop the select-option and check it in the AT SELECTION-SCREEN event.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;AT selection-screen.

 loop at sobkz.
  if sobkz-sign = 'I'  
  and sobkz-option = 'EQ'
  and ( sobkz-low ne  'V'
       or sobkz-low ne  'W'
       or sobkz-low ne  'E
        or sobkz-low ne  'K'
        or sobkz-low ne 'M'
        or sobkz-low ne 'Q' ).

* Give message   .


 endif.
Endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Again, checking the range is tricky, cuz the user could enter 'A' for the low value and 'Z' for the high value, so how would you check it then, right?&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;Rich Heilman&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Rich Heilman on Jun 8, 2009 12:54 PM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Rich Heilman on Jun 8, 2009 12:58 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jun 2009 16:53:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-and-range/m-p/5670672#M1289485</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2009-06-08T16:53:45Z</dc:date>
    </item>
    <item>
      <title>Re: selection and range</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-and-range/m-p/5670673#M1289486</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Any way you are referring mseg-sobkz then user will get values which you mentioned only..&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;you can write your own logic to check entered value &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
SELECT-OPTIONS: sobkz FOR mseg-sobkz.

AT SELECTION-SCREEN ON sobkz.

  "Here you check values

  IF sobkz NE 'V' OR 
     sobkz NE 'W' OR 
     sobkz NE 'E' OR 
     sobkz NE 'K' OR  
     sobkz NE 'M' OR 
     sobkz NE 'Q' .
    MESSAGE 'Enter valid value' TYPE 'S'.
    LEAVE LIST-PROCESSING.
  ENDIF.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jun 2009 16:55:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-and-range/m-p/5670673#M1289486</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-08T16:55:18Z</dc:date>
    </item>
    <item>
      <title>Re: selection and range</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-and-range/m-p/5670674#M1289487</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 way...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
select option: sobkz for mseg-sobkz.


at selction-screen on sobkz.
loop at sobkz.
if sobkz-low   eq 'V'   or
    sobkz-low eq  'W' or
    sobkz-low eq  'E'  or
   sobkz-low  eq  'K'  or
    sobkz-low eq   'M' or
    sobkz-low eq   'Q' .
Else.
  message 'Invalid Entry' type 'E'.
endif.
endloop.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Prabhudas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jun 2009 16:55:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-and-range/m-p/5670674#M1289487</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-08T16:55:48Z</dc:date>
    </item>
    <item>
      <title>Re: selection and range</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-and-range/m-p/5670675#M1289488</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Mr. Andre,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can try below logic also&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF sobkz CA 'VWEKMQ'. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write your code further&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;Have a Nice Day,&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sujeet&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jun 2009 04:51:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-and-range/m-p/5670675#M1289488</guid>
      <dc:creator>SujeetMishra</dc:creator>
      <dc:date>2009-06-09T04:51:00Z</dc:date>
    </item>
    <item>
      <title>Re: selection and range</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-and-range/m-p/5670676#M1289489</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;My suggestion is to &lt;STRONG&gt;create a Z domain&lt;/STRONG&gt; with Values V,W,E,K,M,Q and &lt;STRONG&gt;attach that to a Z data element&lt;/STRONG&gt; and &lt;STRONG&gt;use that instead of SOBKZ.&lt;/STRONG&gt; in select options.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will solve your problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Karthik D&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jun 2009 05:55:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-and-range/m-p/5670676#M1289489</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-09T05:55:29Z</dc:date>
    </item>
    <item>
      <title>Re: selection and range</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-and-range/m-p/5670677#M1289490</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;You can use AT SELECTION SCREEN event will be triggered when the focus is on any of the fields on the selection screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Else you can use AT SELECTION SCREEN ON FIELD which will be triggered only when the focus is on that particular field mentioned in field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jayanth G&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jun 2009 06:04:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-and-range/m-p/5670677#M1289490</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-09T06:04:05Z</dc:date>
    </item>
    <item>
      <title>Re: selection and range</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-and-range/m-p/5670678#M1289491</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You should use check Table T148 of field SOBKZ for validation. &lt;/P&gt;&lt;P&gt;Check the code below...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
tables: mseg,T148.

select-options: s_sobkz for mseg-sobkz.


start-of-selection.
  select * from T148
  where sobkz in s_sobkz.
    if not ( T148-sobkz eq 'V' or
       T148-sobkz eq 'W' or
       T148-sobkz eq 'E' or
       T148-sobkz eq 'K' or
       T148-sobkz eq 'M' or
       T148-sobkz eq 'Q' ).
       Message E999(FG) with
       'Please do not give-' T148-sobkz ' in your selection.'.
     endif.
  endselect.

***Write your remaining code here
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jun 2009 07:48:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-and-range/m-p/5670678#M1289491</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-09T07:48:34Z</dc:date>
    </item>
    <item>
      <title>Re: selection and range</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-and-range/m-p/5670679#M1289492</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thankx! by using the zdomain i solved my problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jun 2009 14:19:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-and-range/m-p/5670679#M1289492</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-09T14:19:11Z</dc:date>
    </item>
    <item>
      <title>Re: selection and range</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-and-range/m-p/5670680#M1289493</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thank yall. i've learned a lot!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jun 2009 14:20:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-and-range/m-p/5670680#M1289493</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-09T14:20:32Z</dc:date>
    </item>
  </channel>
</rss>

