Application Development 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: 

transparent table with string data type

lakshminarasimhan_n4
Active Contributor
0 Kudos
997

Dear All,

i have a transparent table and a column as STRING, I am inserting more than 4000 charaters into this column. But when i display the columns it is showing only 1024 caracters. Why so? How can i store 4000 characters in one column and display it back from the transparent table.

8 REPLIES 8

FredericGirod
Active Contributor
776

Maybe because you could just display 1024 in your report. How did you display the caracters ?

Sandra_Rossi
Active Contributor
0 Kudos
776

ABAP Lists are limited to 1023 characters. See ABAP documentation for more information.

lakshminarasimhan_n4
Active Contributor
0 Kudos
776

Hi,

I display them using se11. does it means the columns store more than 1023, but display only 1023 in the SE11? is there a way to overcome this?

776

Please comment on an answer, instead of making an answer. As the helpful box on the left of Answer edit box says:

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that your answer complies with our Rules of Engagement.

0 Kudos
776

Strings are elementary data objects of variable length. Strings can be either text strings or byte strings.

See ABAP documentation for more information.

0 Kudos
776

Ok thats fine, but my question is does string more than 1023 characters in a single column of transparent table? also how to display it in SE11.

0 Kudos
776

Hello,

as mentioned from others, a string can contain more than 1023 characters, but you will never get it being displayed in the standard data viewer (SE11 resp. SE16). If you need to display it, you have to use own ABAP code.

  data: outLen type i value 80,
recLen type i,
offset type i.
reclen = strlen( aString ).
while ( offset < recLen ).
if ( offset + outLen > recLen ).
outLen = recLen - offset.
endif.
write:/ aString+offset(outLen).
offset = offset + outlen.
endwhile.

Kind regards

Jan

FredericGirod
Active Contributor
0 Kudos
776

SE16 transaction is just a quick help to display data.

If you need to extract data, you will need to create a program to extract it.