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: 

MODIFY/UPDATE DDIC Table from ITAB

pruthvi_kosala
Explorer
0 Kudos
887

Hi Experts,

My requirement is to insert or Update itab records to DDIC table.

I am using syntax

MODIFY tab FROM TABLE itab.

but it is updating only one record to the DDIC table, Even when my itab has more than 1 record.

Can anyone tell me what are we doing wrong in this.

Regards,

Pruthvi.

3 REPLIES 3

Sandra_Rossi
Active Contributor
0 Kudos
573

There's nothing special with MODIFY ztab FROM TABLE itab. Try to create a new Z database table, a new Z program with MODIFY ztab FROM TABLE itab and you'll see that it works well...

Maybe you don't understand how it works, so if you provide an example, it will be better for us so that we can explain.

pruthvi_kosala
Explorer
573

Hi Sandra,

My requirement is updating of a Z database table from a report,

But my syntax MODIFY tab FROM TABLE itab did seem to be not updating all the reords in itab.

in F1 help, when i saw this statement is Platform Dependent, i wanted to know more information on which cases this work and which cases it won't.

image

Also i realized that the Primary key constraint is the reason for my issue, trying to upload couple of rows with same composite primary key, So fixed it with changing the Primary keys.

Thank You.

Regards,

Pruthvi

Sandra_Rossi
Active Contributor
573

Thanks for the feedback. We don't see the image that you tried to attach. I don't see anything dependent on the type of database except LOB handles, that you don't use anyway.

You may close the question if your issue is solved.