<?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 use in select statement in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-use-in-select-statement/m-p/4226372#M1009616</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You have missed table in the statement&lt;/P&gt;&lt;P&gt;  INTO CORRESPONDING FIELDS OF &lt;STRONG&gt;TABLE&lt;/STRONG&gt;  XXXX&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and also try to give this..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT *&lt;/P&gt;&lt;P&gt;  INTO CORRESPONDING FIELDS OF TABLE  XXXX&lt;/P&gt;&lt;P&gt; FROM ZPPP &lt;/P&gt;&lt;P&gt;WHERE KUNNR IN &lt;STRONG&gt;S_KUNNR[].&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 28 Jul 2008 15:33:30 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-07-28T15:33:30Z</dc:date>
    <item>
      <title>SELECT OPTIONS use in select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-use-in-select-statement/m-p/4226368#M1009612</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;I have defined my selection screen in the main program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;selection-screen begin of screen 0101 as subscreen.&lt;/P&gt;&lt;P&gt;selection-screen begin of block b1.&lt;/P&gt;&lt;P&gt;select-options:  S_KUNNR for  KNA1-KUNNR,&lt;/P&gt;&lt;P&gt;selection-screen end of block b1.&lt;/P&gt;&lt;P&gt;selection-screen end of screen 0101.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then in an include in the same module pool, i try to use this in select statement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT * INTO CORRESPONDING FIELDS OF XXX FROM ZPPP WHERE KUNNR IN S_KUNNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I get  an error saying " the IN operator with S_KUNNR is neither followed by an internal table nor by a valuelist "..what does this mean ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jul 2008 15:25:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-use-in-select-statement/m-p/4226368#M1009612</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-28T15:25:04Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT OPTIONS use in select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-use-in-select-statement/m-p/4226369#M1009613</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Corrected code &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT *
  INTO CORRESPONDING FIELDS OF TABLE  XXXX
 FROM ZPPP 
WHERE KUNNR IN S_KUNNR.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Table&lt;/STRONG&gt; missing&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jul 2008 15:27:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-use-in-select-statement/m-p/4226369#M1009613</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-28T15:27:33Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT OPTIONS use in select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-use-in-select-statement/m-p/4226370#M1009614</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SELECT *  FROM ZPPP&lt;/P&gt;&lt;P&gt;INTO CORRESPONDING FIELDS OF it_zpp &lt;/P&gt;&lt;P&gt; WHERE KUNNR IN S_KUNNR.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jul 2008 15:29:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-use-in-select-statement/m-p/4226370#M1009614</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-28T15:29:51Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT OPTIONS use in select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-use-in-select-statement/m-p/4226371#M1009615</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;it works for me:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;report zamit_0001.
TABLES:kna1.
selection-screen begin of screen 0101 as subscreen.
selection-screen begin of block b1.
select-options: S_KUNNR for KNA1-KUNNR.
selection-screen end of block b1.
selection-screen end of screen 0101.
START-OF-SELECTION.
data:BEGIN OF itab OCCURS 0,
  kunnr type KUNNR,
  END OF itab.
  
SELECT * INTO CORRESPONDING FIELDS OF TABLE itab FROM kna1 WHERE KUNNR IN S_KUNNR.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Amit.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jul 2008 15:31:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-use-in-select-statement/m-p/4226371#M1009615</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-28T15:31:22Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT OPTIONS use in select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-use-in-select-statement/m-p/4226372#M1009616</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You have missed table in the statement&lt;/P&gt;&lt;P&gt;  INTO CORRESPONDING FIELDS OF &lt;STRONG&gt;TABLE&lt;/STRONG&gt;  XXXX&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and also try to give this..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT *&lt;/P&gt;&lt;P&gt;  INTO CORRESPONDING FIELDS OF TABLE  XXXX&lt;/P&gt;&lt;P&gt; FROM ZPPP &lt;/P&gt;&lt;P&gt;WHERE KUNNR IN &lt;STRONG&gt;S_KUNNR[].&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jul 2008 15:33:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-use-in-select-statement/m-p/4226372#M1009616</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-28T15:33:30Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT OPTIONS use in select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-use-in-select-statement/m-p/4226373#M1009617</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check the sample code...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REPORT  ztest_mod.

DATA: kunnr TYPE kunnr.

* Custom Selection Screen 0200
SELECTION-SCREEN BEGIN OF SCREEN 0200 AS SUBSCREEN.
SELECT-OPTIONS: s_kunnr FOR  kunnr.
SELECTION-SCREEN END OF SCREEN 0200.

AT SELECTION-SCREEN ON VALUE-REQUEST FOR s_kunnr-low.
  BREAK-POINT.

START-OF-SELECTION.
  "in this screen i have a button with function code 'SEARCH'
" and a subscreen area with name sub
  CALL SCREEN 100.

*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Module  STATUS_0100  OUTPUT
*&amp;amp;---------------------------------------------------------------------*
MODULE status_0100 OUTPUT.
  SET PF-STATUS 'STATUS'.
ENDMODULE.                    "status_0100 OUTPUT
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Module  USER_COMMAND_0100  INPUT
*&amp;amp;---------------------------------------------------------------------*
MODULE user_command_0100 INPUT.
  DATA: it_kunnr TYPE TABLE OF kna1.
  CASE sy-ucomm.
    WHEN 'SEARCH'.
      SELECT * FROM kna1
      INTO TABLE it_kunnr
      WHERE kunnr IN s_kunnr.
    WHEN 'BACK'.
      LEAVE TO SCREEN 0.
  ENDCASE.
