In SAP ME 6.1.4.2:
When the operation completeSfc of the SfcCompleteService fails with the SelectedSfcNotInWorkAtOperationException (a BusinessException!!!), 2 error messages are written to developer trace (File = defaultTrace, Severity = Error, Category = com.sap.me.trace):
- Explicitly rolling back transaction.
- Selected SFC "..." is not in work at operation "..." (Message 15441)
at com.sap.me.frame.BaseDAO.abort(BaseDAO.java:2615)
at com.sap.me.frame.BasicBOBean.abort(BasicBOBean.java:2066)
at com.sap.me.frame.AbstractWorker.abort(AbstractWorker.java:99)
at com.sap.me.demand.SFCRoutingCompleteWorker.complete(SFCRoutingCompleteWorker.java:573)
at com.sap.me.demand.SFCRoutingBOBean.complete(SFCRoutingBOBean.java:162)
...
How can we turn this off? In our case we catch and deal with this BusinessException. This is ok. No error message has to be traced - it just confuses the server administrators. Our code looks like this:
CompleteSfcRequest csr = new CompleteSfcRequest();
csr.setSfcRef(mySfcRef);
csr.setOperationRef(myOperationRef);
csr.setResourceRef(myResourceRef);
SfcCompleteServiceInterface scs = Services.getService("com.sap.me.production", "SfcCompleteService", mySite);
try
{
scs.completeSfc(csr);
}
catch (SelectedSfcNotInWorkAtOperationException niwe)
{
// SFC was already completed before; its ok; continue with next step
...
}
Best regards,
Martin