Skip to Content
-2
Aug 16, 2020 at 08:51 AM

join 2 internal tables based on condition

62 Views Last edit Aug 16, 2020 at 08:55 AM 6 rev

Hi
I have 2 internal tables,
ill give example:

itab1:
wa_1

vbeln
posnr
material (no value)
field4
field5
field6......


itab2
wa_2

vbeln
posnr
material (has value)

i want to join both in a way that ill get itab2-material value into itab1-material,
where itab1-vbeln = itab2 -vbeln
and itab1-posnr = itab2-posnr.

(their structure is different)

I guess its quite a simple question but would be great if someone can help with the way to achive this,
Thank you very much.