cancel
Showing results for 
Search instead for 
Did you mean: 

Text Wrapping in ALV column header

Former Member
0 Kudos

Hello Experts,

I have an ALV with fixed table layout . I want to wrap the text of a column header .

Is it possible in webdynpro ?

Thanks

Vivek

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hello Thomas ,

Thanks a lot for your reply . What is corresponding SP ( Support pack ) for Web AS 7.0 EHP 1 . Is it already released or planned to release .

In service market place I can see only upto SP 18 .

Regards

Vivek

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

>

> Hello Thomas ,

> Thanks a lot for your reply . What is corresponding SP ( Support pack ) for Web AS 7.0 EHP 1 . Is it already released or planned to release .

> In service market place I can see only upto SP 18 .

> Regards

> Vivek

There isn't a corresponding SP that will deliver that functionality. SAP is now very strict about the rules that SPs will only contain bug fixes and legal changes. All new functionality will only be delivered via new releases and enhancement packages. So if you want the Text Wrap in column headers, you must apply Netweaver 7.0 EnhP1. It won't matter what SP level you are on, you won't have the functionality.

Answers (1)

Answers (1)

uday_gubbala2
Active Contributor
0 Kudos

Hi Vivek,

Its not possible to wrap the text of a column header. You can only wrap the content of ALV cells. You can even try check these threads which deal with the same issue.

[Thread 1|]

[Thread 2|]

Regards,

Uday

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

>

> Hi Vivek,

>

> Its not possible to wrap the text of a column header. You can only wrap the content of ALV cells. You can even try check these threads which deal with the same issue.

>

> [Thread 1|]

>

> [Thread 2|]

>

> Regards,

> Uday

Actually as of NetWeaver 7.0 EnhP1 that is no longer true. We added the option to wrap column headers.

data l_header type ref to cl_salv_wd_column_header.
  l_column = l_table->if_salv_wd_column_settings~get_column( 'CREATED_BY' ).
  l_header = l_column->get_header( ).
  l_header->set_prop_ddic_binding_field(
    property =  if_salv_wd_c_ddic_binding=>bind_prop_text
    value = if_salv_wd_c_ddic_binding=>ddic_bind_none ).
  l_header->set_prop_ddic_binding_field(
    property =  if_salv_wd_c_ddic_binding=>bind_prop_tooltip
    value = if_salv_wd_c_ddic_binding=>ddic_bind_none ).
  l_header->set_tooltip( `1234567890123456789012345678901234567890` ).
  l_header->set_text( `Created By` ).
  l_header->set_header_text_wrapping( abap_true ).
  l_column->set_resizable( abap_true ).

Just keep in mind that you must be on Enhancement Package 1 of NetWeaver for this to work.