Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

ALV grid OUTPUTLEN.

Former Member
0 Likes
2,333

Hi,

I am trying to display a text field which is of length more than 289 characters, itu2019s a concatenation of three text fields.

I am trying to display it in my ALV GRID, Where I am not getting the entire text. But In print preview i am able to get the full text, only in my ALV GRID output screen i am not able to see the full text

FIELDCATALOG-FIELDNAME = 'TEXT'.

FIELDCATALOG-SELTEXT_M = Text-017.

FIELDCATALOG-COL_POS = 13.

FIELDCATALOG-OUTPUTLEN = 300.

APPEND FIELDCATALOG TO FIELDCATALOG.

CLEAR FIELDCATALOG.

I tried declaring the text fields as Xstring, c with 1000 length.

Pls guide me

Regards,

Vjai

Edited by: Vjai.. on Sep 6, 2011 10:11 PM

1 ACCEPTED SOLUTION
Read only

sjeevan
Active Contributor
0 Likes
1,548

According to SAP Note 857823, ALV grid cannot display more than 128 characters per field and will truncate all the characters beyond.

I would suggest you to create a couple more fields with 128 character lengths and split the original field in to chunks of 128 characters.

or

you can use ALV List in which you can display a total of 1024 characters in total for all the fields.

Hi,

I am trying to display a text field which is of length more than 289 characters, itu2019s a concatenation of three text fields.

I am trying to display it in my ALV GRID, Where I am not getting the entire text. But In print preview i am able to get the full text, only in my ALV GRID output screen i am not able to see the full text

FIELDCATALOG-FIELDNAME = 'TEXT'.

FIELDCATALOG-SELTEXT_M = Text-017.

FIELDCATALOG-COL_POS = 13.

FIELDCATALOG-OUTPUTLEN = 300.

APPEND FIELDCATALOG TO FIELDCATALOG.

CLEAR FIELDCATALOG.

I tried declaring the text fields as Xstring, c with 1000 length.

Pls guide me

Regards,

Vjai

Edited by: Vjai.. on Sep 6, 2011 10:11 PM

5 REPLIES 5
Read only

sjeevan
Active Contributor
0 Likes
1,549

According to SAP Note 857823, ALV grid cannot display more than 128 characters per field and will truncate all the characters beyond.

I would suggest you to create a couple more fields with 128 character lengths and split the original field in to chunks of 128 characters.

or

you can use ALV List in which you can display a total of 1024 characters in total for all the fields.

Read only

Former Member
0 Likes
1,548

Hi,

This is Standard functionality. The SAP gives only 128 character length not more than. If you wish to get the rest of the text, then truncate the same into other text and display in other row.

for more info please look into the below note:

https://websmp130.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=857823

Shiva

Read only

0 Likes
1,548

HI,

Thanks for your reply..

My client needs teh output only in GRID, also they need the entier text.

is there any other option?

Regards,

Vj

Read only

0 Likes
1,548

Hi,

You can split the text and display in multiple lines

please have a look into this WIki

http://wiki.sdn.sap.com/wiki/display/ABAP/Displaying%2ba%2bparticular%2bcolumns%2bin%2bmultiple%2bli...

Shiva

Read only

0 Likes
1,548

Hi Shiva,

Thank you..

Regards,

Vjai