on 10-12-2007 3:06 PM
Hi,
When a remote function module is called from Java a message should get thrown from the function module which the FM is throwing but Java is not able to fetch the error. This problem is coming in execution mode but if we are in debugging mode and go to the function module remotely the error is getting triggered.
Please suggest the solution to the problem.
Thanks,
Abhishek
Hello
try something like this
...
try {
JCO.Client.execute(myFunction)
} catch (JCO.AbapException ex) {
System.out.println ("ABAP Exception: " + ex.getKey() + " " + ex.getMessage());
}
the problem is, that JCo ABAP Exceptions are subclasses of java.lang.RuntimeException so the Java Compiler doesn't force you to catch them
regards franz
reward points if useful
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
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.