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

Set field

Former Member
0 Likes
605

Hi all,

I am creating an RFC.which has to fetch the content from Database table.depending upon flag.

lets say If flag is initial.

Fetch the content.

After fetching the content i have to set that flag to "0" r "1".

Any suggetsions.

Thanks,

Kalyan.

4 REPLIES 4
Read only

Former Member
0 Likes
585

Hi all,

I have to update a single column in dBtable after fetching the data.

i have used

the statement as

update <dbtable>set fieldname eq 1 where (condition).

but giving error.

any suggetsons.

thanx.

Read only

ritesh_dugad2
Active Participant
0 Likes
585

Update will work only if the fields that you pass in the where condition match with atleast one record in the database table. Check for sy-subrc value after update. It should be 0 meaning the update was successful.

Read only

0 Likes
585

Hi,

I am getting an

error

that instead Flag use itab or filed..

therefore the single record in question maynot be unique.

Thanx,

Read only

0 Likes
585

Hi,

Try to use the below code...

update <dbtable>set <fieldname> eq 1 where (condition).

Field name should be your field which you want to pass 1 to the database table. Use exactly field in the DB table.

Rgds,

Bujji