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: 

MODIFY Database table using Field Symbol Transporting fields

balajishahrsap
Participant
0 Kudos

Hi Experts,

Please let me know if we will be able to modify a database table using <Field-Symbols> by transporting 1 or 2 fields.

When we use MODIFY (lv_table) FROM TABLE <f_tab>, it wipes out all the fields except the manipulated fields and key fields

4 REPLIES 4

0 Kudos

Hi Bala,

first check <Field-Symbols> values in debugger before modify. if values are not assigned in firld symbols get it assigned and manipulate with new values. Generally, Before manipulating the fields first get the old values and try to manipulate the field values which you want new values it, will get updated.

balajishahrsap
Participant
0 Kudos

Hi Naresh,

Is it not possible like how we do with a Normal internal table with Modify statement

MODIFY DB FROM TABLE IT_TAB TRANSPORTING FIELD1

Sandra_Rossi
Active Contributor
0 Kudos

You may use MODIFY to update a subset of columns only by creating an updatable database view with only this subset of columns and use MODIFY (viewname)... Of course the field symbol must refer to a table type with the same components as the view.

Note that this answer is valid also for "normal" internal tables, not for field symbols only.