Ver la Versión Completa : Urgente
danieldl
01/02/07, 19:20:54
aLGUIEN ME PUEDE DECIR COMO PUEDO UNIR DOS TABLAS INTERNAS? CON UN SELECT O CON LOOP MOVE CORRESPONDIG
LouieBoy
02/02/07, 06:49:10
En este caso lo mejor es q te crees una tabla auxiliar con los campos de ambas tablas.
Saludos,
LouieBoy
marialeqd
02/02/07, 10:22:31
puedes hacer un select
select * appending corresponding fields of table <Tabla_interna>
from <Table>
where Condiciones.....
sap2006
02/02/07, 11:05:53
Puedes utilizar este codigo....
LOOP AT itab1.
CLEAR itab2.
READ TABLE itab2 WITH KEY campo1 = itab1-campo1
campo2 = itab1-campo2.
CLEAR itab_12.
MOVE-CORRESPONDING itab1 TO itab1_2.
MOVE-CORRESPONDING itab2 TO itab1_2.
APPEND itab1_2.
ENDLOOP.
Saludos.
www.mundosap.com 2006 - Spain
software crm, crm on demand, software call center, crm act, crm solutions, crm gratis, crm web