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

Combining Two Internal Tables??

Former Member
0 Likes
513

How do you combine two internal tables(not by append statement)...if any one knws please let me know..thanks in advance..

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
489

without append statement, its not possible to combine two internal tables

3 REPLIES 3
Read only

Former Member
0 Likes
490

without append statement, its not possible to combine two internal tables

Read only

0 Likes
489

Really thanks for the effort taken for me...

Read only

Former Member
0 Likes
489

Sort itab_vbap by vbeln posnr.

sort itab_vbkd by vbeln posnr.

Loop at itab_vbap into wa_vbap.

read table itab_vbkd into wa_vbkd with key vbeln = wa_vbap-vbeln posnr = wa_vbap-posnr binary search.

if sy-subrc = 0.

move corresponding wa_vbap to wa_final.

move corresponding wa_vbkd to wa_final.

append wa_final to itab_final.

endif.

endloop.

For move corresponding statement the name of the fields should match in both the work areas.

I hope it helps.