cancel
Showing results for 
Search instead for 
Did you mean: 

output

Former Member
0 Kudos

HI to all,

i am working with alv and working fine.but in alv output the two buttons called

printverssion and export buttons are not working.

One more thing is that i need to get a layout,save and some other icons in to my alv.

so,please let me know any suggessions on this..

Thanks and Regards,

Satti

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

For Excel Export

Look at methods of the interface class IF_SALV_WD_EXPORT_SETTINGS for this (implementing

class CL_SALV_WD_CONFIG_TABLE).

For PDF Export

You use the methods of the interface class IF_SALV_WD_PDF_SETTINGS for this

(implementing class CL_SALV_WD_CONFIG_TABLE).

Thanks,

Abhishek

Former Member
0 Kudos

hi ,

In my alv i have a select all and deselect all functionalities.now when the user will select all then if clicks on export button which is there in alv it has to export excel and even in to pdf format.at the same i need to add a button called pdf in my alv display output.i need a bit detail coding so that which i can work here...coz i am poor in coding....

In advance,

Thanks,

Satti

Former Member
0 Kudos

Hi Satish,

ALV provides separate standard buttons to Export and get PDF format for the data.

So no need of creating an extra PDF button. Only thing is you need to have all the PDF configuration settings done in your system.

To create extra button, you can use following code in your instantiation code for ALV:


DATA lr_btn    TYPE REF TO cl_salv_wd_fe_button.
  CREATE OBJECT lr_btn.
  lr_btn->set_text( 'Save' ).

*Button Function
  DATA fn_btn TYPE REF TO cl_salv_wd_function.
  fn_btn = l_value->if_salv_wd_function_settings~create_function(
                          id = 'SAVE' ).
  fn_btn->set_editor( lr_btn ).

Hope this helps!

Thanks,

Tejaswini