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

writing to a string variable.

Former Member
0 Likes
1,125

Hi,

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.

For eg:

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?

Thanks

NMU

1 ACCEPTED SOLUTION
Read only

matt
Active Contributor
0 Likes
1,068

Please post your code - surround by tags.

matt

7 REPLIES 7
Read only

matt
Active Contributor
0 Likes
1,069

Please post your code - surround by tags.

matt

Read only

Former Member
0 Likes
1,068

data: addr type string.

: addr1 type string.

loop at internal_table.

move internal_table to addr1.

concatenate addr1 addr into ADDR separated by ';'.

endloop.

Please find the above code. addr1 will have email addreses.

Read only

0 Likes
1,068

Hi,


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.

Regards,

Swarna Munukoti.

Edited by: Swarna Munukoti on Oct 3, 2008 6:45 AM

Read only

Former Member
0 Likes
1,068

Hi

Declare a text element

data: v_mail text500.

Read only

Former Member
0 Likes
1,068

Hi ,

Declare a variable

data : var type string .

then you can concatenate .

Read only

Former Member
0 Likes
1,068

hi,

Can u please tell me the declaration of variable which should be of type string.

regards

jansi

Read only

Former Member
0 Likes
1,068

Hello NMU,

Could you please share how you resolved this issue?

Your help will be appreciated, I facing the same problem.

Thanks in advance!!!