MUNDOSAP

MUNDOSAP (foro/index.php)
-   Programación ABAP IV (foro/forumdisplay.php?f=4)
-   -   Datos en Tabla Interna (foro/showthread.php?t=35556)

johava 09/03/10 20:15:23

Datos en Tabla Interna
 
Hola a todos, tengo el siguiente problema

en un reporte ALV he creado una tabla interna t_faccom, la cual la cargo a traves de un select de una tabla de SAP

select NROLIQ
into TABLE t_faccom
from ZPSCD_LIQCAB
where fechaliq in Fecha and
RENTA = '01' and
REG_CODDANE = CODDANE and
USUARIO_CREA in Usuario.

Despues recorro la tabla t_faccom para generar una nueva asi:


loop at t_faccom.
select MANDT RENTA NROLIQ NROCONS IDATRIBUTO VALOR
into TABLE t_detimp
from ZPSCD_VLRSATRIB
where RENTA = '01' AND
NROLIQ = t_faccom-NROLIQ.
endloop.

El problema radica que en la tabla t_detimp siempre me deja el ultuimo regsitro leido de la tabla ZPSCD_VLRSATRIB y lo que necesito es que en ella queden todos los registros que cumplan la condició ¿ QUE PUEDE ESTAR SUCEDIENDO? ¿ALGUNA PROPUESTA PARA SOLUCIONARLO?

Gracias por la ayuda

joau_fedipe 09/03/10 20:51:18

Cambiar ....
select MANDT RENTA NROLIQ NROCONS IDATRIBUTO VALOR
into TABLE t_detimp
from ZPSCD_VLRSATRIB

por :

select MANDT RENTA NROLIQ NROCONS IDATRIBUTO VALOR
APPENDING TABLE t_detimp
from ZPSCD_VLRSATRIB

Espero ayude lo escrito.
Joau_fedipe

johava 09/03/10 21:06:22

adicionar datos a tabla interna
 
JOAU

Gracias por la respuesta, funciono bien


Husos Horarios son GMT. La hora en este momento es 07:00:25.

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