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

Long text

Former Member
0 Likes
561

Dear ABAP gurus,

I am using READ_TEXT function module in that tline TLINE(declared as internal tbale t_tline) table is contain 11 reocrd( the long test is maintain 1000 chareceters lenth).

That thousand charecter i hav to show in ALV output.

i declared variable of 1000 charecter length.

data g_long(1000) type c.

( i tried by putting g_long type string also).

LOOP AT T_TLINE.

CONCATENATE G_LONG T_TLINE-TDLINE INTO G_LONG SEPARATED BY SPACE.

ENDLOOP.

In debugg mode in the g_long variale its coming 131 lines only after concatenating also.

In output of ALV if i down load this to XL sheet in excel 255 charecters are coming.

But i need whole charecters in the Long Text.

Pl solve this isuue as early as possible.

Thanks,

Simha.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
528

Only 255 char is the limit, it cant dispaly more than that.

Better u split it and display in different lines.

4 REPLIES 4
Read only

Former Member
0 Likes
529

Only 255 char is the limit, it cant dispaly more than that.

Better u split it and display in different lines.

Read only

Former Member
0 Likes
528

Hi,

You can't display 1000 char in a single Line anywhere as output.

Max length allowed is 255 char only.

My suggestion is better to split the 1000 char string into 5 lines and display.

Declare 5 variables of length 200 char each and split the long text into them and try.

Regards,

Anji

Read only

Former Member
0 Likes
528

Hi,

When you display that you need to use the offset for more than 255 lenght fields. just write FIELD1(1000), then it will print the 1000 charecters .. so based on this work in ALV, you will be success

Regards

Sudheer

Read only

0 Likes
528

Dear Sudheer,

Can u pl explain briefly.

I didnt get field(1000).

Thanks.

Simha.