<?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: ranges using subroutines in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/ranges-using-subroutines/m-p/4374224#M1040751</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi CS Reddy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead of the below statement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform range tables r_matnr&lt;/P&gt;&lt;P&gt;using 'I'&lt;/P&gt;&lt;P&gt;'EQ' 'lowvalue'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;declare all the value like 'I','EQ' etc as constants.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Correct me if I am wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;M.Ramana Murthy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 02 Sep 2008 08:17:19 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-09-02T08:17:19Z</dc:date>
    <item>
      <title>ranges using subroutines</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ranges-using-subroutines/m-p/4374218#M1040745</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have 20 parameters in Fm. if i pass any value in those parameters , the Fm should return the entries matching to that value. If i dont pass any value in params, the FM should return all the values . To achive this i have defined ranges for all 20 parameters and when those params have the value i am filling a range objects with values. If params not conatins any value am just not doing any thing. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here my question is i want to fill this range objects using perform statement. I dont want to write 20 times. So i have created one subroutine passing range object as table and remaining values in USING statement. Here i am getting one error that range object is too big to hold the value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MY perform statement is&lt;/P&gt;&lt;P&gt; perform range tables r_matnr&lt;/P&gt;&lt;P&gt;                      using 'I'&lt;/P&gt;&lt;P&gt;                               'EQ' 'lowvalue'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form ranges tables p_r_matnr structure &lt;STRONG&gt;range_matnr&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;                          using p_i&lt;/P&gt;&lt;P&gt;                                   p_eq&lt;/P&gt;&lt;P&gt;                                  p_low.&lt;/P&gt;&lt;P&gt;endform.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can any one please tell me how to fill the range object dynamically, for example if the range object is werks then in the form statement structure i want to refer werks range.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;CS Reddy.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Sep 2008 06:17:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ranges-using-subroutines/m-p/4374218#M1040745</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-02T06:17:45Z</dc:date>
    </item>
    <item>
      <title>Re: ranges using subroutines</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ranges-using-subroutines/m-p/4374219#M1040746</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;So here all the 20 parameters are same TYPE, is n't it?&lt;/P&gt;&lt;P&gt;If not how can you declared same RANGES table for all...?\&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Plz get back here again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Naveen.I&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Sep 2008 06:30:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ranges-using-subroutines/m-p/4374219#M1040746</guid>
      <dc:creator>naveen_inuganti2</dc:creator>
      <dc:date>2008-09-02T06:30:12Z</dc:date>
    </item>
    <item>
      <title>Re: ranges using subroutines</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ranges-using-subroutines/m-p/4374220#M1040747</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;just remove the 'struture ranges_matnr'. in the perform statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;venkat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Sep 2008 06:43:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ranges-using-subroutines/m-p/4374220#M1040747</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-02T06:43:04Z</dc:date>
    </item>
    <item>
      <title>Re: ranges using subroutines</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ranges-using-subroutines/m-p/4374221#M1040748</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;Thanks all for u r reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All 20 params are different. Thats what the problem. here i want to build dynamic reference type .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If i remove  the reference structure thr program throws an error,.......&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;CS.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Sep 2008 07:10:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ranges-using-subroutines/m-p/4374221#M1040748</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-02T07:10:07Z</dc:date>
    </item>
    <item>
      <title>Re: ranges using subroutines</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ranges-using-subroutines/m-p/4374222#M1040749</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;i had spent quite some time for implementing the same suboutine once with no success. &lt;SPAN __jive_emoticon_name="sad"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;we cannot use subroutine here according to me.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Sep 2008 07:46:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ranges-using-subroutines/m-p/4374222#M1040749</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-02T07:46:24Z</dc:date>
    </item>
    <item>
      <title>Re: ranges using subroutines</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ranges-using-subroutines/m-p/4374223#M1040750</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;     Pass the data using TYPE REF TO DATA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: lt_tab TYPE TABLE OF &amp;lt;some_type&amp;gt;.&lt;/P&gt;&lt;P&gt;DATA: data_ref TYPE REF TO DATA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GET REFERENCE OF lt_tab INTO data_ref.&lt;/P&gt;&lt;P&gt;perform routine USING data_ref.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form routine p_data_ref TYPE REF TO DATA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: l_tab TYPE TABLE OF &amp;lt;some_type_same_as_above&amp;gt;.&lt;/P&gt;&lt;P&gt;l_tab = p_data_ref-&amp;gt;*.&lt;/P&gt;&lt;P&gt;endform.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Sesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Sep 2008 07:56:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ranges-using-subroutines/m-p/4374223#M1040750</guid>
      <dc:creator>seshatalpasai_madala</dc:creator>
      <dc:date>2008-09-02T07:56:06Z</dc:date>
    </item>
    <item>
      <title>Re: ranges using subroutines</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ranges-using-subroutines/m-p/4374224#M1040751</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi CS Reddy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead of the below statement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform range tables r_matnr&lt;/P&gt;&lt;P&gt;using 'I'&lt;/P&gt;&lt;P&gt;'EQ' 'lowvalue'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;declare all the value like 'I','EQ' etc as constants.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Correct me if I am wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;M.Ramana Murthy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Sep 2008 08:17:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ranges-using-subroutines/m-p/4374224#M1040751</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-02T08:17:19Z</dc:date>
    </item>
  </channel>
</rss>

