<?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: Passing a select-option like parameter in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-a-select-option-like-parameter/m-p/6176008#M1372519</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Fantastic!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have solved by your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 13 Oct 2009 14:51:33 GMT</pubDate>
    <dc:creator>former_member1161170</dc:creator>
    <dc:date>2009-10-13T14:51:33Z</dc:date>
    <item>
      <title>Passing a select-option like parameter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-a-select-option-like-parameter/m-p/6176006#M1372517</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'm a newbie in Abap and I suppose I'm mistaking everything.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've this code in a class:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;PUBLIC SECTION.
    METHODS: constructor IMPORTING nometabella TYPE zcolt_rf0000-classe
                                   Selezione TYPE table of RSDSSELOPT.
[...]
CLASS zcolt_rf IMPLEMENTATION.
    SELECT * FROM vbrk INTO TABLE &amp;lt;table&amp;gt;
       WHERE vbeln IN selezione.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to get the records in a class, not in the report. So I must pass the select-options values like a parameter.&lt;/P&gt;&lt;P&gt;When I active the class, it's perfect.&lt;/P&gt;&lt;P&gt;When I active the report I get this error: "Unable to interpret RSDSSELOPT. Possible causes of error: Incorrect spelling or comma error".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code in the report is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;[...]
DATA:    padre TYPE REF TO zcolt_rf.
DATA: twa_sel TYPE TABLE OF rsdsselopt WITH HEADER LINE.

[...]
SELECT-OPTIONS s_vbeln FOR vbrk-vbeln.
[...]

 LOOP AT s_vbeln.
   MOVE-CORRESPONDING s_vbeln TO twa_sel.
   APPEND twa_sel.
 ENDLOOP.

CREATE OBJECT padre
       EXPORTING nometabella = t_class1
                 selezione   = twa_sel.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What's wrong?&lt;/P&gt;&lt;P&gt;Thanks for your help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Matt on Oct 13, 2009 4:33 PM - added {code] tags&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Oct 2009 12:26:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/passing-a-select-option-like-parameter/m-p/6176006#M1372517</guid>
      <dc:creator>former_member1161170</dc:creator>
      <dc:date>2009-10-13T12:26:59Z</dc:date>
    </item>
    <item>
      <title>Re: Passing a select-option like parameter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-a-select-option-like-parameter/m-p/6176007#M1372518</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you can pass select-option to method of class.. you have to use RANGE type for that.. below is snapshot which might help..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CLASS cl_XXXX DEFINITION DEFERRED .

TYPES : r_werks  TYPE RANGE OF t001w-werks         ,
             ty_werks TYPE LINE OF r_werks                     .

DATA : ob_data   TYPE REF TO cl_XXXX .

SELECT-OPTIONS : s_werks FOR t001w-werks         MEMORY ID wrk    OBLIGATORY.

CREATE OBJECT ob_data .
ob_data-&amp;gt;set_plant( i_werks = s_werks[] ) .&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CLASS cl_XXXX DEFINITION .
  PUBLIC SECTION .
    METHODS :
        set_plant    IMPORTING i_werks TYPE r_werks    .
ENDCLASS.

CLASS cl_inbound_loadboard IMPLEMENTATION .

  METHOD set_plant .

    DATA : ls_werks TYPE t001w-werks .

    me-&amp;gt;i_werks = i_werks .

    SELECT werks
      INTO ls_werks
      FROM t001w
     WHERE werks IN me-&amp;gt;i_werks .

    ENDSELECT .

  ENDMETHOD .                    "set_plant

ENDCLASS .                    "cl_XXXX&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Oct 2009 12:41:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/passing-a-select-option-like-parameter/m-p/6176007#M1372518</guid>
      <dc:creator>Pawan_Kesari</dc:creator>
      <dc:date>2009-10-13T12:41:05Z</dc:date>
    </item>
    <item>
      <title>Re: Passing a select-option like parameter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-a-select-option-like-parameter/m-p/6176008#M1372519</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Fantastic!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have solved by your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Oct 2009 14:51:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/passing-a-select-option-like-parameter/m-p/6176008#M1372519</guid>
      <dc:creator>former_member1161170</dc:creator>
      <dc:date>2009-10-13T14:51:33Z</dc:date>
    </item>
    <item>
      <title>Re: Passing a select-option like parameter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-a-select-option-like-parameter/m-p/6176009#M1372520</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I needed this solution as well, but my class is a global class.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to send the select option s_bukrs to my method in the global class. Unfortunately, the global class can't see my definintion of&lt;/P&gt;&lt;P&gt;   &lt;STRONG&gt;type r_bukrs  TYPE RANGE OF t001-bukrs.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; as it is defined in the report, not the class. So I can't successfully check/activate the class.       &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a similar solution to this for global classes? I really want to keep this as a globabl class as I want to reuse this in other reports.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Scott&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Mar 2011 23:44:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/passing-a-select-option-like-parameter/m-p/6176009#M1372520</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-03-07T23:44:21Z</dc:date>
    </item>
    <item>
      <title>Re: Passing a select-option like parameter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-a-select-option-like-parameter/m-p/6176010#M1372521</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Scott,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This thread is marked as answered. Please create a new thread and ask your question there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Neil.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Mar 2011 23:57:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/passing-a-select-option-like-parameter/m-p/6176010#M1372521</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-03-07T23:57:03Z</dc:date>
    </item>
  </channel>
</rss>

