cancel
Showing results for 
Search instead for 
Did you mean: 

long text in it_table-field

Former Member
0 Kudos

i need to declare a long text(about 4 lines).how can i declare it.

or i need to use another it table .

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Yehiel,

You can declare a itab like this.

data : begin of text occurs 0,

count type i,

line(72).

end of text.

text-count = 1.

text-line = 'text1'.

append text.

clear text.

text-count = 1.

text-line = 'text2'.

append text.

clear text.

text-count = 1.

text-line = 'text3'.

append text.

clear text.

text-count = 2.

text-line = 'text1'.

append text.

clear text.

Like that youc an store in other itab. Here 'Count. field you can dec;are it as a key in the original table.

when you are processing alos you can loop at tha table and using the key you can read the ofur records and concatenate to the other itab field.

Hope this will help you.

Thanks & Regards,

Siri.

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

You need to declare a separate internal table for lon texts that you want to put.

former_member181962
Active Contributor
0 Kudos

HI Yehiel,

You need to declare another table for long texts, if you have multiple lines. If you have the whole data in a single line, then you can declare a field of the combined length of the field.

Regards,

Ravi