Ver Mensaje Individual
  #1  
Viejo 13/04/10, 14:39:21
toto2905 toto2905 is offline
Junior Member
 
Fecha de Ingreso: oct 2006
Localización: Lima Peru
Mensajes: 11
Nombre Dinamico De Tabla Interna

Buenos dias Sres del Foro.
Tengo una duda como hacer lo siguiente:
Espero me puedan ayudar.

Tengo un contandor "cont".

Y estas tablas internas declaradas:
data: gt_stpo_1 type table of stpo.
data: gt_stpo_2 type table of stpo.
data: gt_stpo_3 type table of stpo.
data: gt_stpo_4 type table of stpo.
data: gt_stpo_5 type table of stpo.
data: gt_stpo_6 type table of stpo.
data: gt_stpo_7 type table of stpo.
data: gt_stpo_8 type table of stpo.
data: gt_stpo_9 type table of stpo.
data: gt_stpo_10 type table of stpo.
data: gt_stpo_11 type table of stpo.
data: gt_stpo_12 type table of stpo.
data: gt_stpo_13 type table of stpo.

Lo que deseo es que dependiendo del contador, por ejemplo cuando
Si cont=1
que se haga un select de la tabla STPO a la tabla interna gt_stpo_1.

SI cont=2
que se haga un select de la tabla STPO a la tabla interna gt_stpo_2.
.....
Responder Con Cita