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

table insert

Former Member
0 Likes
567

hi experts

how can i insert table into database table not line by line.

thanks

Amit

4 REPLIES 4
Read only

Former Member
0 Likes
537

Hi

You can try

MODIFY ZTABLE FROM ITAB.

if the record already exists, it will modify, else it will insert

Regards

MD

Read only

Former Member
0 Likes
537

Hi,

Please explain more.

Regards

Jana

Read only

Former Member
0 Likes
537

1)

loop at itab into wa.

INSERT INTO dbtab VALUES wa.

endloop.

2)

loop at itab into wa.

INSERT dbtab FROM wa.

endloop.

3)

INSERT dbtab FROM TABLE itab.

Regards,

Aparna

Read only

Former Member
0 Likes
537

Hi,

Try like this...

insert ztable from table <internal table>.

It will insert the values to database table. if the internal table value already existing in database table means dump will come.

OR

Use modify statment

modify ztable from table <internal table>.

if internal table value already existing in database table means it will modify the values, else it will insert the values

Hope it will helps