Skip to Content
0
Former Member
May 26, 2014 at 01:54 AM

Mass Activity - Error in SAP CPS

220 Views

Hi guys,

I am trying to run a mass activity from SAP CPS in the ISU system. I imported the mass activity - 0004, the posting and the document date had to be changed dynamically, so I created a parameter set as shown here.

Created a job to copy parameters(these two parameters only). Ran the job, the parameters are created and copied to target id FPMA5

Created a copy of the job SAP_MassActivityTemplateRun -> Used the Target ID as shown and date as today.

So, I am consuming the Identification FPMA5 from the previous job run here. Tried to run it, getting the below error in the SAP CPS system.

com.redwood.scheduler.connector.sap.rfc.connection.exception.SapBapiException: BAPI exception while calling /SCJS/ISU_START_MASS_ACTIVITY: E XM 300 RAISE_EXCEPTION {00,341} Runtime error & has occurred [0004,K2,26.05.2014,FPMA5]
 BAPI exception while calling /SCJS/ISU_START_MASS_ACTIVITY: E XM 300 RAISE_EXCEPTION {00,341} Runtime error & has occurred [0004,K2,26.05.2014,FPMA5] [RAISE_EXCEPTION, {00,341}, Runtime error & has occurred, [0004,K2,26.05.2014,FPMA5]]
Parameters:
  0004
    2014-05-26
  FPMA5
  X
        at com.redwood.scheduler.connector.sap.rfc.jco2.connection.impl.ClientConnectionImpl.checkBapiReturnCode(ClientConnectionImpl.java:727)
        at com.redwood.scheduler.connector.sap.rfc.jco2.connection.impl.ClientConnectionImpl.call(ClientConnectionImpl.java:533)
        at com.redwood.scheduler.connector.sap.rfc.connection.AbstractRfcConnection$4.doPerform(AbstractRfcConnection.java:310)
        at com.redwood.scheduler.connector.sap.rfc.connection.RemoteFunctionCall.perform(RemoteFunctionCall.java:147)
        at com.redwood.scheduler.connector.sap.rfc.connection.AbstractRfcConnection.perform(AbstractRfcConnection.java:481)
        at com.redwood.scheduler.connector.sap.rfc.connection.AbstractRfcConnection.execute(AbstractRfcConnection.java:303)
        at com.redwood.scheduler.connector.sap.rfc.jco2.connection.impl.SapFunctionModuleWrapper.execute(SapFunctionModuleWrapper.java:200)
        at com.redwood.scheduler.connector.sap.rfc.jco.AbstractSapFunctionModule.execute(AbstractSapFunctionModule.java:109)
        at com.redwood.scheduler.connector.sap.rfc.command.impl.AbstractMassActivityRunCommand.startMassActivity(AbstractMassActivityRunCommand.java:264)
        at com.redwood.scheduler.connector.sap.rfc.command.impl.MassActivityTemplateRunCommand.doExecute(MassActivityTemplateRunCommand.java:50)
        at com.redwood.scheduler.connector.sap.rfc.command.impl.AbstractMassActivityCommand.execute(AbstractMassActivityCommand.java:67)
        at com.redwood.scheduler.connector.sap.rfc.command.AbstractXbpCommand.doExecute(AbstractXbpCommand.java:84)
        at com.redwood.scheduler.connector.sap.rfc.command.AbstractCommand.execute(AbstractCommand.java:57)
        at com.redwood.scheduler.connector.sap.rfc.service.operation.RunJobOperation.doWork(RunJobOperation.java:136)
        at com.redwood.scheduler.connector.sap.rfc.service.SapJobWork.doWork(SapJobWork.java:38)
        at com.redwood.scheduler.infrastructure.workqueue.Worker.run(Worker.java:76)
        at java.lang.Thread.run(Thread.java:722)


I now added other parameters into the parameter set, maintained them in the COPY_Parameter job. Even then I get the same error!


I believe my problem is this - I am able to copy the parameters, but passing them to the Mass activity is somehow failing(I am using the MASS_ACTIVITY_TARGET_ID field output from Copy parameters to MASS_ACTIVITY_ID, which I believe is wrong. But I want to use the copy parameter job's output in the mass activity template run). Please let me know.


I followed this guide: Importing and Running Mass Activities - SAP Central Process Scheduling by Redwood - SAP Library


Thanks and regards,

Pavan

Attachments