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 not working in NATIVE SQL

Former Member
0 Likes
470

Hi All,

I am using the following code to update two fields in isuser.table_ table. But it is not updating the same.

EXEC SQL.
    UPDATE misuser.table_4
    SET otype = :gc_otype1,
        objid = :gc_objid
    WHERE otype = :gc_otype
  ENDEXEC.
  IF sy-dbcnt = 0.
    WRITE: 'No rows updated'.
  ELSE.
    WRITE: sy-dbcnt, 'rows updated'.
  ENDIF.

When i use the same code to update only one field, its working. Can anybody help me on this?

Thanks

Nitesh

1 REPLY 1
Read only

former_member848108
Active Participant
0 Likes
383

Hi Nitesh,

Try to run the update query using the query interface(e.g. T-Sql Query Analyzer, Oracle Developer, etc.), and check

if it's working as expected. This might help yo solving the issue.

Regards.

Ozcan.