writing to a string variable.
Ihave written a program to read contents from internal table and writ it to a string variable.
what happens is after 132 characters the contents get truncated.
thre are 130 email address from internal table to be concatenated and kept in a string.
can you please help what should i do in this case?
Swarna Munukoti replied
data: addr type string. loop at internal_table into workarea_table. concatenate ADDR wokrarea_table into ADDR separated by ';'. endloop.
If teh internal tab contains different fields and if field3 is teh one which holds the emial address then concatenated only that particular field to ADDR,
data: addr type string. loop at internal_table into workarea_table. concatenate ADDR wokrarea_table-field3 into ADDR separated by ';'. endloop.
Now ADDR contains all the data separated by ;.
Hope this will help you.
Edited by: Swarna Munukoti on Oct 3, 2008 6:45 AM