‎2007 Dec 22 5:20 AM
Hi,
i am calling the one functioin module into another function module,after calling the function module one file will be attached to the transaction code and at the time status code of idoc is 53 if file is not attached the status code is 51 ,
at that time i want raise the exception ,please explain with example (those two are zee.. function modules)
‎2007 Dec 22 5:33 AM
U can set the exception in the FM in which u r actually reading the status of IDoc.
‎2007 Dec 22 5:44 AM
http://help.sap.com/saphelp_nw04s/helpdata/en/a0/ff934258a5c76ae10000000a155106/frameset.htm
In the FM go to exceptions tab...name a exception...
if condition fails in your code..
raise <exception_name>.
endif.
‎2007 Dec 22 6:02 AM
add ur own exception name in exception tab
use RAISE <exception name> in ur program
it will go back to the calling program & the index of the exception name will reflect in SY-SUBRC.
Reward if useful
Regards
ANUPAM
‎2008 Mar 20 3:04 PM