In my previous weblog Debugging a RFC call using JCo API I wrote about how to analyse the dump of RFC call. In case the result is not what is expected we can further drill down to debugging into the function module’s ABAP code.
In order to enable the ABAP debugging we need to call the function setAbapDebug(boolean) defined in JCO.Connection with true as parameter.
This will launch the ABAP debugger in a separate window when the Java program is run.
Further details about how to use the ABAP Debugger can be found at ABAP Debugger Documentation.