12-14-2009 9:35 AM
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?
12-14-2009 9:49 AM
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
12-14-2009 9:42 AM
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
12-14-2009 9:49 AM
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