‎2006 Dec 29 11:46 AM
How do you combine two internal tables(not by append statement)...if any one knws please let me know..thanks in advance..
‎2006 Dec 29 11:48 AM
without append statement, its not possible to combine two internal tables
‎2006 Dec 29 11:48 AM
without append statement, its not possible to combine two internal tables
‎2006 Dec 29 11:59 AM
‎2006 Dec 29 11:54 AM
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.