‎2005 Dec 13 12:52 PM
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
‎2005 Dec 13 12:56 PM
COMMIT
EXEC SQL.
ENDEXEC.
DELETE FROM OrderedSuppliedReport@MobideoGlidot
ENDEXEC.
if sy-subrc <> 0.
message..
endif.
‎2005 Dec 13 12:59 PM
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.