<?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: Pass tables-parameter to method in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/pass-tables-parameter-to-method/m-p/1885733#M371509</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Create a table type in SE11 and use the same in your class.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Kathirvel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 26 Jan 2007 09:36:32 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-01-26T09:36:32Z</dc:date>
    <item>
      <title>Pass tables-parameter to method</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pass-tables-parameter-to-method/m-p/1885732#M371508</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;How do I pass a functions-modules tables-parameter, which refers to a ddic-structure, to a method (WAS 6.20). When trying to compile the method call it always gives me an error "actual parameter not compatibel to formal parameter". I even declared function modules tables parameter and methods importing parameter of same ddic-tables type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help is more than appreciated!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jan 2007 09:34:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pass-tables-parameter-to-method/m-p/1885732#M371508</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-26T09:34:37Z</dc:date>
    </item>
    <item>
      <title>Re: Pass tables-parameter to method</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pass-tables-parameter-to-method/m-p/1885733#M371509</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Create a table type in SE11 and use the same in your class.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Kathirvel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jan 2007 09:36:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pass-tables-parameter-to-method/m-p/1885733#M371509</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-26T09:36:32Z</dc:date>
    </item>
    <item>
      <title>Re: Pass tables-parameter to method</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pass-tables-parameter-to-method/m-p/1885734#M371510</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Thomas,&lt;/P&gt;&lt;P&gt;Can You show the call to the subroutine and the &lt;/P&gt;&lt;P&gt;subroutine's declaration?&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jan 2007 09:37:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pass-tables-parameter-to-method/m-p/1885734#M371510</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-26T09:37:37Z</dc:date>
    </item>
    <item>
      <title>Re: Pass tables-parameter to method</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pass-tables-parameter-to-method/m-p/1885735#M371511</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Ravi!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here' s the method:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;methods CHECK_AUTHROLES
    importing
      !P_AUTHROLES type ZTBAPIROLLE
    exporting
      !P_INT_AGRNAME type ZBER_IT_INT_AGRNAME
    raising
      ZCX_ZBER_AUTHROLES_UNKNOWN .&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And here' s the calling function module:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;*" TABLES
*"      AUTHROLES TYPE  ZTBAPIROLLE OPTIONAL&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And here the call:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
l_user_manager-&amp;gt;check_authroles(
      EXPORTING p_authroles = authroles
      IMPORTING p_int_agrname = int_agrname ).&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jan 2007 09:44:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pass-tables-parameter-to-method/m-p/1885735#M371511</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-26T09:44:14Z</dc:date>
    </item>
    <item>
      <title>Re: Pass tables-parameter to method</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pass-tables-parameter-to-method/m-p/1885736#M371512</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Kathirvel!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried so, but this unfortunatly resulted in the same error (see my other answer).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jan 2007 09:45:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pass-tables-parameter-to-method/m-p/1885736#M371512</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-26T09:45:19Z</dc:date>
    </item>
    <item>
      <title>Re: Pass tables-parameter to method</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pass-tables-parameter-to-method/m-p/1885737#M371513</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check this example Thomas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

*&amp;amp;---------------------------------------------------------------------*
*&amp;amp; Report  ZKB_TEST
*&amp;amp;---------------------------------------------------------------------*

REPORT  zkb_test.

TYPES: i_flight_list  TYPE TABLE OF bapisfldat,
       i_return  TYPE TABLE OF bapiret2.

*----------------------------------------------------------------------*
*       CLASS lcl_test DEFINITION
*----------------------------------------------------------------------*
*
*----------------------------------------------------------------------*
CLASS lcl_test DEFINITION.
  PUBLIC SECTION.
    METHODS: flights CHANGING it_flight_list TYPE i_flight_list
      it_return TYPE i_return.
ENDCLASS.                    "lcl_test DEFINITION

*----------------------------------------------------------------------*
*       CLASS lcl_test IMPLEMENTATION
*----------------------------------------------------------------------*
*
*----------------------------------------------------------------------*
CLASS lcl_test IMPLEMENTATION.
  METHOD flights.
    DATA: lw_flight_list TYPE LINE OF i_flight_list.
    CALL FUNCTION 'BAPI_FLIGHT_GETLIST'
      EXPORTING
        airline     = 'AA'
      TABLES
        flight_list = it_flight_list
        return      = it_return.

    LOOP AT it_flight_list INTO lw_flight_list.
      WRITE:/ lw_flight_list-airline, lw_flight_list-connectid.
    ENDLOOP.

  ENDMETHOD.                    "flights
ENDCLASS.                    "lcl_test IMPLEMENTATION

START-OF-SELECTION.

  DATA: o_flight TYPE REF TO lcl_test,
        li_flight TYPE i_flight_list,
        li_return TYPE i_return.

  CREATE OBJECT o_flight.

  CALL METHOD o_flight-&amp;gt;flights
    CHANGING
      it_flight_list = li_flight
      it_return      = li_return.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Kathirvel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jan 2007 09:45:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pass-tables-parameter-to-method/m-p/1885737#M371513</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-26T09:45:38Z</dc:date>
    </item>
    <item>
      <title>Re: Pass tables-parameter to method</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pass-tables-parameter-to-method/m-p/1885738#M371514</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Thomas,&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;    Checkout if there is any CHANGING parameter available for the method which is of type table&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jan 2007 09:48:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pass-tables-parameter-to-method/m-p/1885738#M371514</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-26T09:48:17Z</dc:date>
    </item>
    <item>
      <title>Re: Pass tables-parameter to method</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pass-tables-parameter-to-method/m-p/1885739#M371515</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Thomas,&lt;/P&gt;&lt;P&gt; You can create a TABLE TYPE for ZTBAPIROLLE in se11 , say &amp;lt;b&amp;gt;ZTBAPIROLLE_TAB&amp;lt;/b&amp;gt;.&lt;/P&gt;&lt;P&gt;Then Use it in the methods statement.&lt;/P&gt;&lt;P&gt;methods CHECK_AUTHROLES&lt;/P&gt;&lt;P&gt;    importing&lt;/P&gt;&lt;P&gt;      !P_AUTHROLES type &amp;lt;b&amp;gt;ZTBAPIROLLE_TAB&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;    exporting&lt;/P&gt;&lt;P&gt;      !P_INT_AGRNAME type ZBER_IT_INT_AGRNAME&lt;/P&gt;&lt;P&gt;    raising&lt;/P&gt;&lt;P&gt;      ZCX_ZBER_AUTHROLES_UNKNOWN .&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jan 2007 09:53:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pass-tables-parameter-to-method/m-p/1885739#M371515</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-26T09:53:05Z</dc:date>
    </item>
    <item>
      <title>Re: Pass tables-parameter to method</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pass-tables-parameter-to-method/m-p/1885740#M371516</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your help. Created a local variable of same type, assigned the fm-table-parameter and used it as parameter for the method.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jan 2007 10:13:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pass-tables-parameter-to-method/m-p/1885740#M371516</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-26T10:13:32Z</dc:date>
    </item>
  </channel>
</rss>

