Podrias hacer algo asi:
Types: begin of ty_vbak_vbap.
include structure vbak as k renaming with suffix _vbak.
include structure vbap as p renaming with suffix _vbap.
types: end of ty_vbak_vbap.
data: gs_vbak_vbap type ty_vbak_vbap,
gs_vbak type vbak,
gs_vbap type vbap.
select single *
into gs_vbak_vbap
from vbak as k inner join vbap as p
on k~vbeln = p~vbeln
where ...
move-corresponding gs_vbak_vbap to gs_vbak.
move-corresponding gs_vbak_vbap to gs_vbap.
Los campos comunes entre vbak y vbap tendras que mapearlos a mano pero sera mas sencillo
Espero que ayude
|