cancel
Showing results for 
Search instead for 
Did you mean: 

ALV Print Version

Former Member
0 Kudos

Hi,

I have displayed some columns in an ALV table. One of the columns has data element length of 400.

When I use the print version button the data get exported to PDF but the column which has length of 400 takes the entire page width but then too some data of that column get truncated.

I have selected Poster radio button from Print Version tab in settings because when I select the other 2 radio buttons it displays the entire ALV data in one page which is not readable.

Ho should I enable the wrapping for the column which is of length 400 in the PDF

Thanks,

Feroz

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Did not find any solution.

Closing the thread.

uday_gubbala2
Active Contributor
0 Kudos

Hi Feroz,

Try programmatically setting the column attributes via the ALV Model:

Regards,

Uday

data: l_ref_cmp_usage type ref to if_wd_component_usage.
  l_ref_cmp_usage =   wd_this->wd_cpuse_alv_adv( ).
  if l_ref_cmp_usage->has_active_component( ) is initial.
    l_ref_cmp_usage->create_component( ).
  endif.
 
  data l_salv_wd_table type ref to iwci_salv_wd_table.
  l_salv_wd_table = wd_this->wd_cpifc_alv_adv( ).
  data l_table type ref to cl_salv_wd_config_table.
  l_table = l_salv_wd_table->get_model( ).
 
  data l_column type ref to cl_salv_wd_column.
  data textview type ref to cl_salv_wd_uie_text_view.
  l_column = l_table->if_salv_wd_column_settings~get_column( 'ADD_PARTICIPANTS' ).
  create object textview.
  textview->set_text_fieldname( 'ADD_PARTICIPANTS' ).
  textview->set_wrapping( abap_true ).
  l_column->set_cell_editor( textview ).

Former Member
0 Kudos

Hi,

Thanks for the reply.

I have used input field as cell editor. more over i have displayed 40 columns with scroll bar in ALV.

Therefore I have to use poster radio button.

Are there any APIs by which I can achieve the column wrapping in PDF.

Thanks,

Feroz

Edited by: Feroz Khan Pathan on Jul 21, 2009 11:49 AM

Edited by: Feroz Khan Pathan on Jul 22, 2009 10:10 AM