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 and User Command in CALL METHOD alv_grid_ob->set_table_for_first_

Former Member
0 Kudos

Hi Can anyone please advice me how can we have PF Status in User Command in Object Oriented ALV Grid Display.

* display alv grid
  CALL METHOD alv_grid_ob->set_table_for_first_display
    EXPORTING
*    IS_VARIANT                    =
*    I_SAVE                        =
      i_default                     = 'X'
      is_layout                     = t_lay
*    IT_TOOLBAR_EXCLUDING          =
    CHANGING
      it_outtab                     = 
      it_fieldcatalog               = t_field_catalog
    EXCEPTIONS
      invalid_parameter_combination = 1
      program_error                 = 2
      too_many_lines                = 3
      OTHERS                        = 4.
  IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
  ENDIF.

2 REPLIES 2

Former Member
0 Kudos

Hi,

you can directly handle that in PBO module of the screen....

you can give a direct

set PF-status statement in any of the module in PBO...

and you can handle in PAI

Regards,

Siddarth

Former Member
0 Kudos

Hi,

Set the PF status in the PBO of the screen in which alv is called .