2011 Sep 06 9:09 PM
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
2011 Sep 06 9:21 PM
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
2011 Sep 06 9:21 PM
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.
2011 Sep 06 9:28 PM
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
2011 Sep 06 9:36 PM
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
2011 Sep 06 9:50 PM
Hi,
You can split the text and display in multiple lines
please have a look into this WIki
Shiva
2011 Sep 06 9:57 PM
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |