<?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: ALV in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv/m-p/3421712#M821807</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How to add button to ALV toolbar using REUSE_ALV_LIST_DISPLAY? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the program which calls ALV using REUSE_ALV_LIST_DISPLAY, &lt;/P&gt;&lt;P&gt;I have to add a new button. &lt;/P&gt;&lt;P&gt;I saw the demo program BCALV_GRID_08, which is written using ABAP-Controls. &lt;/P&gt;&lt;P&gt;In that example, the button is added using TOOLBAR event of cl_gui_alv_grid. &lt;/P&gt;&lt;P&gt;Could you help me to implement the same logic using REUSE_ALV_LIST_DISPLAY parameters. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you should copy the 'STANDARD' GUI status from program SAPLKKBL using transaction SE90 &lt;DEL&gt;&amp;gt;Programming SubObjects&lt;/DEL&gt;&amp;gt; Gui Status. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Execute this transaction to get to next screen. select status using checkbox. click on GUI Status --&amp;gt; Copy. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Enter your Z program name and the name you what for this status - you can keep it as 'STANDARD' to be simple. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then you can edit the new status to add or delete buttons. This will also bring in the standard SAP ALV functionality such as sorting/subtotaling etc... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you call 'REUSE_ALV_GRID_DISPLAY' make sure you pass it the new status name. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;an example of one of mine: &lt;/P&gt;&lt;P&gt;call function 'REUSE_ALV_GRID_DISPLAY' &lt;/P&gt;&lt;P&gt;EXPORTING &lt;/P&gt;&lt;P&gt;i_callback_program = 'ZSDBOLST_REPORT' &lt;/P&gt;&lt;P&gt;i_callback_pf_status_set = 'STANDARD' &amp;lt;----&lt;/P&gt;&lt;HR originaltext="----" /&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;i_callback_user_command = 'USER_COMMAND' &lt;/P&gt;&lt;P&gt;i_structure_name = 'I_BOLACT' &lt;/P&gt;&lt;P&gt;i_grid_title = 'BOL Action Report'(031) &lt;/P&gt;&lt;P&gt;is_layout = gs_layout &lt;/P&gt;&lt;P&gt;it_fieldcat = gt_fieldcat[] &lt;/P&gt;&lt;P&gt;i_save = 'A' &lt;/P&gt;&lt;P&gt;is_variant = v_variant &lt;/P&gt;&lt;P&gt;TABLES &lt;/P&gt;&lt;P&gt;t_outtab = i_bolact &lt;/P&gt;&lt;P&gt;EXCEPTIONS &lt;/P&gt;&lt;P&gt;program_error = 1 &lt;/P&gt;&lt;P&gt;others = 2. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just tried the same procedure ,but my entire application toolbar disappeared and a lock icon appears next to the application toolbar in my copied pf-status. &lt;/P&gt;&lt;P&gt;Could you advice what might have gone wrong ? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As identified with the FM's help you can do the following. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1). Using SE80 (I think) you can copy a GUI status from one program to another. It mentions which one in the FM's help. &lt;/P&gt;&lt;P&gt;2). Create a form named like so: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Code: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Form Set_pf_status &lt;/P&gt;&lt;P&gt;Notes: Called by FM REUSE_ALV_GRID_DISPLAY &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM set_pf_status USING rt_extab TYPE slis_t_extab. &lt;/P&gt;&lt;P&gt;SET PF-STATUS 'ZSTANDARD'. &lt;/P&gt;&lt;P&gt;ENDFORM. "Set_pf_status &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the above case the GUI status copied was named ZSTANDARD and adjusted accordingly, adding and removing the desired buttons. A button was added called '%DELETE'. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3). Create the following report: &lt;/P&gt;&lt;P&gt;Code: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Form User_command &lt;/P&gt;&lt;P&gt;Notes: Called by FM REUSE_ALV_GRID_DISPLAY &lt;/P&gt;&lt;P&gt;Detects whether the icon/button for &lt;/P&gt;&lt;P&gt;'Return Tag Deletion' has been pressed. If it has then &lt;/P&gt;&lt;P&gt;detect whether any rows have been highlighted and then &lt;/P&gt;&lt;P&gt;set the delete flag. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM user_command USING r_ucomm LIKE sy-ucomm &lt;/P&gt;&lt;P&gt;rs_selfield TYPE slis_selfield. &lt;/P&gt;&lt;P&gt;DATA: li_count TYPE I. &lt;/P&gt;&lt;P&gt;IF r_ucomm EQ '%DELETE'. &lt;/P&gt;&lt;P&gt;LOOP AT %g00 WHERE mark EQ 'X'. &lt;/P&gt;&lt;P&gt;ADD 1 TO li_count. &lt;/P&gt;&lt;P&gt;ENDLOOP. &lt;/P&gt;&lt;P&gt;IF li_count GT 0. &lt;/P&gt;&lt;P&gt;gc_delete_flag = 'X'. &lt;/P&gt;&lt;P&gt;r_ucomm = '&amp;amp;F03'. "Back arraow &lt;/P&gt;&lt;P&gt;ELSE. &lt;/P&gt;&lt;P&gt;MESSAGE W000 WITH 'Please highlight the rows to be deleted!'. &lt;/P&gt;&lt;P&gt;ENDIF. &lt;/P&gt;&lt;P&gt;ENDIF. &lt;/P&gt;&lt;P&gt;ENDFORM. "User_command &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As I've added an extra button to indicate which records should be deleted I need to identify a form to be called to process when this button is chosen. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then when you call the ALV function you to specify the following extra details: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Code: &lt;/P&gt;&lt;P&gt;call function 'REUSE_ALV_GRID_DISPLAY' &lt;/P&gt;&lt;P&gt;exporting i_callback_program = gc_repid &lt;/P&gt;&lt;P&gt;I_CALLBACK_PF_STATUS_SET = 'SET_PF_STATUS' &lt;/P&gt;&lt;P&gt;I_CALLBACK_USER_COMMAND = 'USER_COMMAND' &lt;/P&gt;&lt;P&gt;i_grid_title = lc_grid_title &lt;/P&gt;&lt;P&gt;is_layout = lc_layout &lt;/P&gt;&lt;P&gt;it_fieldcat = gt_fieldcat &lt;/P&gt;&lt;P&gt;it_sort = sort &lt;/P&gt;&lt;P&gt;i_save = l_save &lt;/P&gt;&lt;P&gt;is_reprep_id = l_bbs_id &lt;/P&gt;&lt;P&gt;is_variant = l_variant &lt;/P&gt;&lt;P&gt;tables t_outtab = %g00 &lt;/P&gt;&lt;P&gt;exceptions program_error = 1 &lt;/P&gt;&lt;P&gt;others = 2. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The parameters in capitals are the extra ones that need to be added.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if useful&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 14 Feb 2008 08:36:33 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-02-14T08:36:33Z</dc:date>
    <item>
      <title>ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv/m-p/3421710#M821805</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want the Standard ALV buttons as well as my own Customized buttons simultaneouly.&lt;/P&gt;&lt;P&gt;help me.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Feb 2008 08:25:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv/m-p/3421710#M821805</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-14T08:25:47Z</dc:date>
    </item>
    <item>
      <title>Re: ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv/m-p/3421711#M821806</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Create an event handler for event TOOLBAR of CL_GUI_ALV_GRID and register this handler with your grid.&lt;/P&gt;&lt;P&gt;In event handler write:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA:&lt;/P&gt;&lt;P&gt;    zls_toolbar TYPE stb_button.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*-Append an icon for "New Row"&lt;/P&gt;&lt;P&gt;  CLEAR:&lt;/P&gt;&lt;P&gt;    zls_toolbar.&lt;/P&gt;&lt;P&gt;  zls_toolbar-function  = 'NEW_ROW'.&lt;/P&gt;&lt;P&gt;  zls_toolbar-icon      = icon_insert_row.&lt;/P&gt;&lt;P&gt;  zls_toolbar-quickinfo = text-f31.&lt;/P&gt;&lt;P&gt;  zls_toolbar-text      = text-f31.&lt;/P&gt;&lt;P&gt;  APPEND zls_toolbar&lt;/P&gt;&lt;P&gt;      TO e_object-&amp;gt;mt_toolbar.&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;&lt;/P&gt;&lt;P&gt;John.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Feb 2008 08:32:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv/m-p/3421711#M821806</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-14T08:32:56Z</dc:date>
    </item>
    <item>
      <title>Re: ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv/m-p/3421712#M821807</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How to add button to ALV toolbar using REUSE_ALV_LIST_DISPLAY? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the program which calls ALV using REUSE_ALV_LIST_DISPLAY, &lt;/P&gt;&lt;P&gt;I have to add a new button. &lt;/P&gt;&lt;P&gt;I saw the demo program BCALV_GRID_08, which is written using ABAP-Controls. &lt;/P&gt;&lt;P&gt;In that example, the button is added using TOOLBAR event of cl_gui_alv_grid. &lt;/P&gt;&lt;P&gt;Could you help me to implement the same logic using REUSE_ALV_LIST_DISPLAY parameters. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you should copy the 'STANDARD' GUI status from program SAPLKKBL using transaction SE90 &lt;DEL&gt;&amp;gt;Programming SubObjects&lt;/DEL&gt;&amp;gt; Gui Status. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Execute this transaction to get to next screen. select status using checkbox. click on GUI Status --&amp;gt; Copy. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Enter your Z program name and the name you what for this status - you can keep it as 'STANDARD' to be simple. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then you can edit the new status to add or delete buttons. This will also bring in the standard SAP ALV functionality such as sorting/subtotaling etc... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you call 'REUSE_ALV_GRID_DISPLAY' make sure you pass it the new status name. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;an example of one of mine: &lt;/P&gt;&lt;P&gt;call function 'REUSE_ALV_GRID_DISPLAY' &lt;/P&gt;&lt;P&gt;EXPORTING &lt;/P&gt;&lt;P&gt;i_callback_program = 'ZSDBOLST_REPORT' &lt;/P&gt;&lt;P&gt;i_callback_pf_status_set = 'STANDARD' &amp;lt;----&lt;/P&gt;&lt;HR originaltext="----" /&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;i_callback_user_command = 'USER_COMMAND' &lt;/P&gt;&lt;P&gt;i_structure_name = 'I_BOLACT' &lt;/P&gt;&lt;P&gt;i_grid_title = 'BOL Action Report'(031) &lt;/P&gt;&lt;P&gt;is_layout = gs_layout &lt;/P&gt;&lt;P&gt;it_fieldcat = gt_fieldcat[] &lt;/P&gt;&lt;P&gt;i_save = 'A' &lt;/P&gt;&lt;P&gt;is_variant = v_variant &lt;/P&gt;&lt;P&gt;TABLES &lt;/P&gt;&lt;P&gt;t_outtab = i_bolact &lt;/P&gt;&lt;P&gt;EXCEPTIONS &lt;/P&gt;&lt;P&gt;program_error = 1 &lt;/P&gt;&lt;P&gt;others = 2. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just tried the same procedure ,but my entire application toolbar disappeared and a lock icon appears next to the application toolbar in my copied pf-status. &lt;/P&gt;&lt;P&gt;Could you advice what might have gone wrong ? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As identified with the FM's help you can do the following. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1). Using SE80 (I think) you can copy a GUI status from one program to another. It mentions which one in the FM's help. &lt;/P&gt;&lt;P&gt;2). Create a form named like so: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Code: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Form Set_pf_status &lt;/P&gt;&lt;P&gt;Notes: Called by FM REUSE_ALV_GRID_DISPLAY &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM set_pf_status USING rt_extab TYPE slis_t_extab. &lt;/P&gt;&lt;P&gt;SET PF-STATUS 'ZSTANDARD'. &lt;/P&gt;&lt;P&gt;ENDFORM. "Set_pf_status &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the above case the GUI status copied was named ZSTANDARD and adjusted accordingly, adding and removing the desired buttons. A button was added called '%DELETE'. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3). Create the following report: &lt;/P&gt;&lt;P&gt;Code: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Form User_command &lt;/P&gt;&lt;P&gt;Notes: Called by FM REUSE_ALV_GRID_DISPLAY &lt;/P&gt;&lt;P&gt;Detects whether the icon/button for &lt;/P&gt;&lt;P&gt;'Return Tag Deletion' has been pressed. If it has then &lt;/P&gt;&lt;P&gt;detect whether any rows have been highlighted and then &lt;/P&gt;&lt;P&gt;set the delete flag. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM user_command USING r_ucomm LIKE sy-ucomm &lt;/P&gt;&lt;P&gt;rs_selfield TYPE slis_selfield. &lt;/P&gt;&lt;P&gt;DATA: li_count TYPE I. &lt;/P&gt;&lt;P&gt;IF r_ucomm EQ '%DELETE'. &lt;/P&gt;&lt;P&gt;LOOP AT %g00 WHERE mark EQ 'X'. &lt;/P&gt;&lt;P&gt;ADD 1 TO li_count. &lt;/P&gt;&lt;P&gt;ENDLOOP. &lt;/P&gt;&lt;P&gt;IF li_count GT 0. &lt;/P&gt;&lt;P&gt;gc_delete_flag = 'X'. &lt;/P&gt;&lt;P&gt;r_ucomm = '&amp;amp;F03'. "Back arraow &lt;/P&gt;&lt;P&gt;ELSE. &lt;/P&gt;&lt;P&gt;MESSAGE W000 WITH 'Please highlight the rows to be deleted!'. &lt;/P&gt;&lt;P&gt;ENDIF. &lt;/P&gt;&lt;P&gt;ENDIF. &lt;/P&gt;&lt;P&gt;ENDFORM. "User_command &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As I've added an extra button to indicate which records should be deleted I need to identify a form to be called to process when this button is chosen. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then when you call the ALV function you to specify the following extra details: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Code: &lt;/P&gt;&lt;P&gt;call function 'REUSE_ALV_GRID_DISPLAY' &lt;/P&gt;&lt;P&gt;exporting i_callback_program = gc_repid &lt;/P&gt;&lt;P&gt;I_CALLBACK_PF_STATUS_SET = 'SET_PF_STATUS' &lt;/P&gt;&lt;P&gt;I_CALLBACK_USER_COMMAND = 'USER_COMMAND' &lt;/P&gt;&lt;P&gt;i_grid_title = lc_grid_title &lt;/P&gt;&lt;P&gt;is_layout = lc_layout &lt;/P&gt;&lt;P&gt;it_fieldcat = gt_fieldcat &lt;/P&gt;&lt;P&gt;it_sort = sort &lt;/P&gt;&lt;P&gt;i_save = l_save &lt;/P&gt;&lt;P&gt;is_reprep_id = l_bbs_id &lt;/P&gt;&lt;P&gt;is_variant = l_variant &lt;/P&gt;&lt;P&gt;tables t_outtab = %g00 &lt;/P&gt;&lt;P&gt;exceptions program_error = 1 &lt;/P&gt;&lt;P&gt;others = 2. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The parameters in capitals are the extra ones that need to be added.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if useful&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Feb 2008 08:36:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv/m-p/3421712#M821807</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-14T08:36:33Z</dc:date>
    </item>
    <item>
      <title>Re: ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv/m-p/3421713#M821808</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hih,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;first u need to copy standard toolbar of alv into ur toolbar (z*) for ur report....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for this u need to copy status into SE41.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Go to SE41.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;click on copy status button....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now into FROM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Program SAPLKKBL&lt;/P&gt;&lt;P&gt;Status STANDARD_FULLSCREEN&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Into TO&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Program ZALV_DS (ur program name)&lt;/P&gt;&lt;P&gt;Status ZSTAT ( ur status name)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now go to ur program.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM display_data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;i_callback_program = 'ZALV_DS'&lt;/P&gt;&lt;P&gt;i_callback_user_command = 'USER_COMMAND'&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;i_callback_pf_status_set = 'SET_STAT'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;is_layout = st_layout&lt;/P&gt;&lt;P&gt;i_save = 'X'&lt;/P&gt;&lt;P&gt;it_fieldcat = t_fcat&lt;/P&gt;&lt;P&gt;it_events = t_eve&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;t_outtab = itab&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;program_error = 1&lt;/P&gt;&lt;P&gt;OTHERS = 2.&lt;/P&gt;&lt;P&gt;IF sy-subrc 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO &lt;/P&gt;&lt;P&gt;WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4. &lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM. "display_data&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM set_stat USING rt_extab TYPE slis_t_extab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET PF-STATUS 'ZSTAT' EXCLUDING rt_extab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM. "SET_STAT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM user_command USING u_comm LIKE sy-ucomm sel_fld TYPE slis_selfield.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CASE u_comm.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;WHEN 'TEST'.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;CALL TRANSACTION 'MM03'.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;ENDCASE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM. "user_command&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;after copying a status into SE41, open ur Z status, add button u want to add and activate it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have added button named TEST...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward if usefull...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Feb 2008 10:15:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv/m-p/3421713#M821808</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-14T10:15:41Z</dc:date>
    </item>
    <item>
      <title>Re: ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv/m-p/3421714#M821809</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;1. Please give me general info on ALV.&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapfans.com/forums/viewtopic.php?t=58286" target="test_blank"&gt;http://www.sapfans.com/forums/viewtopic.php?t=58286&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapfans.com/forums/viewtopic.php?t=76490" target="test_blank"&gt;http://www.sapfans.com/forums/viewtopic.php?t=76490&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapfans.com/forums/viewtopic.php?t=20591" target="test_blank"&gt;http://www.sapfans.com/forums/viewtopic.php?t=20591&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapfans.com/forums/viewtopic.php?t=66305" target="test_blank"&gt;http://www.sapfans.com/forums/viewtopic.php?t=66305&lt;/A&gt; - this one discusses which way should you use - ABAP Objects calls or simple function modules.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. How do I program double click in ALV?&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapfans.com/forums/viewtopic.php?t=11601" target="test_blank"&gt;http://www.sapfans.com/forums/viewtopic.php?t=11601&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapfans.com/forums/viewtopic.php?t=23010" target="test_blank"&gt;http://www.sapfans.com/forums/viewtopic.php?t=23010&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. How do I add subtotals (I have problem to add them)...&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapfans.com/forums/viewtopic.php?t=20386" target="test_blank"&gt;http://www.sapfans.com/forums/viewtopic.php?t=20386&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapfans.com/forums/viewtopic.php?t=85191" target="test_blank"&gt;http://www.sapfans.com/forums/viewtopic.php?t=85191&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapfans.com/forums/viewtopic.php?t=88401" target="test_blank"&gt;http://www.sapfans.com/forums/viewtopic.php?t=88401&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapfans.com/forums/viewtopic.php?t=17335" target="test_blank"&gt;http://www.sapfans.com/forums/viewtopic.php?t=17335&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. How to add list heading like top-of-page in ABAP lists?&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapfans.com/forums/viewtopic.php?t=58775" target="test_blank"&gt;http://www.sapfans.com/forums/viewtopic.php?t=58775&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapfans.com/forums/viewtopic.php?t=60550" target="test_blank"&gt;http://www.sapfans.com/forums/viewtopic.php?t=60550&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapfans.com/forums/viewtopic.php?t=16629" target="test_blank"&gt;http://www.sapfans.com/forums/viewtopic.php?t=16629&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;5. How to print page number / total number of pages X/XX in ALV?&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapfans.com/forums/viewtopic.php?t=29597" target="test_blank"&gt;http://www.sapfans.com/forums/viewtopic.php?t=29597&lt;/A&gt; (no direct solution)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;6. ALV printing problems. The favourite is: The first page shows the number of records selected but I don't need this.&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapfans.com/forums/viewtopic.php?t=64320" target="test_blank"&gt;http://www.sapfans.com/forums/viewtopic.php?t=64320&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapfans.com/forums/viewtopic.php?t=44477" target="test_blank"&gt;http://www.sapfans.com/forums/viewtopic.php?t=44477&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;7. How can I set the cell color in ALV?&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapfans.com/forums/viewtopic.php?t=52107" target="test_blank"&gt;http://www.sapfans.com/forums/viewtopic.php?t=52107&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;8. How do I print a logo/graphics in ALV?&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapfans.com/forums/viewtopic.php?t=81149" target="test_blank"&gt;http://www.sapfans.com/forums/viewtopic.php?t=81149&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapfans.com/forums/viewtopic.php?t=35498" target="test_blank"&gt;http://www.sapfans.com/forums/viewtopic.php?t=35498&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapfans.com/forums/viewtopic.php?t=5013" target="test_blank"&gt;http://www.sapfans.com/forums/viewtopic.php?t=5013&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;9. How do I create and use input-enabled fields in ALV?&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapfans.com/forums/viewtopic.php?t=84933" target="test_blank"&gt;http://www.sapfans.com/forums/viewtopic.php?t=84933&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapfans.com/forums/viewtopic.php?t=69878" target="test_blank"&gt;http://www.sapfans.com/forums/viewtopic.php?t=69878&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;10. How can I use ALV for reports that are going to be run in background?&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapfans.com/forums/viewtopic.php?t=83243" target="test_blank"&gt;http://www.sapfans.com/forums/viewtopic.php?t=83243&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapfans.com/forums/viewtopic.php?t=19224" target="test_blank"&gt;http://www.sapfans.com/forums/viewtopic.php?t=19224&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;11. How can I display an icon in ALV? (Common requirement is traffic light icon).&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapfans.com/forums/viewtopic.php?t=79424" target="test_blank"&gt;http://www.sapfans.com/forums/viewtopic.php?t=79424&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapfans.com/forums/viewtopic.php?t=24512" target="test_blank"&gt;http://www.sapfans.com/forums/viewtopic.php?t=24512&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;12. How can I display a checkbox in ALV?&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapfans.com/forums/viewtopic.php?t=88376" target="test_blank"&gt;http://www.sapfans.com/forums/viewtopic.php?t=88376&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapfans.com/forums/viewtopic.php?t=40968" target="test_blank"&gt;http://www.sapfans.com/forums/viewtopic.php?t=40968&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapfans.com/forums/viewtopic.php?t=6919" target="test_blank"&gt;http://www.sapfans.com/forums/viewtopic.php?t=6919&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Link containing all the important PDFS. ( There is a PDF for ALV Grid in this link)&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.easymarketplace.de/online-pdfs.php" target="test_blank"&gt;http://www.easymarketplace.de/online-pdfs.php&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Do reward.&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Feb 2008 10:56:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv/m-p/3421714#M821809</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-14T10:56:23Z</dc:date>
    </item>
    <item>
      <title>Re: ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv/m-p/3421715#M821810</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank u.....&lt;/P&gt;&lt;P&gt;it is working.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Feb 2008 11:03:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv/m-p/3421715#M821810</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-14T11:03:18Z</dc:date>
    </item>
  </channel>
</rss>

