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

Internal table length

Former Member
0 Likes
761

Hi Experts ,

Please look at the decleration below

types: BEGIN OF TY_FINAL ,

TEXT(300) ,

END OF TY_FINAL .

what is more intresting is that it is not able to hold value in field TEXT with

more length

for example i am trying to store below value

PX,"0000000000","000010","0000002","07/26/2007@00:00:01","07/26/2007@23:59:00","07/26/2007@00:00:01","07/26/2007@23:59:59",000.000,000.000,000000.000,0000000.4360,0000020.0000,00000000000.00,00000000000.00,0000020.0000,0000000000000.0000,0000002,0000001,0000.0000,111.0000,00000.0000,00000

BUT INTERNAL TABLE IS HOLDING value till

PX,"0000000000","000010","0000002","07/26/2007@00:00:01","07/26/2007@23:59:00","07/26/2007@00:00:01","07/26/2007@23:59:59",000.000,000.000,000000.000,0000000.4360,0000020.0000,00000000000.00,00000000000.00,0000020.0000,0000000000000.0000,0000002,0000001

even though i increase the size of the internal table nothing is happening

6 REPLIES 6
Read only

Former Member
0 Likes
735

Hi

declare the variable as string type.

types: BEGIN OF TY_FINAL ,

TEXT type string,

END OF TY_FINAL .

Regards,

Niyaz

Read only

0 Likes
735

it's giving me error

"T_FINAL" cannot be a table, a reference, a string, or contain any of

these objects

when i declared in manner in which you said

Read only

0 Likes
735

check the code again..

you have mis spelled. its ty_final not t_final.

Read only

Former Member
0 Likes
735

It is not that it is not able to hold it, it is just that you are not able to see it as debugging shows you only about 250 characters. To make sure you have all the string characters, enter itab-text+250(50) in debugging, and see if you get the last 50 characters.

Read only

0 Likes
735

yes you are right ,

Read only

Former Member
0 Likes
735

HI,

Increase your line-size to 500 and try prining the content of the table .. it will show you every thing.

thanks,

mahesh