<?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 Error when passing parameter as selection options in report in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-when-passing-parameter-as-selection-options-in-report/m-p/6622969#M1440692</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 read in numerous threads here on forum that selection option parameters can be passed by just defining parameter as table type RSELOPTION which has lineype with sign, option, low and high.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Im getting error on following call:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
 CALL METHOD oref_myObject-&amp;gt;read_data
    EXPORTING
      it_numbers          = s_numbers
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;s_numbers is:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
SELECT-OPTIONS: s_numbers FOR someTable-someField,
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;read_data has one import parameter:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
it_numbers type RSELOPTION
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;error message is:&lt;/P&gt;&lt;P&gt;s_numbers is not type-compatible with formal parameter "IT_NUMBERS".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas on what I'm doing wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;Moderator message - Moved to the correct forum&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Rob Burbank on Jan 25, 2010 5:38 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 25 Jan 2010 22:31:44 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-01-25T22:31:44Z</dc:date>
    <item>
      <title>Error when passing parameter as selection options in report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-when-passing-parameter-as-selection-options-in-report/m-p/6622969#M1440692</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 read in numerous threads here on forum that selection option parameters can be passed by just defining parameter as table type RSELOPTION which has lineype with sign, option, low and high.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Im getting error on following call:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
 CALL METHOD oref_myObject-&amp;gt;read_data
    EXPORTING
      it_numbers          = s_numbers
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;s_numbers is:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
SELECT-OPTIONS: s_numbers FOR someTable-someField,
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;read_data has one import parameter:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
it_numbers type RSELOPTION
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;error message is:&lt;/P&gt;&lt;P&gt;s_numbers is not type-compatible with formal parameter "IT_NUMBERS".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas on what I'm doing wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;Moderator message - Moved to the correct forum&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Rob Burbank on Jan 25, 2010 5:38 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jan 2010 22:31:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-when-passing-parameter-as-selection-options-in-report/m-p/6622969#M1440692</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-25T22:31:44Z</dc:date>
    </item>
    <item>
      <title>Re: Error when passing parameter as selection options in report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-when-passing-parameter-as-selection-options-in-report/m-p/6622970#M1440693</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try changing the definition of s_numbers:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT-OPTIONS s_number FOR sometable-somefield.

DATA: r_number TYPE RANGE OF sometable-somefield.

r_number[] = s_number[].

CALL METHOD oref_myobject-&amp;gt;read_data
  EXPORTING
    it_numbers = r_number.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Added code&lt;/P&gt;&lt;P&gt;Edited by: Rob Burbank on Jan 25, 2010 5:49 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jan 2010 22:37:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-when-passing-parameter-as-selection-options-in-report/m-p/6622970#M1440693</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-25T22:37:31Z</dc:date>
    </item>
    <item>
      <title>Re: Error when passing parameter as selection options in report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-when-passing-parameter-as-selection-options-in-report/m-p/6622971#M1440694</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you, that worked fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Pellesap on Jan 26, 2010 12:10 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jan 2010 23:07:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-when-passing-parameter-as-selection-options-in-report/m-p/6622971#M1440694</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-25T23:07:44Z</dc:date>
    </item>
    <item>
      <title>Re: Error when passing parameter as selection options in report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-when-passing-parameter-as-selection-options-in-report/m-p/6622972#M1440695</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You cannot use tables with header lines in objects. SELECT-OPTIONS have header lines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jan 2010 14:04:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-when-passing-parameter-as-selection-options-in-report/m-p/6622972#M1440695</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-26T14:04:21Z</dc:date>
    </item>
  </channel>
</rss>

