If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.
Union de consultas en tinterna->SELECT...... UNION SELECT........ INTO TABLE......
Si los dos resultado de las select tienen la misma clave que tu tabla interna, podrias almacenar el resultado de estas en un tabla interna_auxiliar y luego hacer un collect de tu itab_aux to i_tab. Aqui te pongo un ejemplo que hice yo.
SELECT * FROM yvp_ta_0104b
WHERE zfuente = yvp_ta_0104-zfuente
AND ztipo = 'G'.
Comentario