cancel
Showing results for 
Search instead for 
Did you mean: 

ALV grid.

Former Member
0 Kudos

I created an ALV grid to display the output..

but in the output i dont need *print version* field which is coming in ALV..

how to do that?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

*Print Version* i standard button in ALV.If you want to remove this stansdard button from ALV grid use below code.

*ALV Component usage

data: l_ref_cmp_usage type ref to if_wd_component_usage.

l_ref_cmp_usage = wd_this->wd_cpuse_alv( ).

if l_ref_cmp_usage->has_active_component( ) is initial.

l_ref_cmp_usage->create_component( ).

endif.

*Call Get_model() of Interface Controller to set changes to the output

*table

data: l_ref_interfacecontroller type ref to iwci_salv_wd_table .

l_ref_interfacecontroller = wd_this->wd_cpifc_alv( ).

data:

l_value type ref to cl_salv_wd_config_table.

l_value = l_ref_interfacecontroller->get_model(

).

  • Remove standard button *Print Version*

l_value->if_salv_wd_std_functions~set_pdf_allowed( abap_false ).

thanks

Suman

Answers (2)

Answers (2)

Former Member
0 Kudos

thanks suman,

it solved my problem..

thank you..

steffen_weber
Employee
Employee
0 Kudos

Hi,

do you want to hide columns in your ALV or do you mean a standard ALV function?

If you just want to hide columns, look here:

[|]

[|]

[|]

Does this answer your question?

Best regards, Steffen

Oh, just saw that there's the right answer posted while I was writing, so forget my post!

Edited by: Steffen Weber on Aug 28, 2008 12:06 PM