MUNDOSAP

MUNDOSAP (foro/index.php)
-   Programación ABAP IV (foro/forumdisplay.php?f=4)
-   -   Urgente (foro/showthread.php?t=3665)

danieldl 01/02/07 19:20:54

Urgente
 
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.


Husos Horarios son GMT. La hora en este momento es 14:58:01.

www.mundosap.com 2006 - Spain
software crm, crm on demand, software call center, crm act, crm solutions, crm gratis, crm web