<?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: Problem with the passing parameter to a subroutine in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-the-passing-parameter-to-a-subroutine/m-p/3724092#M896386</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN __default_attr="blue" __jive_macro_name="color"&gt;
Hi Mark,

Check the below one .You dont need to specify structure at FORM ..part as it inherits the properties from PERFORM.
&lt;PRE&gt;&lt;CODE&gt;
PERFORM create_alv_list TABLES t_table
                        USING alv_sku
                              i_events.

PERFORM create_alv_list TABLES t_table
                        USING alv_resource
                              i_events1.

*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Form  create_alv_list
*&amp;amp;---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
*      --&amp;gt;T_TABLE    text
*      --&amp;gt;P_TABNAME  text
*      --&amp;gt;P_EVENTS   text
*----------------------------------------------------------------------*
FORM create_alv_list TABLES t_table
                     USING p_tabname
                           p_events.

  CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_APPEND'
    EXPORTING
      it_fieldcat = i_fieldcat[] "You dont need to specify [] here
      is_layout   = i_layout
      i_tabname   = p_tabname
      it_events   = p_events
    TABLES
      t_outtab    = t_table.
ENDFORM.                    "create_alv_list
&lt;/CODE&gt;&lt;/PRE&gt;

Regards,
Venkat.O
&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 22 Apr 2008 03:22:11 GMT</pubDate>
    <dc:creator>venkat_o</dc:creator>
    <dc:date>2008-04-22T03:22:11Z</dc:date>
    <item>
      <title>Problem with the passing parameter to a subroutine</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-the-passing-parameter-to-a-subroutine/m-p/3724090#M896384</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have this subroutine below, I wnat to pass 2 table table1 and table2 and p_tabname for the first table is alv_sku for the second is alv_resource also p_events for the first table is i_events and i_events1 for teh second...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How am i going to put it in my perform statement... Thanks a lot!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; FORM create_alv_list TABLES t_table STRUCTURE zzalvsku&lt;/P&gt;&lt;P&gt;                      USING  p_tabname TYPE SLIS_TABNAME&lt;/P&gt;&lt;P&gt;                             p_events  TYPE SLIS_T_EVENT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_APPEND'&lt;/P&gt;&lt;P&gt;     EXPORTING&lt;/P&gt;&lt;P&gt;       it_fieldcat = i_fieldcat[]&lt;/P&gt;&lt;P&gt;       is_layout   = i_layout&lt;/P&gt;&lt;P&gt;       i_tabname   = p_tabname&lt;/P&gt;&lt;P&gt;       it_events   = p_events&lt;/P&gt;&lt;P&gt;     TABLES&lt;/P&gt;&lt;P&gt;       t_outtab    = t_table.&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Apr 2008 02:47:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-the-passing-parameter-to-a-subroutine/m-p/3724090#M896384</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-22T02:47:29Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with the passing parameter to a subroutine</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-the-passing-parameter-to-a-subroutine/m-p/3724091#M896385</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mark,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check this&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt; PERFORM create_alv_list TABLES t_table
                         USING alv_sku 
                               i_events.

PERFORM create_alv_list TABLES t_table
                        USING alv_resource 
                              i_events1.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;reward if helpful&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;raam&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Apr 2008 03:07:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-the-passing-parameter-to-a-subroutine/m-p/3724091#M896385</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-22T03:07:16Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with the passing parameter to a subroutine</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-the-passing-parameter-to-a-subroutine/m-p/3724092#M896386</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN __default_attr="blue" __jive_macro_name="color"&gt;
Hi Mark,

Check the below one .You dont need to specify structure at FORM ..part as it inherits the properties from PERFORM.
&lt;PRE&gt;&lt;CODE&gt;
PERFORM create_alv_list TABLES t_table
                        USING alv_sku
                              i_events.

PERFORM create_alv_list TABLES t_table
                        USING alv_resource
                              i_events1.

*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Form  create_alv_list
*&amp;amp;---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
*      --&amp;gt;T_TABLE    text
*      --&amp;gt;P_TABNAME  text
*      --&amp;gt;P_EVENTS   text
*----------------------------------------------------------------------*
FORM create_alv_list TABLES t_table
                     USING p_tabname
                           p_events.

  CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_APPEND'
    EXPORTING
      it_fieldcat = i_fieldcat[] "You dont need to specify [] here
      is_layout   = i_layout
      i_tabname   = p_tabname
      it_events   = p_events
    TABLES
      t_outtab    = t_table.
ENDFORM.                    "create_alv_list
&lt;/CODE&gt;&lt;/PRE&gt;

Regards,
Venkat.O
&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Apr 2008 03:22:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-the-passing-parameter-to-a-subroutine/m-p/3724092#M896386</guid>
      <dc:creator>venkat_o</dc:creator>
      <dc:date>2008-04-22T03:22:11Z</dc:date>
    </item>
  </channel>
</rss>

