Skip to Content
avatar image
Former Member

Multiline text in cell of the table

Hi Experts,

I have internal table wich has field (type STRING).

Value field is for example ' <?p?>?line1?<?/?p?>?<?p?>?line2?</p>?' Without '?' 😊

It means that value in one cell of the table should be so :

line1

line2

I cannot to use FormattedTextView for table column.

What I can to use instead this?

Thanks in advance

Evgeniy

Edited by: Evgeny Vazhev on May 5, 2011 2:03 PM

Edited by: Evgeny Vazhev on May 5, 2011 2:04 PM

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    May 05, 2011 at 12:09 PM

    Hi

    I dont think so it is possible in Table, but you can acieve this in ALV using wrap text.

    Please go through this..

    wrap-text-in-alv-cell

    Cheers,

    Kris.

    Add comment
    10|10000 characters needed characters exceeded

  • May 05, 2011 at 12:11 PM

    Since you can't use the formatted UI elements, you will need to remove the XHTML formatting. I would suggest perform text replacement and removing the

    <p>

    completely and replacing the

    </p>

    with cl_abap_char_utilities=>cr_lf.

    Try that with the textView. If the carriage return isn't used in the text view, you might swap the UI element to a disabled textEdit UI element instead.

    Add comment
    10|10000 characters needed characters exceeded