on 11-16-2007 1:39 PM
Hi all,
When we are calling a function module from JSPDynpage setting some import parameters, If in some case an exception is thrown in the function module. How can we catch the same exception in the JSPDynpage program?
Thanks & Regards,
Ravi
Hi Ravi
Try this
try
{
Object retMsgs = output.get(bapiretrunmsgobject);
if(result != null )
IrecordSet rmsg = (IrecordSet) result
}
catch(Exception ex)
{
printException(ex, "Error getting function result");
}
Lemme know for any further questions.
Regards
Praveen
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ravi
Can't you just do the following: (or is it not what you want?)
try
{
// execute functionmodule
}
catch(Exception e)
{
// It probably already says what kind of exception it throws so maybe you should catch //that explicitly - Javadocs could probably help you there
System.out.println(e.getMessage());
}
Br
Göran
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.