Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

ALV Grid PF Status Issue

Former Member
0 Kudos
137

Hello All,

I am using the function 'REUSE_ALV_GRID_DISPLAY' and need to capture the changes that a user will make to the grid output. Currently, I am using as an export i_callback_pf_status_set = 'SET_STATUS' to include a few pushbuttons that the user will need. I found that in using this, the changes to the grid were not captured in my internal table. If I comment out this export, then the changes are captured in my internal table however I lose the functionality I developed. Is there any way that I can use my custom PF Status and capture the changes to my ALV grid? Thanks in advance for your help.

John

1 ACCEPTED SOLUTION

Former Member
0 Kudos
115

Hi John,

Add the new buttons GUI status "STANDARD". se80 -> programs -> GUI status -> select "STANDARD" -> change

Thanks

Anantha

2 REPLIES 2

Former Member
0 Kudos
116

Hi John,

Add the new buttons GUI status "STANDARD". se80 -> programs -> GUI status -> select "STANDARD" -> change

Thanks

Anantha

Former Member
0 Kudos
115

Refer this

In order modify PF_STATUS of ALV grid report you need to perform the following steps:

1. Update 'REUSE_ALV_GRID_DISPLAY' FM call to include:

i_callback_pf_status_set = 'SET_PF_STATUS' statement.

2. Create 'SET_PF_STATUS' FORM

3. Create pf_status (i.e. 'ZNEWSTATUS').

- It is recommend that you copy standard status'STANDARD' from function group SALV

and modify it accordingly. ALV standard function codes always start with '&'.

call function 'REUSE_ALV_GRID_DISPLAY'
       exporting
            i_callback_program      = gd_repid
            i_callback_top_of_page   = 'TOP-OF-PAGE'  
            i_callback_pf_status_set = 'SET_PF_STATUS'   "see FORM 
            is_layout               = gd_layout
            it_fieldcat             = fieldcatalog[]
            i_save                  = 'X'
       tables
            t_outtab                = it_ekko
       exceptions
            program_error           = 1
            others                  = 2.
 
*------------------------------------------------------------------*
*       FORM SET_PF_STATUS                                         *
*------------------------------------------------------------------*
FORM set_pf_status USING rt_extab TYPE slis_t_extab.
  SET PF-STATUS 'ZNEWSTATUS'. 
                  "Copy of 'STANDARD' pf_status from fgroup SALV
ENDFORM.

Reward points and close the thread if ur problem got solved.