<?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 to Function Module parameter in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-to-function-module-parameter/m-p/3765006#M905847</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi marshal,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.  In the FM (in se37), there should be one TABLES parameter&lt;/P&gt;&lt;P&gt;     of type structure WERKS_RANG.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. This WERKS_RANG has four fields, exactly similar to an internal table of select option.&lt;/P&gt;&lt;P&gt;    So pass the select option as it is, using the tables parameter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;amit m.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 23 Apr 2008 12:02:10 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-04-23T12:02:10Z</dc:date>
    <item>
      <title>Select options to Function Module parameter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-to-function-module-parameter/m-p/3765004#M905845</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;I have a select options parameter in my report and then I have a function module that have to select into a database table using this SO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I pass the SO to the FM?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code must be something like that:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
REPORT ZXXXX.

SELECT-OPTIONS:  so_werks FOR marc-werks.

CALL FUNCTION 'ZFUNCTION'




------------------------------------------------------------------------------------------

FUNCTION ZFUNCTION

 SELECT matnr FROM marc INTO TABLE it 
 WHERE werks IN so_werks

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The select options must be a TABLES parameter? I have to create a structure type for that SO?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Apr 2008 11:58:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-to-function-module-parameter/m-p/3765004#M905845</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-23T11:58:47Z</dc:date>
    </item>
    <item>
      <title>Re: Select options to Function Module parameter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-to-function-module-parameter/m-p/3765005#M905846</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marshal,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can pass by using Tables.&lt;/P&gt;&lt;P&gt;Pass the selection-option internal tables as a type of structure RSPARAMS .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sunil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Apr 2008 12:00:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-to-function-module-parameter/m-p/3765005#M905846</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-23T12:00:56Z</dc:date>
    </item>
    <item>
      <title>Re: Select options to Function Module parameter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-to-function-module-parameter/m-p/3765006#M905847</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi marshal,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.  In the FM (in se37), there should be one TABLES parameter&lt;/P&gt;&lt;P&gt;     of type structure WERKS_RANG.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. This WERKS_RANG has four fields, exactly similar to an internal table of select option.&lt;/P&gt;&lt;P&gt;    So pass the select option as it is, using the tables parameter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;amit m.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Apr 2008 12:02:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-to-function-module-parameter/m-p/3765006#M905847</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-23T12:02:10Z</dc:date>
    </item>
    <item>
      <title>Re: Select options to Function Module parameter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-to-function-module-parameter/m-p/3765007#M905848</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks to all &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Apr 2008 12:04:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-to-function-module-parameter/m-p/3765007#M905848</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-23T12:04:26Z</dc:date>
    </item>
    <item>
      <title>Re: Select options to Function Module parameter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-to-function-module-parameter/m-p/3765008#M905849</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;In FM interface you can use &lt;/P&gt;&lt;P&gt;structure EFG_RANGES ( In Tables Parameter ) . This structure is same as select options.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or in Importing parameters use EFG_TAB_RANGES . This is an internal table type . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In both ways you can pass your select option to FM diretcly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check the following link as well&lt;/P&gt;&lt;P&gt;&lt;A href="https://forums.sdn.sap.com/click.jspa?searchID=11071891&amp;amp;messageID=4908310" target="test_blank"&gt;https://forums.sdn.sap.com/click.jspa?searchID=11071891&amp;amp;messageID=4908310&lt;/A&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;Regards,&lt;/P&gt;&lt;P&gt;Raj.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Apr 2008 12:05:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-to-function-module-parameter/m-p/3765008#M905849</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-23T12:05:27Z</dc:date>
    </item>
    <item>
      <title>Re: Select options to Function Module parameter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-to-function-module-parameter/m-p/3765009#M905850</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;Its not possible to do that, since select-option is having lots of functionality, eg : single single reanges, select ranges,exclude ranges etc....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So better to use select query in program and pass the values to function module by using tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;REWARD IF USEFUL&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Apr 2008 12:06:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-to-function-module-parameter/m-p/3765009#M905850</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-23T12:06:25Z</dc:date>
    </item>
  </channel>
</rss>

