2007 May 05 8:35 AM
Dear abaper's.
I am creating a Function module .In that in' EXCEPTION' Tab i am giving
3 exception .1.NO_DATA_FOUND 2.NO_PRINTER_FOUND 3.SMARTFORM_INTERFACE_NOT_FOUND.
In my coding if this condtion matches i want to raise this exception.how can i do this in my coding .can any one suggest me..
advance thanks,
Warm regards,
Veera
Dear abaper's.
I am creating a Function module .In that in' EXCEPTION' Tab i am giving
3 exception .1.NO_DATA_FOUND 2.NO_PRINTER_FOUND 3.SMARTFORM_INTERFACE_NOT_FOUND.
In my coding if this condtion matches i want to raise this exception.how can i do this in my coding .can any one suggest me..
advance thanks,
Warm regards,
Veera
2007 May 05 8:37 AM
Hi
after calling the function module
check/write
if sy-subrc <> 0
RAISE EXCEPTION.
endif.
Reward points if useful
Regards
Anji
2007 May 05 8:37 AM
2007 May 05 8:46 AM
Hi,
IF <your field check> NE <your condition>
RAISE <exception name>.
ENDIF.
2007 May 05 8:50 AM
DEAR ABAPERS,
how can i see that exception, when iam excuting
Regards,
veera
2007 May 05 8:58 AM
Hi,
if that condition is not satisfied,and u didn't handle that exception while calling function module then in the runtime error u will get the text as the description of the exception in function module definition.
rgds,
bharat.
2007 May 05 8:59 AM
Hi
when you execute the code, if that condition failed,
the respective exception is raised and displayed.
Reward points if useful
Regards
Anji
| User | Count |
|---|---|
| 6 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |