<?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 Multiple ALV Lists each with a Push Button in the last Column.. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/multiple-alv-lists-each-with-a-push-button-in-the-last-column/m-p/8627770#M1664522</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ABAP Champs,&lt;/P&gt;&lt;P&gt;I have the requirement of showing Multiple ALV lists each with a Push button in its last column. Please note that I want a ALV List and not ALV Grid.&lt;/P&gt;&lt;P&gt;Also, I do not want to use the Class implementation.Meaning that it has to be based on an fm (like REUSE_ALV_BLOCK_LIST_DISPLAY, or something).&lt;/P&gt;&lt;P&gt;Is this possible in first place? If yes, could you show me how?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Shashi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Shashidhar N Garimella on Mar 8, 2012 6:16 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 08 Mar 2012 05:12:54 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2012-03-08T05:12:54Z</dc:date>
    <item>
      <title>Multiple ALV Lists each with a Push Button in the last Column..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/multiple-alv-lists-each-with-a-push-button-in-the-last-column/m-p/8627770#M1664522</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ABAP Champs,&lt;/P&gt;&lt;P&gt;I have the requirement of showing Multiple ALV lists each with a Push button in its last column. Please note that I want a ALV List and not ALV Grid.&lt;/P&gt;&lt;P&gt;Also, I do not want to use the Class implementation.Meaning that it has to be based on an fm (like REUSE_ALV_BLOCK_LIST_DISPLAY, or something).&lt;/P&gt;&lt;P&gt;Is this possible in first place? If yes, could you show me how?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Shashi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Shashidhar N Garimella on Mar 8, 2012 6:16 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Mar 2012 05:12:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/multiple-alv-lists-each-with-a-push-button-in-the-last-column/m-p/8627770#M1664522</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-03-08T05:12:54Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple ALV Lists each with a Push Button in the last Column..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/multiple-alv-lists-each-with-a-push-button-in-the-last-column/m-p/8627771#M1664523</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; you can reuse function module &lt;STRONG&gt;REUSE_ALV_LIST_DISPLAY&lt;/STRONG&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;prady&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Mar 2012 11:27:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/multiple-alv-lists-each-with-a-push-button-in-the-last-column/m-p/8627771#M1664523</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-03-08T11:27:58Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple ALV Lists each with a Push Button in the last Column..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/multiple-alv-lists-each-with-a-push-button-in-the-last-column/m-p/8627772#M1664524</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Prady,&lt;/P&gt;&lt;P&gt;I can use 'REUSE_ALV_LIST_DISPLAY' if i want to display just one ALV.&lt;/P&gt;&lt;P&gt;But, my requirement is to display multipe ALVs.And to display multiple ALVs, I should use only 'REUSE_ALV_BLOCK_LIST_DISPLAY'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is my understanding correct? &lt;/P&gt;&lt;P&gt;Now, only problem is I do not have call back program param in 'REUSE_ALV_BLOCK_LIST_DISPLAY'.So how to display the button.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Shashi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Shashidhar N Garimella on Mar 10, 2012 6:16 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 10 Mar 2012 05:16:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/multiple-alv-lists-each-with-a-push-button-in-the-last-column/m-p/8627772#M1664524</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-03-10T05:16:19Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple ALV Lists each with a Push Button in the last Column..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/multiple-alv-lists-each-with-a-push-button-in-the-last-column/m-p/8627773#M1664525</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;dude First of all Please tell me how u can display ur list using FM 'REUSE_ALV_BLOCK_LIST_DISPLAY'.&lt;/P&gt;&lt;P&gt;Where you are passing internal table(to be displayed in the list) in the function module .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_DISPLAY'
*     EXPORTING
*       I_INTERFACE_CHECK             = ' '
*       IS_PRINT                                 =
*       I_SCREEN_START_COLUMN         = 0
*       I_SCREEN_START_LINE           = 0
*       I_SCREEN_END_COLUMN           = 0
*       I_SCREEN_END_LINE             = 0
*     IMPORTING
*       E_EXIT_CAUSED_BY_CALLER       =
*       ES_EXIT_CAUSED_BY_USER        =
   EXCEPTIONS
     PROGRAM_ERROR                 = 1
     OTHERS                        = 2.          
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Secondly if u want Pshbutton to be displayed on ALV Grid the u have to use ABAPoops concept.&lt;/P&gt;&lt;P&gt;Using class &lt;STRONG&gt;CL_GUI_ALV_GRID&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here is the code for that:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
**internal table declaratios*
DATA I_TAB TYPE TABLE OF MAKT WITH HEADER LINE. " data internal table 
DATA IT_FCAT TYPE LVC_T_FCAT.  " field catalog internal table
DATA WA_FCAT LIKE LINE OF IT_FCAT .  " work area of field catalogue
**container declarations*
DATA GRID TYPE REF TO CL_GUI_ALV_GRID.
DATA CONTAINER TYPE REF TO CL_GUI_CUSTOM_CONTAINER.
**create a screen in SE51 and place a custom control on the screen and 
** name it (say container)
start-of-selection.
SELECT * FROM  MAKT INTO TABLE I_TAB. "select records in internal table
SET  SCREEN 1.

**PBO Module*
MODULE STATUS_0001 OUTPUT.
  SET PF-STATUS 'ZSTATUS'.
*  SET TITLEBAR 'xxx'.

  BREAK-POINT.
  IF CONTAINER IS INITIAL.
    CREATE OBJECT CONTAINER
      EXPORTING
        CONTAINER_NAME = 'CONTAINER'.

    CREATE OBJECT GRID
      EXPORTING
        I_PARENT = CONTAINER.
  ENDIF.
ENDMODULE.

**PAI Module
PERFORM BUILD_CATALOGUE.  "first build the field catalogue (Display attributes )

BREAK-POINT.
  CALL METHOD GRID-&amp;gt;SET_TABLE_FOR_FIRST_DISPLAY
    EXPORTING
*      I_STRUCTURE_NAME = 'MAKT'
*      IS_LAYOUT        = I_LAYOUT
    CHANGING
      IT_OUTTAB        = I_TAB[]
      IT_FIELDCATALOG = IT_FCAT.

FORM BUILD_CATALOGUE .

  WA-COL_POS = '1'.
  WA-FIELDNAME = 'MATNR'.
  WA-TABNAME = 'I_TAB'.
  WA-COLTEXT = 'Material'.
  WA-STYLE = CL_GUI_ALV_GRID=&amp;gt;MC_STYLE_BUTTON.  "&amp;lt;-- this arribute will set the entire column as pushbuttons
  APPEND WA TO IT_FCAT.
clear wa_fcat.

  WA-COL_POS = '2'.
  WA-FIELDNAME = 'SPRAS'.
  WA-TABNAME = 'I_TAB'.
  WA-COLTEXT = 'language'.
  APPEND WA TO IT_FCAT.
clear wa_fcat.
ENDFORM.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Similarly If u place 5 Custom controls on single screen then u can display 5 ALV on the same screen.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;With pushbuttons on the desired field (set attribute in the field catalog). ANd hence MULTIPLE ALV&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Revert Back if problem still not solved with &lt;STRONG&gt;Your code&lt;/STRONG&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 10 Mar 2012 05:57:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/multiple-alv-lists-each-with-a-push-button-in-the-last-column/m-p/8627773#M1664525</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-03-10T05:57:51Z</dc:date>
    </item>
  </channel>
</rss>

