cancel
Showing results for 
Search instead for 
Did you mean: 

Remove print bottun in alv table

Former Member
0 Kudos

Hello,

In our web dynpro pages we use view controler uielement,

In the top of the alv we have a print button but we can't use it

because we do not have a Java engine.

haw can I remove the print button?

Best Regards,

Efrat Ben-David

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hello!

To remove the <i>Print Version</i> Button, use the method set_pdf_allowed in interface if_salv_wd_std_functions using an instance of cl_salv_wd_config_table.

data lo_interfacecontroller type ref to iwci_salv_wd_table .

lo_interfacecontroller = wd_this->wd_cpifc_alv_comp( ).

data lo_value type ref to cl_salv_wd_config_table.

lo_value = lo_interfacecontroller->get_model(

).

CALL METHOD lo_value->if_salv_wd_std_functions~set_pdf_allowed( value = <b>abap_false</b> ).

Regards,

Neha

Answers (1)

Answers (1)

abhimanyu_lagishetti7
Active Contributor
0 Kudos

Hi

Oops double posting

data: lr_salv_wd_table TYPE REF TO iwci_salv_wd_table.

data: lr_config_table type ref to CL_SALV_WD_CONFIG_TABLE.

lr_salv_wd_table = wd_this->wd_cpifc_<comp usage name>( ).

lr_config_table = lr_salv_wd_table->get_model( )

lr_config_table->IF_SALV_WD_STD_FUNCTIONS~SET_PDF_ALLOWED( value = abap_false ).

Regards

Abhimanyu L

Message was edited by:

Abhimanyu Lagishetti

Message was edited by:

Abhimanyu Lagishetti