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

Former Member
0 Likes
1,050

Hi experts,

we have an internal table declared as following:

<b>data: begin of t_file occurs 0,

line(1200) type c,

end of t_file.</b>

what does the line(1200) represent here?

thnx in advance.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,026

Hi,

line is a char type variable of internal table t_file which can accomodate 1200 characters i.e, of length 1200.

i.e, t_file-line = '123....1200'.

Reward if it helps...

Regards,

Santosh

11 REPLIES 11
Read only

Former Member
0 Likes
1,027

Hi,

line is a char type variable of internal table t_file which can accomodate 1200 characters i.e, of length 1200.

i.e, t_file-line = '123....1200'.

Reward if it helps...

Regards,

Santosh

Read only

Former Member
0 Likes
1,026

'line' is a field of the internal table t_file which is of type 'C' (character) and length 1200.

Read only

Manohar2u
Active Contributor
0 Likes
1,026

It's the length of the variable.

Cheers

Manohar

Read only

Former Member
0 Likes
1,026

HI,

Line is the Field for the internal table of <b>t_file</b> which is having 1200 charecters length ...

you will use this as <b>t_file-line</b>

Thanks

Sudheer

Read only

former_member181966
Active Contributor
0 Likes
1,026

It can hold 1200 character or that big string .. but

<u>FYI</u>

<b>out put is always 255 characters.</b>

Hope this’ll give you idea!!

<b>P.S award the points.</b>

Good luck

Thanks

Saquib Khan

"Some are wise and some are otherwise"

Read only

abdul_hakim
Active Contributor
0 Likes
1,026

hi jie,

it is one of the field of your internal table which of length 1200 char...

Cheers,

Abdul Hakim

Read only

Former Member
0 Likes
1,026

Hi all

Thank you very much for the replies.

But how can we know that the length is 1200 characters.

What happens if it is more than 1200 characters.

Plz let me know.

thnx

Read only

0 Likes
1,026

if you provide the value more than 1200 characters the addtional value gets truncated.....

Please Mark the Helpful Answers

Read only

Former Member
0 Likes
1,026

hi,

if u pass a string with more than 1200 characters , the value will not be populated in to the table field. u will get an error.

hope this helps.

regards,

keerthi.

Read only

Former Member
0 Likes
1,026

If you want to know the occupied length of the field you can use STRLEN as follows.

DATA: v_len type i.

v_len = STRLEN( t_file-line ).

But as others pointed out, any string greater than 1200 will be truncated.

Read only

0 Likes
1,026

Thanks a lot all.