Ver Mensaje Individual
  #2  
Viejo 15/10/12, 08:26:07
Melandry Melandry is offline
Senior Member
 
Fecha de Ingreso: ene 2011
Mensajes: 110
Hola, para rellenar tu tabla tendrías que ir haciendo el mapeo con el nombre del campo, asignando cada componente de tu <fs_dyntable> a un field-symbols auxiliar:

FIELD-SYMBOLS: <fs_aux> TYPE ANY.

"Rellenar el campo1
ASSIGN COMPONENT 'nomb_campo1' OF STRUCTURE <fs_dyntable> TO <fs_aux>.
IF SY-SUBRC = 0.
<fs_aux> = valor de tu campo1.
ENDIF.

"Rellenar el campo2
ASSIGN COMPONENT 'nomb_campo2' OF STRUCTURE <fs_dyntable> TO <fs_aux>.
IF SY-SUBRC = 0.
<fs_aux> = valor de tu campo2.
ENDIF.

"Rellenar el campon, etc etc

"Final añadir la wa a tu tabla:
append <fs_dyntable> to <t_dyntable>.


Espero te sirva.
Responder Con Cita