Hi akshath,
Please go through the forum for more details about join . There are lots of notes available.
Here is the solution for the join.
create a final internal table with all the fields from both the internal table.
SELECT m~vbeln
m~vbtyp
m~xsitd
m~trackn
m~tracktstmp
n~ vbeln
n~vbtyp
n~ xsitd
n~posnr
n~trkstatd
into it_final from vtrkh as m inner join vtrkp as n on m~vbeln = n~vbeln and m~vbtyp = n~vbtyp and m~XSITD = n~XSITD for all entries in it_parcel where vbeln = it_parcel-vbeln.
Hope that this will be helpful for you.
It is recommended to use joins if possible as a performance tuning method.
You can join more than 2 tables also.
Thanks and regards,