11-11-2009 9:46 PM
Hi,
I copied the standard gui status from salv_table_standard to a zsalv_stanard.
I created a container and displayed the data in the form of a grid using the method set_table_for_first_display.
When I execute the program and click on the tool bar options non of those are working...
I set the pf-status to Zsalv_standard in PBO.
Can anyone please guide me where am i going wrong...
Sri
11-11-2009 11:23 PM
Hi,
set_table_for_first_display is not SALV.
You can not randomly put programs, classes and PF-Status together and expect it works.
Regards,
Clemens
11-11-2009 11:29 PM
If I use the above method then what would be the status I need to copy?
Can you guid me please
Thanks,
Sri
11-11-2009 11:34 PM
copy the PF-Status using of any standard SALV_DEMO report using the transaction SE41: Menu Painter
11-11-2009 11:43 PM
As clemens suggested this SALV is not related to the method I am using and pf is status is also not related...then what is the status I have use?
11-11-2009 11:46 PM
11-12-2009 2:42 AM
I copied the STANDARD,,, now some of the buttons are grayed out....
Is there anyway I can correct it....
11-12-2009 3:11 AM
You can copy standard GUI-STATUS for Standard full screen
display or Pop-up display from standard
Function Group 'SALV_METADATA_STATUS'
Use this for diplay of status :
CALL METHOD go_table->set_screen_status
EXPORTING
report = gv_cprog
pfstatus = gc_gui_status
set_functions = go_table->c_functions_all.
11-11-2009 11:27 PM
[OBJECT ORIENTED ALV Guide |http://wiki.sdn.sap.com/wiki/display/ABAP/OBJECTORIENTEDALV+Guide]
http://help-abap.blogspot.com/2008/09/salv-model-3-adding-custom-pf-status-in.html
11-12-2009 1:42 AM
Hello ,
try
call method g_grid%->set_table_for_first_display
exporting
i_save = p_save_layout%
i_default = 'X'
is_layout = ps_layout%
is_variant = ps_variant%
it_toolbar_excluding = pt_exclude%
changing
it_outtab = pt_alv_tab1[]
it_fieldcatalog = pt_fieldcat%[].
call method g_grid%->set_toolbar_interactive.
regards
Prabhu
11-12-2009 3:13 AM
You can dirctly write below code to activate all the functions in ALV
*-- activate ALV generic Functions
go_functions = go_table->get_functions( ).
go_functions->set_all( abap_true ).