This error occurs when JDBC attempts to send the connection in autocommit(true) mode.
SAP Adaptive Server Error 7713 - Stored Procedure can only be executed in unchained transaction mode.
The application can change the connection to chained mode using Connection.setAutoCommit(false) or by using a “set chained on” language command. This error occurs if the stored procedure was not created in a compatible mode.
sp_procxmode procedure_name,"anymode"