Application Development and Automation 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: 
Read only

Insert data to table Z

Former Member
0 Likes
1,055

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
Read only

JozsefSzikszai
Active Contributor
0 Likes
1,004

hi,

try like this:

INSERT zedi_facturadigi FROM TABLE wa_digi1.

hope this helps

ec

5 REPLIES 5
Read only

JozsefSzikszai
Active Contributor
0 Likes
1,005

hi,

try like this:

INSERT zedi_facturadigi FROM TABLE wa_digi1.

hope this helps

ec

Read only

Former Member
0 Likes
1,004

Hello Ashly,

Only use

MODIFY zedi_facturadigi FROM wa_digi1.

This will make it what you want.

Cheers,

Vasanth

Read only

Former Member
0 Likes
1,004

HI,

Try using Insert statement,

INSERT zedi_facturadigi FROM wa_tt..

Thanks,

Sriram POnna.

Read only

0 Likes
1,004

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.

Read only

0 Likes
1,004

Hello,

Sorry Typo error.

Make this change:

MODIFY zedi_facturadigi FROM TABLE wa_digi1.

Regards,

Vasanth