Skip to Content
0
Jan 30, 2023 at 03:50 PM

SAP PO - BPM API error "com.sap.bpm.exception.api.BPMIllegalAccessException"

487 Views Last edit Jan 31, 2023 at 09:18 AM 3 rev

Dear Experts,

I am working on single stack SAP PO 7.5 environment and trying to start a BPM process using BPM API as a restful service. Basically followed commands from SAP help and few blogs from internet to create the Development Components in NWDS.

I am currently getting an authorization error as mentioned below and unable to resolve it even by adding roles mentioned below, please advise if I am missing something. I am trying to test the rest service from SOAP UI - Rest project by just passing basic authentication and believe URL been set correctly.

Current Roles Added (Created a new user):

SAP_BPM_SuperAdmin, SAP_BPM_TRIGGER_EVENT, SAP_BPM_ODATA, SAP_APPLICATION_DEPLOYER, SAP_SYSTEM_DEPLOYER, SAP_XI_APPL_SERV_USER

[EXCEPTION]

com.sap.bpm.exception.api.BPMIllegalAccessException: Requesting user does not have sufficient permissions, which are required for this call.

at com.sap.bpem.pm.impl.ProcessDefinitionManagerBean.checkPermissions(ProcessDefinitionManagerBean.java:194)

at com.sap.bpem.pm.impl.ProcessDefinitionManagerBean.getActiveProcessDefinition(ProcessDefinitionManagerBean.java:120)

On the other hand, I believe we can use SAP's standard BPM ODATA service (from SAP PI 7.31) to start/cancel/resume BPM processes. Is there any blog that describes the steps for the same?. And how do we get CSRF token from SAP PO server while doing the ODATA call?. Please give suggestions.

Thanks in advance.

Best Regards,

Kumaran