cancel
Showing results for 
Search instead for 
Did you mean: 

ALV column editor CL_SALV_WD_ UIE_TEXT_VIEW displays no texts

Former Member
0 Kudos

Hello,

I use an ALV table in my ABAP WebDynpro application. I need to wrap the content of the cells so I use the column editor CL_SALV_WD_ UIE_TEXT_VIEW.

The problem is: as soon as I set the column editor CL_SALV_WD_ UIE_TEXT_VIEW my texts in the alv colums are not displayed anymore.

My Coding:



  DATA:
    ...
    lo_column         TYPE REF TO cl_salv_wd_column,
    lo_text_view      TYPE REF TO CL_SALV_WD_UIE_TEXT_VIEW.

   ...

   LOOP AT lt_columns INTO ls_columns.
     lo_column = ls_columns-r_column.
     CASE ls_columns-id .
       WHEN 'MEDIUM'.
         create OBJECT lo_text_view.
         lo_column->set_cell_editor( lo_text_view ).
     ENDCASE.
   ENDLOOP.

 

Can anybody help me?

Accepted Solutions (1)

Accepted Solutions (1)

former_member199125
Active Contributor
0 Kudos

Small changes in your code.

LOOP AT lt_columns INTO ls_columns.

lo_column = ls_columns-r_column.

CASE ls_columns-id .

WHEN 'MEDIUM'.

create OBJECT lo_text_view.

lo_text_view->set_text_fieldname( 'your desired text ').

lo_column->set_cell_editor( lo_text_view ).

ENDCASE.

ENDLOOP.

Regards

Srinivas

Former Member
0 Kudos

Hello Srinivas,

terrific! You solved my problem. Thanks a lot.

Regards

Kerstin

former_member199125
Active Contributor
0 Kudos

hi..

FYI

Whenever you create the object , you should also pass its properties. In below statement text is the property for textview.

lo_text_view->set_text_fieldname( 'your desired text ').

//ly for progress indicator elements -


set_percent_value_fieldname( 'attibute name")

//ly for buttons----


set_text_fieldname('buttonname')

Here bolded texts are properties name of their corresponding elements.

Okay...

Regards

Srinivas

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Developer,

The wraping functionality functionality is there in 7.0 Enhp1. It works for standard tables and ALV.

Please go through this.. coding in this..

Cheers,

Kris.

Former Member
0 Kudos

Hello Kris,

thank you very much for your answer. This Link helps a lot.

Regards,

Kerstin