cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with Print Version Button In SALV_WD_TABLE

0 Kudos

Hi Experts,

In my development  I´m integrating standard component SALV_WD_TABLE in my web dynpro for getting the print Version & Export button, but only appear Export Button.

In the method Doinit of my view, I´m trying to activate the print version button, but doesn’t appear.

My code:

DATA lo_interfacecontroller TYPE REF TO iwci_salv_wd_table .
DATA lo_value TYPE REF TO cl_salv_wd_config_table.
DATA lo_cmp_usage TYPE REF TO if_wd_component_usage.

lo_cmp_usage =   wd_this->wd_cpuse_alv( ).
IF lo_cmp_usage->has_active_component( ) IS INITIAL.
lo_cmp_usage->create_component( ).
ENDIF.
DATA: l_std_func TYPE REF TO if_salv_wd_std_functions.

DATA: l_pdf_sett TYPE REF TO if_salv_wd_pdf_settings.

lo_interfacecontroller = wd_this->wd_cpifc_alv( ).
lo_value = lo_interfacecontroller->get_model( ).

l_std_func ?= lo_value.

l_std_func->set_count_records_allowed( value  = abap_true ).

l_std_func->set_aggregation_allowed( value  = abap_true ).

l_std_func->set_graphic_allowed( value  = abap_true ).
l_std_func->set_export_allowed( value  = abap_true  ).
l_std_func->set_pdf_allowed( value  = abap_true     ).


I need activate any service? I need to configure something?

Somebody can help me?

Thanks.

Best regards

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

However this is just to add you cannot use the functionality unless Java server availibility / RFC connections are maintained properly.

0 Kudos

Thanks for your  reply . We are watching  this posibility.

Answers (3)

Answers (3)

ChandraMahajan
Active Contributor
0 Kudos

Hi,

I guess your problem is Print Version button not getting displayed.

you need to use,

  lo_value>if_salv_wd_std_functions~set_pdf_allowed( 'ABAP_TRUE' ) .

And then refer http://scn.sap.com/people/bv.pillai/blog/2007/01/09/webdynpro-abap-alv-print-versionpdf

to make it work.

Thanks,

Chandra

0 Kudos

Thanks Chandrashekhar Mahajan, the client is configuring the system for solved this problem.

Regards,

Former Member
0 Kudos

Hi Hermoso,

    The print version of ALV depends on the availibility of the Java server in your sysset because various other configuration need to maintain to get a PDF print. You will get several example for that by browsing.

  Therefore this functionality can be deactivated by customizing in your system. You can check

SPRO -> SAP Netweaver -> General Settings -> Application Server -> SAP List Viewer (ALV).

Check the documentation available for Web Dynpro ABAP specific settings. Also you can check the availibility of the of the 'Pront version button' by maintaing setting ( Check Java server available option ).

Regards,

Monishankar Chatterjee

0 Kudos

I've tried with this:

cl_salv_wd_model_table_util=>if_salv_wd_table_util_stdfuncs~set_all( r_model = lo_value ).

This should enable all buttons, but in practice the Print button does not appear.