<?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 option in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-option/m-p/3777752#M908981</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use select options in the following way :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
Select-Options s_kunnr for kna1-kunnr.

or 

Select-Options s_kunnr for kna1-kunnr Obligatory.
*This will make the field to mandatory.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Reward If found helpful&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 02 May 2008 14:43:25 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-05-02T14:43:25Z</dc:date>
    <item>
      <title>Select option</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-option/m-p/3777749#M908978</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;Can anyone please tell me how should we use the select--options in the selection screen. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. How to put it in the slection screen&lt;/P&gt;&lt;P&gt;2. How should I get the values from the select option in the program to process it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Swetha.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 May 2008 14:38:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-option/m-p/3777749#M908978</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-02T14:38:06Z</dc:date>
    </item>
    <item>
      <title>Re: Select option</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-option/m-p/3777750#M908979</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Swetha,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; SELECT-OPTIONS are used for the range selection from selection screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SYNTAX:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Select-options: s_vbeln for vbak-vbeln no-extension no intervals.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Field Declared with SELECT-OPTIONS is an Internal TABLE having 4 Fields:&lt;/P&gt;&lt;P&gt;1. LOW    - Low Value&lt;/P&gt;&lt;P&gt;2. HIGH   - High Value&lt;/P&gt;&lt;P&gt;3. SIGN   - Sign is always I (for Include) or E (for Exclude)&lt;/P&gt;&lt;P&gt;4. OPTION - EQ        (Equal) &lt;/P&gt;&lt;P&gt;            BT        (Between)) &lt;/P&gt;&lt;P&gt;            CP        (Contain Pattern) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eg:&lt;/P&gt;&lt;P&gt;If we want to get Flight Details from Table SFLIGHT having a particular CARRID, then we go for &lt;STRONG&gt;PARAMETERS&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;and If we want Details of More then 1 Flight, then we can use &lt;STRONG&gt;SELECT-OPTIONS&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Refer Below Code:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;TABLES:
  SLFIGHT.

DATA:
  t_sflight TYPEE TABLE OF SFLIGHT.

SELECT-OPTIONS:
  s_carrid FOR sflight-carrid.

SELECT *
  FROM SFLIGHT
  INTO TABLE t_sflight
 WHERE carrid IN s_carrid.

LOOP AT t_sflight INTO sflight.
  write:
    / sflight-carrid.
ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sunil.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 May 2008 14:39:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-option/m-p/3777750#M908979</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-02T14:39:36Z</dc:date>
    </item>
    <item>
      <title>Re: Select option</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-option/m-p/3777751#M908980</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You just have to declare the select option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS : s_invprg FOR impr-prnam.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then use it in your selects.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SELECT prnam&lt;/P&gt;&lt;P&gt;         gjahr&lt;/P&gt;&lt;P&gt;         post1&lt;/P&gt;&lt;P&gt;      INTO TABLE i_imtt&lt;/P&gt;&lt;P&gt;      FROM imtt&lt;/P&gt;&lt;P&gt;     WHERE spras EQ sy-langu&lt;/P&gt;&lt;P&gt;       AND prnam IN s_invprg&lt;/P&gt;&lt;P&gt;       AND gjahr IN s_fiscal.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 May 2008 14:41:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-option/m-p/3777751#M908980</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-02T14:41:35Z</dc:date>
    </item>
    <item>
      <title>Re: Select option</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-option/m-p/3777752#M908981</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use select options in the following way :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
Select-Options s_kunnr for kna1-kunnr.

or 

Select-Options s_kunnr for kna1-kunnr Obligatory.
*This will make the field to mandatory.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Reward If found helpful&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 May 2008 14:43:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-option/m-p/3777752#M908981</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-02T14:43:25Z</dc:date>
    </item>
    <item>
      <title>Re: Select option</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-option/m-p/3777753#M908982</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please check tcode - abapdocu, will provide all abap statement example report. &lt;/P&gt;&lt;P&gt;For Select-option please report -  &lt;/P&gt;&lt;P&gt;DEMO_SEL_SCREEN_SELECT_OPTIONS.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 May 2008 14:45:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-option/m-p/3777753#M908982</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-02T14:45:08Z</dc:date>
    </item>
    <item>
      <title>Re: Select option</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-option/m-p/3777754#M908983</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;
A simple example...

TABLES: SKB1

SELECTION-SCREEN BEGIN OF BLOCK block2 WITH FRAME TITLE text-002.
SELECT-OPTIONS: s_saknr FOR skb1-saknr MEMORY ID sak.
SELECTION-SCREEN END OF BLOCK block2.


START-OF-SELECTION.

IF NOT S_SAKNR[] IS INITIAL. 
SELECT BUKRS SAKNR
	INTO TABLE GT_SAKNR
	FROM SKB1
	WHERE BUKRS EQ P_BUKRS
	AND SAKNR IN S_SAKNR.
IF SY-SUBRC EQ 0.
*------------------Process the data here
ENDIF.

ENDIF.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;SKJ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 May 2008 14:45:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-option/m-p/3777754#M908983</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-02T14:45:58Z</dc:date>
    </item>
  </channel>
</rss>

