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 into Z table from an internal Table

sergio_cifuentes
Participant
0 Kudos

What's the best way to store data into a z table from an internal table.

1 ACCEPTED SOLUTION

Former Member

Hi ,

The best way is to use the MODIFY command , because it can work in two ways , if data is not there a new record is inserted else the existing record is modified.

Regards

Arun

4 REPLIES 4

Former Member
0 Kudos

Hi,

Use From table addition..

INSERT ZTABLE FROM TABLE ITAB.

The internal ITAB should be of structure ZTABLE..

Thanks,

Naren

former_member181962
Active Contributor
0 Kudos

use modify command.

modify ztab from table itab. "itab should be of the same structure as ztable.

Regards,

ravi

Former Member
0 Kudos

Hello,

U have to use MODIF ZTAB FROM ITAB.

Since this will overcome the error duplicates entries also.

Vasanth

Former Member

Hi ,

The best way is to use the MODIFY command , because it can work in two ways , if data is not there a new record is inserted else the existing record is modified.

Regards

Arun