cancel
Showing results for 
Search instead for 
Did you mean: 

displaying ALV list with field width of 1000 chars in multi-line same field

Former Member
0 Kudos

Helo,

In ALV list output, among 20 fields i have one field defined in DD as 1000 characters (concatenated string).

Since line-size is limited to 1023 characters, and thereafter ALV is to wide for display (am i right?), i would like to break 1000 chars in let's say 4x250 chars to be shown one under another to cover whole possible contents of 1000 char field.

Since other columns take arround 600-700 chracters, my long field is cut on aprox. 250 chars folowed by '...',

and the rest of the string is not shown.

Customer wants to export the list to Excel so that this field will remain in one field in Excel table.

How can this be done, any suggestions, alternatives???

Thank you in advance... Cheers...

Accepted Solutions (1)

Accepted Solutions (1)

former_member181962
Active Contributor
0 Kudos

Hi Tom,

If the user wants it in a Excel, then i think, even though the data cannot be displayed in the alv, it will be downloaded to the excel correctly.

If you want to go by the spiltting logic,

then you need to take care when you are building the data of the internal table.

loop at itab1.

itab2-field1 = itab1-field+0(250).

append itab2.

itab2-field1 = itab1-field+250(250).

append itab2.

itab2-field1 = itab1-field+500(250).

append itab2.

itab2-field1 = itab1-field+750(250).

append itab2.

endloop.

Answers (1)

Answers (1)

Former Member
0 Kudos

i've just tried it exporting to excel, string is cut at exactly 255 chars...

i'll try to implement your suggestion, thanx...