cancel
Showing results for 
Search instead for 
Did you mean: 

Triggering BPM process from ECC

Former Member
0 Kudos

Dear All,

I created a WSDL in BPM and consumed it in ECC . After that created a logical port using SOAMANAGER.

While executing in the program(the code is shown below) or testing the service consumer  it does not give any error. but still process not starting up.

REPORT ZTEST_BPM.

DATA : lv_port type REF TO zco_abapwsdl,

        lo_sys_exception   TYPE REF TO cx_ai_system_fault,

        input TYPE ZNEW_OPERATION_REQUEST1,

        in TYPE ztest.

TRY .

   CREATE OBJECT lv_port

     EXPORTING

         LOGICAL_PORT_NAME = 'ZPORT'.

CATCH CX_AI_SYSTEM_FAULT.

ENDTRY.

   input-in-first_name = 'ABCDEF'.

   input-in-last_name = 'G'.

TRY.

   call METHOD lv_port->NEW_OPERATION

    EXPORTING

         INPUT = INPUT.

   COMMIT WORK.

   CATCH CX_AI_SYSTEM_FAULT INTO lo_sys_exception .

   CATCH cx_ai_application_fault.

ENDTRY.

write : 'Process Started'.


Your input will be helpful.


Thanks and Regards,

Prabhu Karuppasamy

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi ,

After following the below document the issue got solved.

Thanks and Regards,

Prabhu Karuppasamy

Answers (1)

Answers (1)

former_member191643
Active Contributor
0 Kudos

Make sure that the user you are testing this with, has all the necessary roles and authorizations on the portal to Start a BPM Process.

For all possible roles and authorizations related to SAP BPM, refer the following:

http://help.sap.com/saphelp_nw73/helpdata/en/45/d7d0e08a164c5e87e4604ba89c632a/content.htm

https://help.sap.com/saphelp_nw73/helpdata/en/9c/23eaeb4c53486f8d9c4cb376b99994/content.htm

Former Member
0 Kudos

Hi Siddhant,

Thanks for your message.

The roles specified are given to the user , I tested in WSNavigator with that user , the process starting up perfectly.

Thanks and Regards,

Prabhu Karuppasamy

former_member191643
Active Contributor
0 Kudos

Have you configured the service end-points of the BPM in the application communication in the SOA tab in NWA? It needs to be 'Processed' so that other components in the server can trigger the BPM Start web-service.

Also, make sure that the 'SAP_BPM_TRIGGER_EVENT' is assigned to the user.

If your requirement is met, please close this thread.

Former Member
0 Kudos

Hi Siddant,

The service end-points are configured and SAP_BPM_TRIGGER_EVENT is assigned to the user.

To me ,it looks like there is no issue in receiver side , From sender side (ECC) something is missing. Since it does not show error or dump , i could not able to figure it out.

Thanks and Regards,

Prabhu Karuppasamy

junwu
Active Contributor
0 Kudos

we had similar issue.

in our case, we are using FPM BOPF,  when you call the ws, you have to save the object, if not, the ws call is not triggered, even though the code is executed.

I am not abaper.