Skip to Content
-1

how to show more than 128 char in alv grid display using ABAP OOPS in control screen ?

Nov 12, 2016 at 01:14 PM

708

avatar image

How to display more than 128 char in alv grid display using ABAP OOPS in control screen in module pool programming?

In the list display it shows full string but not in grid.

I tried many possibilities but it not working.

there is one way I tried is Word Wrapping (it will split string user defined length & show in two rows) but I can't found any code like Word Wrapping using ABAP OOPS.

Can any one please help me?

Thanks in advance .

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Best Answer
Sandra Rossi Nov 12, 2016 at 02:28 PM
0

You can only find workarounds. As you say, the limit is 128 characters (cf note 857823 - ALV Grid: Strings with maximum of 128 characters).

So, it can be display the content on 2 or more lines, or display the content on 2 or more columns, or add an hyperlink/hotspot/button to request explicitly the display of the long text, etc. i.e. do as you want.

Show 5 Share
10 |10000 characters needed characters left characters exceeded

Thanks for reply.

Can u tell me how can I display the content on 2 or more lines?

0

add a new line in the internal table.

1

I didn't understand what u r suggesting to me. plz explain me.

And one more thing the whole string of data is coming to ztable but while displaying in alv grid it only shows 128 characters I want to show remaining characters on next line.

Can u elaborate this?

0

You can't display more than 128 characters in a cell, and a new line character is interpreted as space. Consequently, the displayed lines always have the same height.

Did you read the SAP note (link above), which explains "it's 128 characters maximum, it's how it works, and it can't be changed"?

So, when I say add a new line to the internal table, it's a trick to display more text, the other fields should be identical between the 2 lines, so that if the user sorts the lines, the 2 lines are always one below the other...

0

Dear Sandra problem gets solved.

thanks for helping.

0