<?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/4144281#M990861</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;Check this code...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;TABLES:
spfli.

DATA:
  t_spfli LIKE STANDARD TABLE OF spfli.
PARAMETERS:
     p_carrid  TYPE spfli-carrid,
     p_connid TYPE spfli-connid.

*Check the condition if the parameter is initial and proceed depending on logic

IF P_CONNID IS INITIAL
    SELECT * FROM spfli INTO TABLE t_spfli WHERE carrid NE  p_carrid.

ELSE IF P_carrid IS  INITIAL
    SELECT * FROM spfli INTO TABLE t_spfli WHERE carrid NE p_connid.

ELSE.
   SELECT * FROM spfli INTO TABLE t_spfli .

ENDIF.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loop the table and display entries if needed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this would help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Narin Nandivada.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 23 Jul 2008 11:23:36 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-07-23T11:23:36Z</dc:date>
    <item>
      <title>select option</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-option/m-p/4144279#M990859</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have 4 select options in program.If user will not enter one secect option on screen.&lt;/P&gt;&lt;P&gt;Then in program it should select the data for that select option which is not entered by user.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jul 2008 11:19:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-option/m-p/4144279#M990859</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-23T11:19:07Z</dc:date>
    </item>
    <item>
      <title>Re: select option</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-option/m-p/4144280#M990860</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;check if the select-option is initial .. as&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if s_s1[] is initial.&lt;/P&gt;&lt;P&gt;*--write select using this select option&lt;/P&gt;&lt;P&gt;elseif s_s2[] is initial.&lt;/P&gt;&lt;P&gt;*--write select using this select option&lt;/P&gt;&lt;P&gt;elseif s_s3[] is initial.&lt;/P&gt;&lt;P&gt;*--write select using this select option&lt;/P&gt;&lt;P&gt;elseif s_s4[] is initial.&lt;/P&gt;&lt;P&gt;*--write select using this select option&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jul 2008 11:23:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-option/m-p/4144280#M990860</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-23T11:23:03Z</dc:date>
    </item>
    <item>
      <title>Re: select option</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-option/m-p/4144281#M990861</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;Check this code...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;TABLES:
spfli.

DATA:
  t_spfli LIKE STANDARD TABLE OF spfli.
PARAMETERS:
     p_carrid  TYPE spfli-carrid,
     p_connid TYPE spfli-connid.

*Check the condition if the parameter is initial and proceed depending on logic

IF P_CONNID IS INITIAL
    SELECT * FROM spfli INTO TABLE t_spfli WHERE carrid NE  p_carrid.

ELSE IF P_carrid IS  INITIAL
    SELECT * FROM spfli INTO TABLE t_spfli WHERE carrid NE p_connid.

ELSE.
   SELECT * FROM spfli INTO TABLE t_spfli .

ENDIF.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loop the table and display entries if needed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this would help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Narin Nandivada.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jul 2008 11:23:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-option/m-p/4144281#M990861</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-23T11:23: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/4144282#M990862</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi you need to write the combinations like this for the 4 select options &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if s_s1[] is initial or s_s2[] is initial or  s_s3[] is initial.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;elseif ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;elseif..&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jul 2008 11:31:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-option/m-p/4144282#M990862</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-23T11:31:00Z</dc:date>
    </item>
    <item>
      <title>Re: select option</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-option/m-p/4144283#M990863</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;Each select-option is a Internal table in itself. So you can check of their blank value and write the code there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If s_one is initial.&lt;/P&gt;&lt;P&gt;   select query.&lt;/P&gt;&lt;P&gt;elseif s_two is initial.&lt;/P&gt;&lt;P&gt;  ....&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;Regards&lt;/P&gt;&lt;P&gt;Sumit Agarwal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jul 2008 11:44:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-option/m-p/4144283#M990863</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-23T11:44:34Z</dc:date>
    </item>
    <item>
      <title>Re: select option</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-option/m-p/4144284#M990864</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hii!&lt;/P&gt;&lt;P&gt;  Check out this sample code.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
REPORT z_sdn.

TABLES:
  sflight.
SELECT-OPTIONS:
  s_carrid FOR sflight-carrid,
  s_connid FOR sflight-connid.



IF s_connid IS INITIAL.
  SELECT connid
    FROM sflight
    INTO s_connid-low
   WHERE carrid IN s_carrid.
  ENDSELECT.
  APPEND s_connid.
ENDIF.



START-OF-SELECTION.
  IF s_connid IS INITIAL.
    SELECT connid
      FROM sflight
      INTO s_connid-low
     WHERE carrid IN s_carrid.
    ENDSELECT.
    APPEND s_connid.
  ENDIF.

  WRITE:
    s_carrid-low,
    s_connid-low.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Abhijeet&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jul 2008 11:49:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-option/m-p/4144284#M990864</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-23T11:49:19Z</dc:date>
    </item>
  </channel>
</rss>

