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: 

Standard PF-STATUS in OOALV

former_member212005
Active Contributor
0 Kudos

Is there any way to use the standard PF status when using Object Oriented ALV?

I.e. in Classical ALV, we can copy the standard GUI status in our program and then pass the GUI status in the function module 'REUSE_ALV_GRID_DISPLAY'.....which inturn handles standard function...

Is there any such way of copying the standard PF status using OOALV....and the functions handled automatically?

1 ACCEPTED SOLUTION

Former Member
0 Kudos

in SE80, copy status STANDARD from function group SALV into your program, with a name such as ZALVSTATUS.

Then set the screen status as follows, the processing will be handled automatically



  alv_object    type ref to cl_salv_table.

  try.
      call method cl_salv_table=>factory
        importing
          r_salv_table = alv_object
        changing
          t_table      = t_runs.

    catch cx_salv_msg.
      message e001(z0) with 'Unable To Create Display Table'.
  endtry.

  alv_object->set_screen_status( report = sy-repid
                             pfstatus = 'ZALVSTATUS'
                             set_functions = 2 ).           "2 = all

2 REPLIES 2

SuhaSaha
Advisor
Advisor
0 Kudos

Hello Vin,

In OO ALV you are defining a custom container in a screen.

So you have to define/copy a GUI status for the screen & code for the functions.

Please refer to the program BCALV_GRID_01 on how to handle the situation.

BR,

Suhas

Former Member
0 Kudos

in SE80, copy status STANDARD from function group SALV into your program, with a name such as ZALVSTATUS.

Then set the screen status as follows, the processing will be handled automatically



  alv_object    type ref to cl_salv_table.

  try.
      call method cl_salv_table=>factory
        importing
          r_salv_table = alv_object
        changing
          t_table      = t_runs.

    catch cx_salv_msg.
      message e001(z0) with 'Unable To Create Display Table'.
  endtry.

  alv_object->set_screen_status( report = sy-repid
                             pfstatus = 'ZALVSTATUS'
                             set_functions = 2 ).           "2 = all