<?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: Select - Options in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/3980959#M950902</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 -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at selection-screen on s_bukrs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if '1000' in s_bukrs or '0009' in s_bukrs.&lt;/P&gt;&lt;P&gt;  flag = 1.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;...Reward if useful&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Jun 2008 12:30:27 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-06-18T12:30:27Z</dc:date>
    <item>
      <title>Select - Options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/3980955#M950898</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi experts,&lt;/P&gt;&lt;P&gt;I have doubt in select-options. Please see the below code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES: ekko.&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS: s_bukrs FOR ekko-bukrs.&lt;/P&gt;&lt;P&gt;DATA: flag TYPE i.&lt;/P&gt;&lt;P&gt;flag = 0.&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN.&lt;/P&gt;&lt;P&gt;  IF NOT s_bukrs IS INITIAL.&lt;/P&gt;&lt;P&gt;    LOOP AT s_bukrs.&lt;/P&gt;&lt;P&gt;      IF s_bukrs EQ '1000' OR s_bukrs EQ '0009'.&lt;/P&gt;&lt;P&gt;        IF sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;          flag = 1.&lt;/P&gt;&lt;P&gt;        ENDIF.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;    ENDLOOP.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;During execution in the selection screen I am entering 1000,&lt;/P&gt;&lt;P&gt;0009, CRAB, TRN1  for s_bukrs.&lt;/P&gt;&lt;P&gt;But the If condition   &lt;STRONG&gt;IF s_bukrs EQ '1000' OR s_bukrs EQ '0009'.&lt;/STRONG&gt; is getting failed. Please let me know the correct syntax. i.e if s_bukrs is either 1000 or 0009 the variable flag should be set to 1. But its not happening.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Neethu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jun 2008 12:27:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/3980955#M950898</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-18T12:27:11Z</dc:date>
    </item>
    <item>
      <title>Re: Select - Options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/3980956#M950899</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;write as :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT s_bukrs.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;IF s_bukrs-low EQ '1000' OR s_bukrs-low EQ '0009'.&lt;/STRONG&gt;IF sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;flag = 1.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jun 2008 12:29:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/3980956#M950899</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-18T12:29:06Z</dc:date>
    </item>
    <item>
      <title>Re: Select - Options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/3980957#M950900</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 forgot to specify the field for the value in select-option header line:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
LOOP AT s_bukrs.
  IF s_bukrs-low EQ '1000' OR s_bukrs-low EQ '0009'.
*     IF sy-subrc EQ 0.
    flag = 1.
*     ENDIF.
  ENDIF.
