cancel
Showing results for 
Search instead for 
Did you mean: 

Web Dynpro ALV grid column width

Former Member
0 Kudos

Hi,

I have a web dynpro alv grid that has columns titles that are long. What is the best way of displaying the data without taking up too much space with the titles?

For example is it possible to wrap the title into 2 or 3 rows

Thanks,

Samir

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

You have to use the set_width of the cl_salv_wd_column andSET_HEADER_TEXT_WRAPPING of CL_SALV_WD_COLUMN_HEADER.

Regards,

Lekha.

Former Member
0 Kudos

hi,

Thanks for that but i cant find SET_HEADER_TEXT_WRAPPING within that class?

Former Member
0 Kudos

Hi,

SET_HEADER_TEXT_WRAPPING of CL_SALV_WD_COLUMN_HEADER is used for wrapping text.

Regards,

Lekha.

Former Member
0 Kudos

I think it needs an enhancement package by the looks of it, as the method simply does not exist in our system :

https://websmp130.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=1148429#Releas...

Former Member
0 Kudos

Is there a way to use the short text from the data element instead of the long text (i am using a structure in my context)

Former Member
0 Kudos

Hi,

DATA: lr_column type ref to cl_salv_wd_column,
lr_colheader type ref to cl_salv_wd_column_header.

          CALL METHOD lrcolumn->get_header
            RECEIVING
              value = lr_COLHEADER.
 lr_COLHEADER->set_ddic_binding_field( if_salv_wd_c_ddic_binding=>ddic_bind_short ).

Refer this if_salv_wd_c_ddic_binding in se24 for more.

Regards,

Lekha.