on 10-04-2012 4:04 PM
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
However this is just to add you cannot use the functionality unless Java server availibility / RFC connections are maintained properly.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for your reply Monishankar Chatterjee. We are watching this posibility.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
94 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.