0 Replies Latest reply: Mar 5, 2012 8:52 AM by Nityanand Singh RSS

How to start SFC in activity hook.

Nityanand Singh
Currently Being Moderated

Hi Experts,

 

I am trying to start SFC in Activity hook. Tried the following, but its not working.

 

Please correct me where Im wrong...

 

 

List<StartSfcRequest> sfcReqList = new ArrayList <StartSfcRequest>();

StartSfcRequest startRequest = new StartSfcRequest();

String newSFCBO ="SFCBO:MYSITE", xyz";

startRequest.setSfcRef(newSFCBO);

startRequest.setOperationRef(operationBO.toString());

startRequest.setResourceRef(resourceBO.toString());

startRequest.setQty(new BigDecimal(1.0));

sfcReqList.add(startRequest);

sfcStartServiceInterface.start(sfcReqList);

 

Thanx in advance.

  • Re: How to start SFC in activity hook.
    David Strohmayer
    Currently Being Moderated

    Hallo,

     

    i have the same problem. Did you find a solution?

     

    Starting a SFC and completing it via API doesnt work for me. I get the error:

    com.sap.me.production.exception.startservice.RequiredValueMissingException

     

    But i have set everything that is possible to set in the StartSfcRequest object. The logfile is showing me another error before the "RequiredValueMissingException":

     

    ##sap.com/meear#C000C0A8325E008E00000004000015D8#1341550000000005#sap.com/meear#com.sap.me.trace.VM#SITE_ADMIN#30#JTA Transaction : 5782#8D7400C4690611E1C65200000014786E#8d7400c4690611e1c65200000014786e#8d7400c4690611e1c65200000014786e#0#Thread[HTTP Worker [@493161230],5,Dedicated_Application_Thread]#Plain##

    SITE is missing (Message 12001)

         at com.sap.me.frame.BaseDAO.abort(BaseDAO.java:2604)

         at com.sap.me.frame.BaseDAO.abortMissingInput(BaseDAO.java:2568)

         at com.sap.me.frame.BaseDAO.getRequiredInput(BaseDAO.java:2558)

         at com.sap.me.frame.BaseDAO.getRequiredInput(BaseDAO.java:2546)

         at com.sap.me.frame.BasicBOBean.getRequiredInput(BasicBOBean.java:2008)

         at com.sap.me.user.CertificationBOBean.checkCerts(CertificationBOBean.java:185)

         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

         at java.lang.reflect.Method.invoke(Method.java:597)

         at com.sap.engine.services.ejb3.runtime.impl.RequestInvocationContext.proceedFinal(RequestInvocationContext.java:47)

     

    The "SITE is missing" seems to be the problem...

Actions