‎2022 May 25 3:23 PM
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.
‎2022 May 25 5:13 PM
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.