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: 

read_text

Former Member
0 Kudos

Hi,

I have a requirement where the text field of a one way invoice is currently accomodating only 50 characters.I have used field ZEILE from structure EENO_DYNP to accomodate the text upto 300 characters.I have used READ_TEXT fm to read the long text of upto 132 characters.Now the text is getting populated in i_line table in tdline field,where i_line is declared like

DATA: i_line LIKE TABLE OF tline WITH HEADER LINE.

Now how can I populate the data in i_line table to my final internal table from which the data will be displayed in the o/p.

2 REPLIES 2

Former Member
0 Kudos

Hi Hema,

loop at i_line.

wa_itab-text = i_line-tdline.

append wa_itab to itab.

clear wa_itab.

endloop.

Thank you.

IF u want to have the entire text in one line then, the text field of the internal table as to be of type string.Then in that case do the following :

loop at i_line.

lv_text = i_line-tdline.

concatenate lv_text wa_itab-text into wa_itab-text.

clear lv_text.

endloop.

append wa_itab-text to itab.

Thank you.

Former Member
0 Kudos

Hi Hema,

Sorry.. for the second option tht i gave it shld be like this:

loop at i_line.

lv_text = i_line-tdline.

concatenate wa_itab-text lv_text into wa_itab-text.

clear lv_text.

endloop.

Append wa_itab-text to itab.