Skip to Content
0
Former Member
Jan 18, 2008 at 03:54 PM

Insert data to table Z

40 Views

Hi!!

I have a table Z, to which I need to insert data to him, which I have stored in an internal table, but when I apply to the LOOP to the inserted single internal table in table Z 1 registry. and I want all data.

I have tried this and nothing.

Example 1:

loop at wa_digi1 into wa_tt.

MODIFY zedi_facturadigi FROM wa_tt.

endloop.

Example2:

loop at wa_digi1 into wa_tt.

update zedi_facturadigi set

zlinea_cadena = wa_tt-zlinea_cadena

zcadena_original = wa_tt-zcadena_original

where bukrs = wa_tt-bukrs and

zclase_factura = wa_tt-zclase_factura and

belnr = wa_tt-belnr and

zserie = wa_tt-zserie.

commit work.

endloop.

thanks and regards.