‎2009 Nov 13 4:56 AM
Hello
I have a alv-list with cl_salv_table.
Now I want to add a button behind the standard buttons in alv-grid (Refresh function)
Thanks for any helps
Daniel
‎2009 Nov 13 5:05 AM
Go to the gui status and add ur new button on the application toolbar.
after u call the factory method activate ALV generic Functions and include own functions by setting own status.
data: gr_alv type ref to cl_salv_table.
CALL METHOD cl_salv_table=>factory
EXPORTING
list_display = abap_false
IMPORTING
r_salv_table = gr_alv
CHANGING
t_table = it_out_tab.
gr_alv->set_screen_status(
pfstatus = c_pfstatus_alv
report = sy-repid ).
set_functions = GR_alv->c_functions_all ).
‎2009 Nov 13 5:10 AM
Thanks Kalyan
This call I have the problem:
gr_alv->set_screen_status(
pfstatus = c_pfstatus_alv
report = sy-repid ).
set_functions = GR_alv->c_functions_all ).
c_pfstatus_alv is a pf-status what I define by my self, right?
When I do that, so I have only my own function in the grid, but I want the standard buttons to.
(Sort, Export, etc.)
Thanks for any help
Daniel
‎2009 Nov 13 5:15 AM
the button u need to add will be in the application tool bar..right?
if u hve the pf status..c_pfstatus_alv will be this that u will enter. On this PF status u will create ur own botton and pass the pfstatus name in the code given.
with this code.. guess u will hve all the other functions too..
‎2009 Nov 14 5:38 AM
Hi
Now I'm one step ahead - I copied the status SALV_STANDARD into my report, it works.
But now I get the next problem. I need the button EXPORT (Export the Grid data to Excel, etc.)
Thanks for any help
Daniel
‎2009 Nov 14 6:38 AM