Hello,

I was wondering if, when using a try-catch command, you can get the duplicated entries from the exception class cx sy open sql db

asked 17 Sep '12, 09:36

Fawcs's gravatar image

Fawcs
26115
accept rate: 0%


I think you can do it with something like this

try.
  insert sometable from table my_itab.
catch cx_sy_open_sql_db into oref.
  if oref->textid = oref->duplicate_key.
    "do something
  endif.
endtry.
permanent link

answered 17 Sep '12, 16:52

pvl's gravatar image

pvl
1373510
accept rate: 33%

This checks if the dump occured due to duplicated keys, it is useful but not what I'm looking for. I was wondering if there was something like a method to return a internal table with the duplicated keys from that object.

(18 Sep '12, 07:32) Fawcs
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×28
×1
×1

question asked: 17 Sep '12, 09:36

question was seen: 12,755 times

last updated: 18 Sep '12, 07:32