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

Update table with select-options

0 Likes
799

I am trying to update a table with abap code and I am trying to figure out the best way of going about it. Currently I am trying a selection screen with the primary key and then the rest of the columns as select-options, and the user can enter which primary key they want to update and enter in the changes to the select-options.

If this is the best way to go about this, is there a way I can put all my select-options into a work area to allow me to call an UPDATE <table> from <wa>?

I realize there are other T-CODES that may be better for updating a table but I want to centralize all my operations for this table into one program.

1 REPLY 1
Read only

Sandra_Rossi
Active Contributor
0 Likes
742

If it's a Z table, you can do whatever you want...

What could be easy:

SELECT * FROM <Z-table> WHERE <conditions with select-options> INTO TABLE @DATA(itab).
" modify itab as you wish
UPDATE <Z-table> FROM TABLE itab.