<?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: How to Pass Select-options Single values as Parameter value to Method ? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-pass-select-options-single-values-as-parameter-value-to-method/m-p/6285737#M1389063</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why don't you pass the whole select-options?&lt;/P&gt;&lt;P&gt;Just declare w_arbpl in the method as a range of arbpl.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or in case you don't want to process that in the method, then move the low values to a table of type arbpl and pass that table to the method. Of course you need to change the definition of w_arbpl in the method first&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 Nov 2009 15:32:38 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-11-05T15:32:38Z</dc:date>
    <item>
      <title>How to Pass Select-options Single values as Parameter value to Method ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-pass-select-options-single-values-as-parameter-value-to-method/m-p/6285736#M1389062</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to pass select-options values(single values) for s_arbpl  to the method "process_percent_planned". Now all single values are in internal table s_arbpl-low field. I need to pass this internal table(s_arbpl-low) values to the method where i will run query based on these single values.In my below code i am passing value through variable w_arbpl. I have defined this parameter in the method.But here only one value is passed to method. I want multiple single values (in s_arbpl-low) should be passed. Please let me know how to correct code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tables: crhd.&lt;/P&gt;&lt;P&gt;Data: ktext   type auftext,&lt;/P&gt;&lt;P&gt;        w_arbpl  type arbpl.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select-options: s_arbpl for crhd-arbpl.&lt;/P&gt;&lt;P&gt;                &lt;/P&gt;&lt;P&gt;   ktext = 'Test'            &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;create object obj_plan.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call method obj_plan-&amp;gt;process_percent_planned&lt;/P&gt;&lt;P&gt;      exporting&lt;/P&gt;&lt;P&gt;        ktext        = ktext&lt;/P&gt;&lt;P&gt;        w_arbpl      = s_arbpl-low.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Nov 2009 15:20:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-pass-select-options-single-values-as-parameter-value-to-method/m-p/6285736#M1389062</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-05T15:20:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to Pass Select-options Single values as Parameter value to Method ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-pass-select-options-single-values-as-parameter-value-to-method/m-p/6285737#M1389063</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why don't you pass the whole select-options?&lt;/P&gt;&lt;P&gt;Just declare w_arbpl in the method as a range of arbpl.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or in case you don't want to process that in the method, then move the low values to a table of type arbpl and pass that table to the method. Of course you need to change the definition of w_arbpl in the method first&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Nov 2009 15:32:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-pass-select-options-single-values-as-parameter-value-to-method/m-p/6285737#M1389063</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-05T15:32:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to Pass Select-options Single values as Parameter value to Method ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-pass-select-options-single-values-as-parameter-value-to-method/m-p/6285738#M1389064</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Debabrata,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;s_arbpl has got a headerline with the same name as the internal table. So you pass s_arbpl-low of this headerline to your method. To get access to the 'table' (and the single values) use s_arbpl[]:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
TABLES: crhd.
DATA: wr_arbpl TYPE RANGE OF crhd-arbpl WITH HEADER LINE.

SELECT-OPTIONS: s_arbpl FOR crhd-arbpl.

WRITE: / s_arbpl-low. "headerline
LOOP AT s_arbpl[] INTO wr_arbpl.
  WRITE: / wr_arbpl-low.
ENDLOOP.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards, Karsten&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Karsten Korte on Nov 9, 2009 5:57 PM&lt;/P&gt;&lt;P&gt;ok, that was not really the question, sorry.&lt;/P&gt;&lt;P&gt;just do what Ramiro Escamilla suggested ...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Nov 2009 16:52:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-pass-select-options-single-values-as-parameter-value-to-method/m-p/6285738#M1389064</guid>
      <dc:creator>karsten_korte</dc:creator>
      <dc:date>2009-11-09T16:52:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to Pass Select-options Single values as Parameter value to Method ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-pass-select-options-single-values-as-parameter-value-to-method/m-p/6285739#M1389065</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Debabrata  ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create a local type inside your class obj_plan( i dont know what is the reference type )&lt;/P&gt;&lt;P&gt;like &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;t_range_arbpl type range of arbpl.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now your method process_percent_planned should have an importing parameter of type t_range_arbpl&lt;/P&gt;&lt;P&gt;say i_arbpl&lt;/P&gt;&lt;P&gt;YOu can pass the select options internal table directlty &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call method obj_plan-&amp;gt;process_percent_planned&lt;/P&gt;&lt;P&gt;exporting&lt;/P&gt;&lt;P&gt;ktext = ktext&lt;/P&gt;&lt;P&gt;i_arbpl = s_arbpl[].&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2009 20:55:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-pass-select-options-single-values-as-parameter-value-to-method/m-p/6285739#M1389065</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-25T20:55:21Z</dc:date>
    </item>
  </channel>
</rss>

