01-18-2008 3:54 PM
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.
01-18-2008 3:57 PM
hi,
try like this:
INSERT zedi_facturadigi FROM TABLE wa_digi1.
hope this helps
ec
01-18-2008 3:57 PM
hi,
try like this:
INSERT zedi_facturadigi FROM TABLE wa_digi1.
hope this helps
ec
01-18-2008 4:03 PM
Hello Ashly,
Only use
MODIFY zedi_facturadigi FROM wa_digi1.
This will make it what you want.
Cheers,
Vasanth
01-18-2008 4:06 PM
HI,
Try using Insert statement,
INSERT zedi_facturadigi FROM wa_tt..
Thanks,
Sriram POnna.
01-18-2008 4:17 PM
Hi!!
with : INSERT zedi_facturadigi FROM TABLE wa_digi1.
I have a dump, because fields key are the same and the other fields are those that they change but as they are too great, they occupy but of a registry.
with : MODIFY zedi_facturadigi FROM wa_digi1.
Only insert tha last registry.
thanks.
01-18-2008 4:19 PM
Hello,
Sorry Typo error.
Make this change:
MODIFY zedi_facturadigi FROM TABLE wa_digi1.
Regards,
Vasanth