‎2006 Jun 13 8:55 PM
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.
‎2006 Jun 13 8:58 PM
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
‎2006 Jun 13 8:58 PM
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
‎2006 Jun 13 9:00 PM
'line' is a field of the internal table t_file which is of type 'C' (character) and length 1200.
‎2006 Jun 13 9:01 PM
‎2006 Jun 13 9:02 PM
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
‎2006 Jun 13 9:03 PM
It can hold 1200 character or that big string .. but
<u>FYI</u>
<b>out put is always 255 characters.</b>
Hope thisll give you idea!!
<b>P.S award the points.</b>
Good luck
Thanks
Saquib Khan
"Some are wise and some are otherwise"
‎2006 Jun 13 9:03 PM
hi jie,
it is one of the field of your internal table which of length 1200 char...
Cheers,
Abdul Hakim
‎2006 Jun 13 9:06 PM
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
‎2006 Jun 13 9:09 PM
if you provide the value more than 1200 characters the addtional value gets truncated.....
Please Mark the Helpful Answers
‎2006 Jun 13 9:12 PM
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.
‎2006 Jun 13 9:14 PM
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.
‎2006 Jun 13 9:16 PM