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: 

stand tool bar options not working set_table_for_first_display

Former Member
0 Kudos

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

10 REPLIES 10

Clemenss
Active Contributor
0 Kudos

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

Former Member
0 Kudos

If I use the above method then what would be the status I need to copy?

Can you guid me please

Thanks,

Sri

0 Kudos

copy the PF-Status using of any standard SALV_DEMO report using the transaction SE41: Menu Painter

Former Member
0 Kudos

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?

0 Kudos

try 'STANDARD'

Former Member
0 Kudos

I copied the STANDARD,,, now some of the buttons are grayed out....

Is there anyway I can correct it....

Former Member
0 Kudos

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.

former_member156446
Active Contributor
0 Kudos

[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

Former Member
0 Kudos

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

Former Member
0 Kudos

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 ).