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

Storing Long String

Former Member
0 Likes
509

Hi Experts,

plz I need your help, I have a requirement to read a text file that contains html code for a table that

contains many fields, my job is to fill the table with certain data that I get from SAP.

currently, I am reading the file into itab that has a line of type c (255) and I dont know how to store

the whole itab into a string so that I can easily modify the content of the string.

I tried a loop like this but It took long time and at the end I got memory exception.

loop at itab1.

CONCATENATE htmlstr itab1-line into htmlstr.

ENDLOOP.

how to do this and what is the easiest solution for such requirement.

Thanks

3 REPLIES 3
Read only

Sandra_Rossi
Active Contributor
0 Likes
474

did you search ? there are lots of threads about how to convert internal table to string in the forum!

I am surprised that you get memory error at these statements!!!! What is the size of this VERY HUGE file?

Read only

0 Likes
474

yes I did search and found how to convert string into itab but not the other way around.

and the text file I am reading is not large just 11 KB !!

Read only

0 Likes
474

for some reason the same code is working now

I dont know what was the problem before.

Thanks Sandra