ENDLOOP.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By the way: A usual select option has got two value fields (LOW and HIGH). If you want to use the code above it could be better to restrict the select option e.g. with &lt;SPAN __default_attr="Courier New" __jive_macro_name="font"&gt;NO INTERVALS&lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[Restricting Entry to Single Fields|http://help.sap.com/saphelp_nw70/helpdata/EN/9f/dba76d35c111d1829f0000e829fbfe/frameset.htm|]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards Rudi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jun 2008 12:29:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/3980957#M950900</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-18T12:29:32Z</dc:date>
    </item>
    <item>
      <title>Re: Select - Options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/3980958#M950901</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;do this to ur code &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES: ekko.&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS: s_bukrs FOR ekko-bukrs.&lt;/P&gt;&lt;P&gt;DATA: flag TYPE i.&lt;/P&gt;&lt;P&gt;flag = 0.&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN.&lt;/P&gt;&lt;P&gt;IF NOT s_bukrs IS INITIAL.&lt;/P&gt;&lt;P&gt;LOOP AT s_bukrs.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;IF s_bukrs-low EQ '1000' OR s_bukrs-high EQ '0009'.&lt;/STRONG&gt;IF sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;flag = 1.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers&lt;/P&gt;&lt;P&gt;snehi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jun 2008 12:29:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/3980958#M950901</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-18T12:29:48Z</dc:date>
    </item>
    <item>
      <title>Re: Select - Options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/3980959#M950902</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 -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at selection-screen on s_bukrs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if '1000' in s_bukrs or '0009' in s_bukrs.&lt;/P&gt;&lt;P&gt;  flag = 1.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;...Reward if useful&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jun 2008 12:30:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/3980959#M950902</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-18T12:30:27Z</dc:date>
    </item>
    <item>
      <title>Re: Select - Options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/3980960#M950903</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 -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at selection-screen on s_bukrs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if '1000' in s_bukrs or '0009' in s_bukrs.&lt;/P&gt;&lt;P&gt;  flag = 1.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;...Reward if useful&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jun 2008 12:31:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/3980960#M950903</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-18T12:31:10Z</dc:date>
    </item>
    <item>
      <title>Re: Select - Options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/3980961#M950904</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;Use the following code. &lt;/P&gt;&lt;P&gt;U need to use s_bukrs-low  instead of s_bukrs&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES: ekko.&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS: s_bukrs FOR ekko-bukrs.&lt;/P&gt;&lt;P&gt;DATA: flag TYPE i.&lt;/P&gt;&lt;P&gt;flag = 0.&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN.&lt;/P&gt;&lt;P&gt;IF NOT s_bukrs IS INITIAL.&lt;/P&gt;&lt;P&gt;LOOP AT s_bukrs.&lt;/P&gt;&lt;P&gt;IF s_bukrs-low EQ '1000' OR s_bukrs-low EQ '0009'.&lt;/P&gt;&lt;P&gt;IF sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;flag = 1.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jun 2008 12:31:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/3980961#M950904</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-18T12:31:20Z</dc:date>
    </item>
    <item>
      <title>Re: Select - Options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/3980962#M950905</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;TABLES: ekko.&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS: s_bukrs FOR ekko-bukrs.&lt;/P&gt;&lt;P&gt;DATA: flag TYPE i.&lt;/P&gt;&lt;P&gt;flag = 0.&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN.&lt;/P&gt;&lt;P&gt;IF NOT s_bukrs IS INITIAL.&lt;/P&gt;&lt;P&gt;LOOP AT s_bukrs where s_bukrs-low = '1000'&lt;/P&gt;&lt;P&gt;                                 or s_bukrs-low = '0009'.&lt;/P&gt;&lt;P&gt;flag = 1.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps u.&lt;/P&gt;&lt;P&gt;regards.&lt;/P&gt;&lt;P&gt;Manjari.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jun 2008 12:38:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/3980962#M950905</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-18T12:38:24Z</dc:date>
    </item>
    <item>
      <title>Re: Select - Options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/3980963#M950906</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;TABLES: ekko.&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS: s_bukrs FOR ekko-bukrs.&lt;/P&gt;&lt;P&gt;DATA: flag TYPE i.&lt;/P&gt;&lt;P&gt;flag = 0.&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN.&lt;/P&gt;&lt;P&gt;IF NOT s_bukrs IS INITIAL.&lt;/P&gt;&lt;P&gt;LOOP AT s_bukrs where s_bukrs-low = '1000'&lt;/P&gt;&lt;P&gt;                                 or s_bukrs-low = '0009'.&lt;/P&gt;&lt;P&gt;flag = 1.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps u.&lt;/P&gt;&lt;P&gt;regards.&lt;/P&gt;&lt;P&gt;Manjari.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jun 2008 12:38:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/3980963#M950906</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-18T12:38:26Z</dc:date>
    </item>
    <item>
      <title>Re: Select - Options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/3980964#M950907</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi neethu  &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;U r working with select options and many of our people has given replyes.  But u need to consider the S_BUKRS-SIGN also while searching for the bukrs. There can be I -&amp;gt; INCLUDE E-&amp;gt;EXCLUDE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So instead of doing all these validations take an internal table with field bukrs and hit the table t001 and get the company codes which can be considered.  Then loop through that table and check for your company code and set the flag.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This would be best solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Venkat.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jun 2008 12:47:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/3980964#M950907</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-18T12:47:44Z</dc:date>
    </item>
  </channel>
</rss>

