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: 

PF status for ALV report

Former Member
0 Kudos

hi,

i have a requirement where i have to remove sort buttons(Application tool bar) in ALV report.

can anyone please suggest the code

thanks

1 ACCEPTED SOLUTION

naimesh_patel
Active Contributor
0 Kudos

Copy the standard PF-Status to your program.

Go to SE41.

Program: SAPLKKBL

Status: STANDARD_FULLSCREEN

Then press the button "Copy Status" Ctrl+F6.

Give your program name and status name to copy it.

Remove the button you wanted form your generated PF-Status.

Now in your program you need to make one perform for this:

  call function 'REUSE_ALV_GRID_DISPLAY'
    exporting
      i_callback_program                = g_repid
     i_callback_pf_status_set          = 'SET_PF_STATUS'    " <<

Make a FORM with name SET_PF_STATUS.

form SET_PF_STATUS using rt_extab type slis_t_extab .      "#EC CALLED

      set pf-status 'ZTEST_PF' excluding rt_extab[]. " < Status name copied in the first step.

endform.                    "f01_set_status

Regards,

Naimesh Patel

2 REPLIES 2

naimesh_patel
Active Contributor
0 Kudos

Copy the standard PF-Status to your program.

Go to SE41.

Program: SAPLKKBL

Status: STANDARD_FULLSCREEN

Then press the button "Copy Status" Ctrl+F6.

Give your program name and status name to copy it.

Remove the button you wanted form your generated PF-Status.

Now in your program you need to make one perform for this:

  call function 'REUSE_ALV_GRID_DISPLAY'
    exporting
      i_callback_program                = g_repid
     i_callback_pf_status_set          = 'SET_PF_STATUS'    " <<

Make a FORM with name SET_PF_STATUS.

form SET_PF_STATUS using rt_extab type slis_t_extab .      "#EC CALLED

      set pf-status 'ZTEST_PF' excluding rt_extab[]. " < Status name copied in the first step.

endform.                    "f01_set_status

Regards,

Naimesh Patel

Former Member
0 Kudos

If you are using function module, then simply fill in the function codes of those buttons into one internal table and pass it to IT_EXCLUDING parameter. Make sure that you define your internal table same as IT_EXCLUDING.