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
858

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
807

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
808

hi,

try like this:

INSERT zedi_facturadigi FROM TABLE wa_digi1.

hope this helps

ec

Read only

Former Member
0 Likes
807

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
807

HI,

Try using Insert statement,

INSERT zedi_facturadigi FROM wa_tt..

Thanks,

Sriram POnna.

Read only

0 Likes
807

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
807

Hello,

Sorry Typo error.

Make this change:

MODIFY zedi_facturadigi FROM TABLE wa_digi1.

Regards,

Vasanth