Skip to Content
avatar image
Former Member

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

5 Answers

  • Best Answer
    Jul 18, 2008 at 06:54 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jul 18, 2008 at 06:54 AM
    Add comment
    10|10000 characters needed characters exceeded

  • Jul 18, 2008 at 06:50 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jul 18, 2008 at 06:52 AM

    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..

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Dec 16, 2014 at 11:47 AM

    se41 copy standard status to your program

    Add comment
    10|10000 characters needed characters exceeded