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

delete fields table

Former Member
0 Likes
322

I want delete all fields of the table Z_ABC, but after I want write all data of the internal table i_tab2

DELETE FROM Z_ABC WHERE SYSTEM NE 'delete_all'. "I want delete all fields of table

    MOVE-CORRESPONDING i_tab2 TO Z_ABC.
    update Z_ABC.

I obtain the table Z_ABC empty, and I want obtain the data of my internal table

Is necesary use the UPDATE TASK?

Can you help me, please?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
301

>

> I want delete all fields of the table Z_ABC, but after I want write all data of the internal table i_tab2

>

>

DELETE FROM Z_ABC WHERE SYSTEM NE 'delete_all'. "I want delete all fields of table
> 
>     MOVE-CORRESPONDING i_tab2 TO Z_ABC.
>     update Z_ABC.

>

> I obtain the table Z_ABC empty, and I want obtain the data of my internal table

>

> Is necesary use the UPDATE TASK?

>

> Can you help me, please?

use as

MODIFY Z_ABC FROM TABLE itab2.

commit work.

1 REPLY 1
Read only

Former Member
0 Likes
302

>

> I want delete all fields of the table Z_ABC, but after I want write all data of the internal table i_tab2

>

>

DELETE FROM Z_ABC WHERE SYSTEM NE 'delete_all'. "I want delete all fields of table
> 
>     MOVE-CORRESPONDING i_tab2 TO Z_ABC.
>     update Z_ABC.

>

> I obtain the table Z_ABC empty, and I want obtain the data of my internal table

>

> Is necesary use the UPDATE TASK?

>

> Can you help me, please?

use as

MODIFY Z_ABC FROM TABLE itab2.

commit work.