To cancel the Loader command/the SQL statement currently being executed, you use the com.sap.dbtech.powertoys.Loader.cancel method in your Java application.
public void cancel()
throws
java.sql.SQLException
See also:
Loader Java Classes