Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Insert data to table Z

Former Member
0 Kudos

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.

1 ACCEPTED SOLUTION

JozsefSzikszai
Active Contributor
0 Kudos

hi,

try like this:

INSERT zedi_facturadigi FROM TABLE wa_digi1.

hope this helps

ec

5 REPLIES 5

JozsefSzikszai
Active Contributor
0 Kudos

hi,

try like this:

INSERT zedi_facturadigi FROM TABLE wa_digi1.

hope this helps

ec

Former Member
0 Kudos

Hello Ashly,

Only use

MODIFY zedi_facturadigi FROM wa_digi1.

This will make it what you want.

Cheers,

Vasanth

Former Member
0 Kudos

HI,

Try using Insert statement,

INSERT zedi_facturadigi FROM wa_tt..

Thanks,

Sriram POnna.

0 Kudos

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.

0 Kudos

Hello,

Sorry Typo error.

Make this change:

MODIFY zedi_facturadigi FROM TABLE wa_digi1.

Regards,

Vasanth