cancel
Showing results for 
Search instead for 
Did you mean: 

Remote Enabled function module of SAP working - debug mode but not run mode

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

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