on 10-18-2005 1:38 PM
Hallo everybody,
how can i catch the exception from function module "exception" and deliver it to call function parameter table --exception table.
For example,a function module 'RPY_TABLE_INSERT' is called by Call Function (parameter_table)in order to create a new table.When the table exists already, a exception "Already_exist" activated.But it can not be caught,since it is raised by "message raise". Therefore in the exception-table of caller no error is caught.
How can I deal with it?
Thanks in advance!
HI,
after the FM call, using sy-subrc you can catch
if sy-subrc = 1.
CANCELLED
else sy-subrc = 2.
ALREADY_EXIST
endif
cheers,
sasi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.