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 in alv

Former Member
0 Kudos

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

1 ACCEPTED SOLUTION

pole_li
Active Participant
0 Kudos

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

5 REPLIES 5

former_member186143
Active Contributor
0 Kudos

SE41 create

copy standard status from program saplsalv to you're own program and status standard

in you're programm refer to you're status created


  CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
    EXPORTING
*     I_INTERFACE_CHECK                 = ' '
      i_bypassing_buffer                = 'X'
*     I_BUFFER_ACTIVE                   = ' '
      i_callback_program                = h_repid
      i_callback_pf_status_set          = 'SET_PF_STATUS'
      i_callback_user_command           = 'USER_COMMAND'

and the form



*&---------------------------------------------------------------------*
*&      Form  set_pf_status
*&---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
*      -->RT_EXTAB   text
*----------------------------------------------------------------------*
FORM set_pf_status USING rt_extab TYPE slis_t_extab.
  SET PF-STATUS 'STANDAARD'.
ENDFORM.                    "set_pf_status


kind regards

arthur de smidt

Edited by: A. de Smidt on Jul 18, 2008 8:52 AM

Former Member
0 Kudos

Hi,

goto SE80->functiongroup->SALV--->select Guistatus

-


>copy STANDARD--->give z name and ur program name.

use this pf-status in ur program.

hope it will help..

pole_li
Active Participant
0 Kudos

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

former_member224940
Discoverer
0 Kudos

se41 copy standard status to your program