<?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 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/6314630#M1393313</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;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;&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>Fri, 06 Nov 2009 09:41:49 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-11-06T09:41:49Z</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/6314630#M1393313</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;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;&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>Fri, 06 Nov 2009 09:41:49 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/6314630#M1393313</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-06T09:41:49Z</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/6314631#M1393314</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could just loop at the select-options field and call the method inside it&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
Tables: crhd.
Data: ktext type auftext,
w_arbpl type arbpl.


select-options: s_arbpl for crhd-arbpl.


ktext = 'Test' 

create object obj_plan.

loop at s_arbpl.

call method obj_plan-&amp;gt;process_percent_planned
exporting
ktext = ktext
w_arbpl = s_arbpl-low.
endloop.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vikranth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Nov 2009 09:48:05 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/6314631#M1393314</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-06T09:48:05Z</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/6314632#M1393315</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;&lt;/P&gt;&lt;P&gt;when you want to pass  S_ARBPL AS PARAMETER IN SELEC OPTION &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ARBPL SUCH AS   &lt;/P&gt;&lt;P&gt;   WIN002 &lt;/P&gt;&lt;P&gt;  WIN003 &lt;/P&gt;&lt;P&gt;  WIN004 &lt;/P&gt;&lt;P&gt;  WIN005 &lt;/P&gt;&lt;P&gt;  WIN006 &lt;/P&gt;&lt;P&gt;  WIN007&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IN MULTIPLE SELECTION  S_ARBPL &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;THEN &lt;/P&gt;&lt;P&gt;USE   &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;LOOP AT S_ARBPL .&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;ENDLOOP.&lt;/P&gt;&lt;P&gt;REGARDS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;dEEPAK .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   THEN SELECT THAT &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Nov 2009 09:54:41 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/6314632#M1393315</guid>
      <dc:creator>deepak_dhamat</dc:creator>
      <dc:date>2009-11-06T09:54:41Z</dc:date>
    </item>
  </channel>
</rss>

