<?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-option variable in function in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-pass-select-option-variable-in-function/m-p/1638903#M284693</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Raj&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I assume that you want to import your select-options into your function module(s). Since select-options are, by default, itabs with header lines you have to pass your select-options as following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL FUNCTION 'Z_...'
  TABLES
    it_selopt = s_akont[].&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The TABLES parameter it_selopt could be of type ANY or better of type &amp;lt;b&amp;gt;TABLE&amp;lt;/b&amp;gt;.&lt;/P&gt;&lt;P&gt;If you want to use generic select-option structure you can use &amp;lt;b&amp;gt;RSDSSELOPT&amp;lt;/b&amp;gt; and the table type &amp;lt;b&amp;gt;TT_RSDSSELOPT&amp;lt;/b&amp;gt;. In this case you would need to copy your select-options from s_akont to a generic type s_generic (of type RSDSSELOPT).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;  Uwe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 03 Nov 2006 06:37:00 GMT</pubDate>
    <dc:creator>uwe_schieferstein</dc:creator>
    <dc:date>2006-11-03T06:37:00Z</dc:date>
    <item>
      <title>how to pass select-option variable in function</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-pass-select-option-variable-in-function/m-p/1638897#M284687</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;select-option : s_akont for KNB1-akont OBLIGATORY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have to pass s_akont in function without using &lt;/P&gt;&lt;P&gt;s_akont-low &amp;amp; s_akont-high. &lt;/P&gt;&lt;P&gt;rightnow i am passing like s_akont but it is giving me a error :&lt;/P&gt;&lt;P&gt;s_akont is followed by niether by an internal table nor by a value list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what should i write.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;raj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Nov 2006 05:49:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-pass-select-option-variable-in-function/m-p/1638897#M284687</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-03T05:49:03Z</dc:date>
    </item>
    <item>
      <title>Re: how to pass select-option variable in function</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-pass-select-option-variable-in-function/m-p/1638898#M284688</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Raj,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have to loop over akont between the s_akont-low and s_akont-high and pass it in the function.&lt;/P&gt;&lt;P&gt;Also check if you are using a Function module then does it support select-option table in the interface.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;George&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Nov 2006 06:02:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-pass-select-option-variable-in-function/m-p/1638898#M284688</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-03T06:02:25Z</dc:date>
    </item>
    <item>
      <title>Re: how to pass select-option variable in function</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-pass-select-option-variable-in-function/m-p/1638899#M284689</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;george,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i passing in my own function. function is for sales &amp;amp; balance calculation (bsid + bsad).  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop is ok but i am having more that 2000 customer if i start looping in s_akont than prog. run time will be very high.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;raj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Nov 2006 06:06:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-pass-select-option-variable-in-function/m-p/1638899#M284689</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-03T06:06:04Z</dc:date>
    </item>
    <item>
      <title>Re: how to pass select-option variable in function</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-pass-select-option-variable-in-function/m-p/1638900#M284690</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Raj&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Either the FM has to be scattered in such a way to handle the ranges or need to do an extraction to find the valid entries in the range and then pass to the FM individually.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards&lt;/P&gt;&lt;P&gt;Eswar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Nov 2006 06:06:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-pass-select-option-variable-in-function/m-p/1638900#M284690</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-03T06:06:33Z</dc:date>
    </item>
    <item>
      <title>Re: how to pass select-option variable in function</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-pass-select-option-variable-in-function/m-p/1638901#M284691</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;good&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select-options : s_akont for KNB1-akont OBLIGATORY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you r passing any vlaue in the s_akont field than it must not give you error as you have mentioned, and you have not mentioned where actually you r facing the error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check with your select statement where you r selecting the data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;mrutyun^&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Nov 2006 06:12:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-pass-select-option-variable-in-function/m-p/1638901#M284691</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-03T06:12:58Z</dc:date>
    </item>
    <item>
      <title>Re: how to pass select-option variable in function</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-pass-select-option-variable-in-function/m-p/1638902#M284692</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;it is typing error i wrote select-options only&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Nov 2006 06:16:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-pass-select-option-variable-in-function/m-p/1638902#M284692</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-03T06:16:14Z</dc:date>
    </item>
    <item>
      <title>Re: how to pass select-option variable in function</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-pass-select-option-variable-in-function/m-p/1638903#M284693</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Raj&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I assume that you want to import your select-options into your function module(s). Since select-options are, by default, itabs with header lines you have to pass your select-options as following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL FUNCTION 'Z_...'
  TABLES
    it_selopt = s_akont[].&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The TABLES parameter it_selopt could be of type ANY or better of type &amp;lt;b&amp;gt;TABLE&amp;lt;/b&amp;gt;.&lt;/P&gt;&lt;P&gt;If you want to use generic select-option structure you can use &amp;lt;b&amp;gt;RSDSSELOPT&amp;lt;/b&amp;gt; and the table type &amp;lt;b&amp;gt;TT_RSDSSELOPT&amp;lt;/b&amp;gt;. In this case you would need to copy your select-options from s_akont to a generic type s_generic (of type RSDSSELOPT).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;  Uwe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Nov 2006 06:37:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-pass-select-option-variable-in-function/m-p/1638903#M284693</guid>
      <dc:creator>uwe_schieferstein</dc:creator>
      <dc:date>2006-11-03T06:37:00Z</dc:date>
    </item>
  </channel>
</rss>

