Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

pf status in alv

Hi all,

I have to add a button to alv list display output to proceed further ( along with other standard buttons like select all/ filer/ sorting etc).

can anybody help me please.

thanks,

sudheer

Tags:
Former Member
replied

Hi,

First, copy pf-status 'Standard' to your program, named 'Zstandard' , add button to the status.

Second, add parameters to you ALV function like:

CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'

EXPORTING

i_callback_program = repname

i_callback_pf_status_set = 'SET_PF_STATUS'

FORM set_pf_status USING rt_extab TYPE slis_t_extab.

DATA: wa_extab TYPE slis_extab.

wa_extab-fcode = '&OAD'.

APPEND wa_extab TO rt_extab.

wa_extab-fcode = '&AVE'.

APPEND wa_extab TO rt_extab.

SET PF-STATUS 'ZSTANDARD' EXCLUDING rt_extab .

ENDFORM. "Set_pf_status

Regards,

Pole

0 View this answer in context

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question