<?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: Issue when passing table parameter to perform... in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-when-passing-table-parameter-to-perform/m-p/4755806#M1115409</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Define a table type in SE11, perhaps called "Z_T_RSRANGE", which has line type RSRANGE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;matt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 03 Nov 2008 16:35:07 GMT</pubDate>
    <dc:creator>matt</dc:creator>
    <dc:date>2008-11-03T16:35:07Z</dc:date>
    <item>
      <title>Issue when passing table parameter to perform...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-when-passing-table-parameter-to-perform/m-p/4755801#M1115404</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have a table parameter (S_KOSTL) defined as RSRANGE in a function module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now when I am passing the table to an perform staeement as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PERFORM get_cost_center_info USING s_kostl&lt;/P&gt;&lt;P&gt;                                   CHANGING lt_output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Inside the form routine I am using following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM get_cost_center_info USING S_KOSTL TYPE RSRANGE&lt;/P&gt;&lt;P&gt;                                        CHANGING ct_output TYPE tt_output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT it_ausp INTO ls_ausp WHERE atwrt IN s_kostl.&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;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But it says relational operator 'IN' not supported even if I defined S_KOSTL LIKE RSRANGE in function module tbale parameter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help.&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;Rajesh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Nov 2008 16:20:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-when-passing-table-parameter-to-perform/m-p/4755801#M1115404</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-03T16:20:22Z</dc:date>
    </item>
    <item>
      <title>Re: Issue when passing table parameter to perform...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-when-passing-table-parameter-to-perform/m-p/4755802#M1115405</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Since you are passing the Range which is a Table you have to pass it with the TABLES addition instead of the Using.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try like this:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
PERFORM get_cost_center_info TABLES s_kostl
CHANGING lt_output.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Inside the form routine I am using following:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
FORM get_cost_center_info TABLES S_KOSTL TYPE RSRANGE
CHANGING ct_output TYPE tt_output.

LOOP AT it_ausp INTO ls_ausp WHERE atwrt IN s_kostl.

ENDLOOP.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naimesh Patel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Nov 2008 16:23:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-when-passing-table-parameter-to-perform/m-p/4755802#M1115405</guid>
      <dc:creator>naimesh_patel</dc:creator>
      <dc:date>2008-11-03T16:23:45Z</dc:date>
    </item>
    <item>
      <title>Re: Issue when passing table parameter to perform...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-when-passing-table-parameter-to-perform/m-p/4755803#M1115406</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When you use "USING S_KOSTL TYPE RSRANGE" like that, you're defining the parameter s_kostl as a flat structure, rather than a &lt;STRONG&gt;table&lt;/STRONG&gt; of rsrange.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Either use the form TABLES addition, or, define a table type of type standard table of rsrange.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;matt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Nov 2008 16:24:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-when-passing-table-parameter-to-perform/m-p/4755803#M1115406</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2008-11-03T16:24:11Z</dc:date>
    </item>
    <item>
      <title>Re: Issue when passing table parameter to perform...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-when-passing-table-parameter-to-perform/m-p/4755804#M1115407</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Since the TABLES parameter is obsolete (implicit header line), I recommend Matt's second alternative. You should do the same in your function module interface, don't use TABLES any more, instead CHANGING.&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Nov 2008 16:27:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-when-passing-table-parameter-to-perform/m-p/4755804#M1115407</guid>
      <dc:creator>ThomasZloch</dc:creator>
      <dc:date>2008-11-03T16:27:36Z</dc:date>
    </item>
    <item>
      <title>Re: Issue when passing table parameter to perform...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-when-passing-table-parameter-to-perform/m-p/4755805#M1115408</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How can I do Matt's alternatice approach...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Nov 2008 16:30:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-when-passing-table-parameter-to-perform/m-p/4755805#M1115408</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-03T16:30:34Z</dc:date>
    </item>
    <item>
      <title>Re: Issue when passing table parameter to perform...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-when-passing-table-parameter-to-perform/m-p/4755806#M1115409</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Define a table type in SE11, perhaps called "Z_T_RSRANGE", which has line type RSRANGE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;matt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Nov 2008 16:35:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-when-passing-table-parameter-to-perform/m-p/4755806#M1115409</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2008-11-03T16:35:07Z</dc:date>
    </item>
  </channel>
</rss>

