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

Concatenate structure with 63 fields

Former Member
0 Likes
3,895

Hi all,

I have a structure with 63 fields. We have to send all this data in text file as an email attachment. What is the best way to concatenate all this field separated by tab?

Thanks.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,474

HI,

It is better to concatenate all the fields to STRING, and use it.

Reward Points.

HI,

It is better to concatenate all the fields to STRING, and use it.

Reward Points.

2 REPLIES 2
Read only

Former Member
0 Likes
1,475

HI,

It is better to concatenate all the fields to STRING, and use it.

Reward Points.

Read only

Former Member
0 Likes
1,474

Hello,

Try using Filed Symbols . Let your structure be WA_TEST type ZTEST.



Data string type X

Field Symbol <fs> type any

Do.

 ASSIGN COMPONENT sy-index OF STRUCTURE WA_TEST TO <fs>. 

 If Sy-subrc NE 0.

Exit.

Conactenate STRING  <fs> into STRING  separated by co_tab.

Endif. 
 
regards

Saket Sharma



EndDo.