Skip to Content
avatar image
Former Member

Set the Image + text into dynamic ALV columns

Hi All,

I would like to set the image + text into dynamic ALV columns please suggest me the way to use.

Currently i am able to get the image using

create object lr_caption.

call METHOD lr_caption->set_image_sourcE

EXPORTING

value = <fieldname>-icon.

call METHOD lr_caption->set_text_fieldname

EXPORTING

value = lr_column->id.

call METHOD lr_caption->set_tooltip_fieldname

EXPORTING

value = lr_column->id.

lr_column->set_cell_editor( value = lr_caption ).

when i use this piece of code i abel to get the text and image but the text is getting displayed as wrapping text hope u understand wrapping here means ..

Ex; project name user id

My project U1111

test data

according to the above example here the text My project test data whcih was supposed to come in single line it is getting wrappd and displaying in this way which i want to avoid..

Regards,

Misbah

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • Best Answer
    Feb 22, 2011 at 04:48 AM

    Hi Sultana,

    Please refer this thread, it might helps you...

    wrap-text-in-alv-cell

    Thanks,

    Kris.

    Add comment
    10|10000 characters needed characters exceeded