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

Dump in Update statement of Native SQL

Former Member
0 Likes
781

Hi All,

I am getting a short dump while executing the below xode snippet in Native SQL.

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

Please update on this if anybody knows.

Thanks

Nitesh

Hi All,

I am getting a short dump while executing the below xode snippet in Native SQL.

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

Please update on this if anybody knows.

Thanks

Nitesh

5 REPLIES 5
Read only

kesavadas_thekkillath
Active Contributor
0 Likes
706

Dump report ?

Read only

JL23
Active Contributor
0 Likes
706

and what did the short dump tell you why the program terminated?

Read only

Former Member
0 Likes
706

Hi Jurgen,

I dont have any key field in table misuser.table_4.

Dump: Short text
   An SQL error occurred when executing Native SQL.

Thanks

Nitesh

Read only

JL23
Active Contributor
0 Likes
706

go into ST22 transaction already in the overview you should see the name of the runtime error.

here you can go into the detail to read the dump. read section 1 to 5 of the short dump. it usually gives you all info that you need to know the root cause.

Read only

Former Member
0 Likes
706

Thanks a lot.