<?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/2879925#M676342</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;TABLES:ekko.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPE-POOLS sscr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME .&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS :s_ebeln FOR ekko-ebeln .&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN END OF BLOCK b1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME.&lt;/P&gt;&lt;P&gt;PARAMETERS: r1  RADIOBUTTON GROUP rad1 DEFAULT 'X',&lt;/P&gt;&lt;P&gt;            r2  RADIOBUTTON GROUP rad1,&lt;/P&gt;&lt;P&gt;            r3  RADIOBUTTON GROUP rad1.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN END OF BLOCK b2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA  wf_dest TYPE gsval.&lt;/P&gt;&lt;P&gt;data: zs_ebeln type zst_ebeln occurs 0.&lt;/P&gt;&lt;P&gt;TYPES: BEGIN OF ty_ebeln,&lt;/P&gt;&lt;P&gt;       s_ebeln TYPE ekko-ebeln,&lt;/P&gt;&lt;P&gt;       END OF ty_ebeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: int_ebeln TYPE TABLE OF ty_ebeln WITH HEADER LINE,&lt;/P&gt;&lt;P&gt;       wa_ebeln TYPE ty_ebeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: int_sel TYPE TABLE OF rsdsselopt,&lt;/P&gt;&lt;P&gt;     wa_sel TYPE  rsdsselopt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------" /&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;------------&lt;DEL&gt;-select-options&lt;/DEL&gt;--------------------&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT s_ebeln INTO wa_sel.&lt;/P&gt;&lt;P&gt;  IF s_ebeln-high IS INITIAL.&lt;/P&gt;&lt;P&gt;    wa_ebeln-s_ebeln = wa_sel-low.&lt;/P&gt;&lt;P&gt;    APPEND wa_sel-low TO int_ebeln.&lt;/P&gt;&lt;P&gt;  ELSEIF s_ebeln-low IS INITIAL.&lt;/P&gt;&lt;P&gt;    DO.&lt;/P&gt;&lt;P&gt;      wa_sel-high = wa_sel-high.&lt;/P&gt;&lt;P&gt;      wa_sel-high = s_ebeln-high.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      APPEND wa_sel TO int_ebeln.&lt;/P&gt;&lt;P&gt;      CLEAR wa_sel.&lt;/P&gt;&lt;P&gt;    ENDDO.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*s_ebeln[] = int_ebeln[].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*LOOP AT int_ebeln into wa_ebeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;zs_ebeln[] = int_ebeln[].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'YSMP_SERVICE_MASTER_UPDATE'&lt;/P&gt;&lt;P&gt;  TABLES&lt;/P&gt;&lt;P&gt;    S_KONNR = zs_ebeln[]&lt;/P&gt;&lt;P&gt;    output  = int_update.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 24 Sep 2007 11:41:47 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-09-24T11:41:47Z</dc:date>
    <item>
      <title>select options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/2879922#M676339</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am writing an normal report in se38&lt;/P&gt;&lt;P&gt;in which i am calling an functional module..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Functional module works like this below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wil get list of input through tables and generates output in tables&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my requirement is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have to pass the values in report which i am getting in selction options&lt;/P&gt;&lt;P&gt;to functional module and print the output of the functional module in the &lt;/P&gt;&lt;P&gt;report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not able to pass the selection option values which i am getting in &lt;/P&gt;&lt;P&gt;report to the functional module&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have to use ranges i guess?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can i have the code for this how to proceed further?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;senthil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Sep 2007 11:34:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/2879922#M676339</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-24T11:34:13Z</dc:date>
    </item>
    <item>
      <title>Re: select options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/2879923#M676340</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;ssume that you want to import your select-options into your function module(s). Since select-options are, by default, itabs with header lines you have to pass your select-options as following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'Z_...'&lt;/P&gt;&lt;P&gt;  TABLES&lt;/P&gt;&lt;P&gt;    it_selopt = s_akont[].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The TABLES parameter it_selopt could be of type ANY or better of type TABLE.&lt;/P&gt;&lt;P&gt;If you want to use generic select-option structure you can use RSDSSELOPT and the table type TT_RSDSSELOPT. In this case you would need to copy your select-options from s_akont to a generic type s_generic (of type RSDSSELOPT).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Uwe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Sep 2007 11:38:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/2879923#M676340</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-24T11:38:14Z</dc:date>
    </item>
    <item>
      <title>Re: select options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/2879924#M676341</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Its simple.&lt;/P&gt;&lt;P&gt;Use&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS &amp;lt;seltab&amp;gt; FOR &amp;lt;f&amp;gt;.&lt;/P&gt;&lt;P&gt;And in the select query check the values using where condition and retrieve the data.&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;&amp;lt;b&amp;gt;&amp;lt;REMOVED BY MODERATOR&amp;gt;&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Alvaro Tejada Galindo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Sep 2007 11:39:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/2879924#M676341</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-24T11:39:51Z</dc:date>
    </item>
    <item>
      <title>Re: select options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/2879925#M676342</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;TABLES:ekko.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPE-POOLS sscr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME .&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS :s_ebeln FOR ekko-ebeln .&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN END OF BLOCK b1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME.&lt;/P&gt;&lt;P&gt;PARAMETERS: r1  RADIOBUTTON GROUP rad1 DEFAULT 'X',&lt;/P&gt;&lt;P&gt;            r2  RADIOBUTTON GROUP rad1,&lt;/P&gt;&lt;P&gt;            r3  RADIOBUTTON GROUP rad1.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN END OF BLOCK b2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA  wf_dest TYPE gsval.&lt;/P&gt;&lt;P&gt;data: zs_ebeln type zst_ebeln occurs 0.&lt;/P&gt;&lt;P&gt;TYPES: BEGIN OF ty_ebeln,&lt;/P&gt;&lt;P&gt;       s_ebeln TYPE ekko-ebeln,&lt;/P&gt;&lt;P&gt;       END OF ty_ebeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: int_ebeln TYPE TABLE OF ty_ebeln WITH HEADER LINE,&lt;/P&gt;&lt;P&gt;       wa_ebeln TYPE ty_ebeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: int_sel TYPE TABLE OF rsdsselopt,&lt;/P&gt;&lt;P&gt;     wa_sel TYPE  rsdsselopt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------" /&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;------------&lt;DEL&gt;-select-options&lt;/DEL&gt;--------------------&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT s_ebeln INTO wa_sel.&lt;/P&gt;&lt;P&gt;  IF s_ebeln-high IS INITIAL.&lt;/P&gt;&lt;P&gt;    wa_ebeln-s_ebeln = wa_sel-low.&lt;/P&gt;&lt;P&gt;    APPEND wa_sel-low TO int_ebeln.&lt;/P&gt;&lt;P&gt;  ELSEIF s_ebeln-low IS INITIAL.&lt;/P&gt;&lt;P&gt;    DO.&lt;/P&gt;&lt;P&gt;      wa_sel-high = wa_sel-high.&lt;/P&gt;&lt;P&gt;      wa_sel-high = s_ebeln-high.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      APPEND wa_sel TO int_ebeln.&lt;/P&gt;&lt;P&gt;      CLEAR wa_sel.&lt;/P&gt;&lt;P&gt;    ENDDO.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*s_ebeln[] = int_ebeln[].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*LOOP AT int_ebeln into wa_ebeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;zs_ebeln[] = int_ebeln[].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'YSMP_SERVICE_MASTER_UPDATE'&lt;/P&gt;&lt;P&gt;  TABLES&lt;/P&gt;&lt;P&gt;    S_KONNR = zs_ebeln[]&lt;/P&gt;&lt;P&gt;    output  = int_update.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Sep 2007 11:41:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/2879925#M676342</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-24T11:41:47Z</dc:date>
    </item>
    <item>
      <title>Re: select options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/2879926#M676343</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 function module for the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                                                                        &lt;/P&gt;&lt;P&gt;  call function 'COMPLEX_SELECTIONS_DIALOG'                             &lt;/P&gt;&lt;P&gt;       exporting                                                        &lt;/P&gt;&lt;P&gt;            text      = 'Some text'                                     &lt;/P&gt;&lt;P&gt;       tables                                                           &lt;/P&gt;&lt;P&gt;            range     = lr_datum                                        &lt;/P&gt;&lt;P&gt;       exceptions                                                       &lt;/P&gt;&lt;P&gt;            cancelled = 0                                               &lt;/P&gt;&lt;P&gt;            others    = 1.                                                                                &lt;/P&gt;&lt;P&gt;if not sy-subrc is initial.                                           &lt;/P&gt;&lt;P&gt;    clear: lr_datum, lr_datum[].                                        &lt;/P&gt;&lt;P&gt;  endif.                                                                 &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;&amp;lt;b&amp;gt;&amp;lt;REMOVED BY MODERATOR&amp;gt;&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Alvaro Tejada Galindo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Sep 2007 11:45:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/2879926#M676343</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-24T11:45: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/2879927#M676344</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;U have to go for tables paramater in ur function module..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION &amp;lt;function module name&amp;gt;&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;it_selopt = s_selopt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now in the source code of the function module  u can write  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select matnr from mara into table it_selopt where matnr in s_matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now u will get the data into table it_selopt,whcih u can use in the program after the FM..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;&amp;lt;REMOVED BY MODERATOR&amp;gt;&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nagaraj&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Alvaro Tejada Galindo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Sep 2007 11:53:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/2879927#M676344</guid>
      <dc:creator>former_member404244</dc:creator>
      <dc:date>2007-09-24T11:53:01Z</dc:date>
    </item>
  </channel>
</rss>

