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: 

writing to a string variable.

Former Member
0 Kudos

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

matt
Active Contributor
0 Kudos

Please post your code - surround by tags.

matt

7 REPLIES 7

matt
Active Contributor
0 Kudos

Please post your code - surround by tags.

matt

Former Member
0 Kudos

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.

0 Kudos

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

Former Member
0 Kudos

Hi

Declare a text element

data: v_mail text500.

Former Member
0 Kudos

Hi ,

Declare a variable

data : var type string .

then you can concatenate .

Former Member
0 Kudos

hi,

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

regards

jansi

emanuel_sanchez
Participant
0 Kudos

Hello NMU,

Could you please share how you resolved this issue?

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

Thanks in advance!!!