ENDMODULE.                    "user_command_0100 INPUT&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in the flow logic..&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;PROCESS BEFORE OUTPUT.
*
  MODULE status_0100.
*
  CALL SUBSCREEN sub INCLUDING sy-repid '0200'.
*
PROCESS AFTER INPUT.
*
  MODULE user_command_0100.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Vijay Babu Dudla&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jul 2008 15:40:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-use-in-select-statement/m-p/4226373#M1009617</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-28T15:40:40Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT OPTIONS use in select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-use-in-select-statement/m-p/4226374#M1009618</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried all ur suggestions, still not resolved.. Please check..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tables: ZXXX.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;selection-screen begin of screen 0101 as subscreen.&lt;/P&gt;&lt;P&gt;selection-screen begin of block b1.&lt;/P&gt;&lt;P&gt;select-options: S_KUNNR for  ZXXX-KUNNR,&lt;/P&gt;&lt;P&gt;selection-screen end of block b1.&lt;/P&gt;&lt;P&gt;selection-screen end of screen 0101.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT * INTO CORRESPONDING FIELDS OF TABLE I_TAB FROM ZXXX  WHERE KUNNR IN S_KUNNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vijay I also tried S_KUNNR[] but it was not accepted !!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am lost !!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jul 2008 15:49:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-use-in-select-statement/m-p/4226374#M1009618</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-28T15:49:29Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT OPTIONS use in select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-use-in-select-statement/m-p/4226375#M1009619</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi check this example..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Parameters: p_name like sy-uname,&lt;/P&gt;&lt;P&gt;            p_pas like sy-uname lower case.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN skip 1.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN BEGIN OF LINE.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN COMMENT 2(70) text-001.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN END OF LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN END OF SCREEN 500.&lt;/P&gt;&lt;P&gt;title = 'HAI VENKAT LOGIN PLEASE'.&lt;/P&gt;&lt;P&gt;CALL SELECTION-SCREEN '0500' STARTING AT 10 10 ending at 70 14.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: begin of it_user occurs 0,&lt;/P&gt;&lt;P&gt;      name like sy-uname,&lt;/P&gt;&lt;P&gt;      password like sy-uname,&lt;/P&gt;&lt;P&gt;      end of it_user.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it_user-name = 'venkat'.&lt;/P&gt;&lt;P&gt;it_user-password = 'venkat'.&lt;/P&gt;&lt;P&gt;append it_user.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN OUTPUT.&lt;/P&gt;&lt;P&gt;loop at screen.&lt;/P&gt;&lt;P&gt;  check screen-name eq 'P_PAS'.&lt;/P&gt;&lt;P&gt;  move: 1 to screen-invisible.&lt;/P&gt;&lt;P&gt;  modify screen.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;start-of-selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if p_pas = 'venkat'.&lt;/P&gt;&lt;P&gt;write:/ 'this is working'.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jul 2008 16:08:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-use-in-select-statement/m-p/4226375#M1009619</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-28T16:08:14Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT OPTIONS use in select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-use-in-select-statement/m-p/4226376#M1009620</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI ,&lt;/P&gt;&lt;P&gt;you are getting this message because you are writing the select statement before you defined the selection screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;all you need to do is place the include after the selection screen definition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for ex: see this code when you execute this code you will get the same message&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tables: kna1.&lt;/P&gt;&lt;P&gt;data: i_tab like kna1 occurs 0 with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT * INTO CORRESPONDING FIELDS OF TABLE I_TAB FROM kna1 WHERE KUNNR IN S_KUNNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;selection-screen begin of screen 0101 as subscreen.&lt;/P&gt;&lt;P&gt;selection-screen begin of block b1.&lt;/P&gt;&lt;P&gt;select-options: S_KUNNR for kna1-KUNNR.&lt;/P&gt;&lt;P&gt;selection-screen end of block b1.&lt;/P&gt;&lt;P&gt;selection-screen end of screen 0101.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;so replace the code with&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;Tables: kna1.&lt;/P&gt;&lt;P&gt;data: i_tab like kna1 occurs 0 with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;selection-screen begin of screen 0101 as subscreen.&lt;/P&gt;&lt;P&gt;selection-screen begin of block b1.&lt;/P&gt;&lt;P&gt;select-options: S_KUNNR for kna1-KUNNR.&lt;/P&gt;&lt;P&gt;selection-screen end of block b1.&lt;/P&gt;&lt;P&gt;selection-screen end of screen 0101.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT * INTO CORRESPONDING FIELDS OF TABLE I_TAB FROM kna1 WHERE KUNNR IN S_KUNNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then it will work..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kiran&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Kiran Kumar kanda on Jul 28, 2008 9:50 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jul 2008 16:19:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-use-in-select-statement/m-p/4226376#M1009620</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-28T16:19:51Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT OPTIONS use in select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-use-in-select-statement/m-p/4226377#M1009621</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes Kiran, u were absolutely right !! I moved the Include containing my modules(select) after the selection screen definition statements and it worked.. thanks a ton&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jul 2008 17:30:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-use-in-select-statement/m-p/4226377#M1009621</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-28T17:30:49Z</dc:date>
    </item>
  </channel>
</rss>

