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

internal table manupulation

Former Member
0 Likes
284

Hi Experts,

I have an internal table t_adr6 like this

types: begin of ty_adr6,          

               addno type adrnr,    

               SMTP_ADDR type SMTP_ADDR,       

       end of ty_adr6.

data: t_adr6 type standard table of ty_adr6,  

           wa_adr6 type ty_adr6,      

           itab type standard table of ty_adr6,  

          wa_itab type ty_adr6,

... ...

internal table t_adr6 have values like this

addno    E-mail

10         hr@venture.com

10        sales@venture.com

11        info@umc.com

11        inquiry@umc.com

11        sales@umc.com

Based on addno number i want to concatenate email addresses. How to get the internal table values like the following.. ....

To get the internal table itab values should be like this

adrnr      E-mail

10        hr@venture.com,sales@venture.com

1 1       info@umc.com,inquiry@umc.com, sales@umc.com

How to achieve this internal table itab.

Thanks in advance

Moderator message: duplicate post, basic problem, please do more research before posting.

Message was edited by: Thomas Zloch

1 REPLY 1
Read only

former_member209818
Active Contributor
0 Likes
254

🙂

Its a ABAP logic that you need to think thru 🙂

For this, you will have to create a new Internal table to hold the final values.

Loop t_adr6.

concatenate E-mail ',' temp_email into temp_email.

at end of ADRNR,

append temp_email to Final_table

Endloop.