Quantcast
Channel: SCN : All Content - SAP Manufacturing
Viewing all articles
Browse latest Browse all 1079

Turn of developer trace for SelectedSfcNotInWorkAtOperationException

$
0
0

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):

 

  1. Explicitly rolling back transaction.
  2. 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


Viewing all articles
Browse latest Browse all 1079

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>