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 delete data to server

Former Member
0 Likes
396

hello

i tried to delete data from the server

like the following:

COMMIT

EXEC SQL.

ENDEXEC.

DELETE FROM OrderedSuppliedReport@MobideoGlidot

ENDEXEC.

i have problem if i don't write correct the name of the server the program dump

how can i catch the expression and that the program will not dump

thanks

2 REPLIES 2
Read only

Former Member
0 Likes
374
COMMIT
EXEC SQL.
ENDEXEC.
DELETE FROM OrderedSuppliedReport@MobideoGlidot
ENDEXEC.
if sy-subrc <> 0.
message..
endif.
Read only

Former Member
0 Likes
374

Hi Yossi,

You can modify something like this...

Regards,

Raj

EXEC SQL.

select * FROM OrderedSuppliedReport@MobideoGlidot

ENDEXEC.

if sy-subrc = 0.

EXEC SQL.

DELETE FROM OrderedSuppliedReport@MobideoGlidot

ENDEXEC.

ENDIF.