<?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: Regarding &amp;quot;Function Modules&amp;quot; in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-quot-function-modules-quot/m-p/1669975#M296236</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;u can create a range for that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Define a range:

Ranges: r_field for &amp;lt;table&amp;gt;.

if not field1 is initial.
r_field-sign = 'I'.
r_field-option = 'EQ'.
r_field-option-low = field1.
append r_field.
endif.

if not field2 is initial.
r_field-sign = 'I'.
r_field-option = 'EQ'.
r_field-option-low = field2.
append r_field.
endif.

if field1 is initial and field2 is initial.
r_field-sign = 'I'.
r_field-option = 'EQ'.
append r_field.
endif.

select * from &amp;lt;table&amp;gt; where field1 in r_field.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rgds&lt;/P&gt;&lt;P&gt;anver&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 23 Nov 2006 07:52:29 GMT</pubDate>
    <dc:creator>anversha_s</dc:creator>
    <dc:date>2006-11-23T07:52:29Z</dc:date>
    <item>
      <title>Regarding "Function Modules"</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-quot-function-modules-quot/m-p/1669974#M296235</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Friends, I am Goli Pradeep, new to this Community...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a doubt in Function Modules...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Program--&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;types: begin of tw_vbak,&lt;/P&gt;&lt;P&gt;           vbeln type vbeln_va,&lt;/P&gt;&lt;P&gt;           vkorg Type vkorg,&lt;/P&gt;&lt;P&gt;           vtweg type vtweg,&lt;/P&gt;&lt;P&gt;           end of tw_vbak,&lt;/P&gt;&lt;P&gt;           tt_vbak type standard table of tw_vbak.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: lw_vbak type tw_vbak,&lt;/P&gt;&lt;P&gt;        lt_vbak type tt_vbak,&lt;/P&gt;&lt;P&gt;        lf_vbeln type vbeln_va.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;selection-screen begin of block b1 with frame title text-001.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;*select-options: so_vbeln for lf_vbeln.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;selection-screen end of block b1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;start-of-selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call function 'z_somefunction'&lt;/P&gt;&lt;P&gt;         exporting&lt;/P&gt;&lt;P&gt;                 lm_vbeln = so_vbeln.&lt;/P&gt;&lt;P&gt;         tables&lt;/P&gt;&lt;P&gt;                 ta_vbak = lt_vbak.&lt;/P&gt;&lt;P&gt;......................................................&lt;/P&gt;&lt;P&gt;...................................................... "REST OF THE PROGRAM CONTINUES&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the above program marked with '*', there generally we declare as &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;parameters: so_vbeln type vbeln_va.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but I want to pass the range of values to function which is possible through "select-options" only&lt;/P&gt;&lt;P&gt;I came to know that Global data in Function Modules is used for such programs...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here my intension is to pass the select option value to the function module which contains a range of value, so now in that function module i have to fetch records from database table VBAP in that range...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so friends please guide me to solve this problem...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Pradeep Goli&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Nov 2006 07:50:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-quot-function-modules-quot/m-p/1669974#M296235</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-23T07:50:27Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding "Function Modules"</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-quot-function-modules-quot/m-p/1669975#M296236</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;u can create a range for that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Define a range:

Ranges: r_field for &amp;lt;table&amp;gt;.

if not field1 is initial.
r_field-sign = 'I'.
r_field-option = 'EQ'.
r_field-option-low = field1.
append r_field.
endif.

if not field2 is initial.
r_field-sign = 'I'.
r_field-option = 'EQ'.
r_field-option-low = field2.
append r_field.
endif.

if field1 is initial and field2 is initial.
r_field-sign = 'I'.
r_field-option = 'EQ'.
append r_field.
endif.

select * from &amp;lt;table&amp;gt; where field1 in r_field.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rgds&lt;/P&gt;&lt;P&gt;anver&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Nov 2006 07:52:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-quot-function-modules-quot/m-p/1669975#M296236</guid>
      <dc:creator>anversha_s</dc:creator>
      <dc:date>2006-11-23T07:52:29Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding "Function Modules"</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-quot-function-modules-quot/m-p/1669976#M296237</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Pradeep,&lt;/P&gt;&lt;P&gt;WELCOME TO SDN ...&lt;/P&gt;&lt;P&gt; Use Ranges ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;RANGES:r_balance FOR oiuh_rv_gl-gl_trans_am,
       r_prevbal    FOR oiuh_rv_cyc-yc_acct_perd_dt,
       r_currbal    FOR oiuh_rv_cyc-yc_acct_perd_dt.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Santosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Nov 2006 07:54:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-quot-function-modules-quot/m-p/1669976#M296237</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-23T07:54:43Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding "Function Modules"</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-quot-function-modules-quot/m-p/1669977#M296238</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;you can declare "lm_vbeln" import parameter in the function module, of the type 'RSPARAMS' and pass the select option to it. &lt;/P&gt;&lt;P&gt;Parameter needs to be declared as a table. &lt;/P&gt;&lt;P&gt;This u can use it further in the program. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks, &lt;/P&gt;&lt;P&gt;Rashmi.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Nov 2006 07:55:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-quot-function-modules-quot/m-p/1669977#M296238</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-23T07:55:17Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding "Function Modules"</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-quot-function-modules-quot/m-p/1669978#M296239</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please check this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: vbeln_i type vbeln_va.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select-options: s_vbeln for (vbeln_i).&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>Thu, 23 Nov 2006 07:58:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-quot-function-modules-quot/m-p/1669978#M296239</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-23T07:58:05Z</dc:date>
    </item>
  </channel>
</rss>

