Hi,
My scenario is like this:
1. I have a custom ZBUS2081(with custom event contentCreated) which is delegated to standard BUS2081.
2. My workflow will be triggered when user posted an invoice through MIRO as BUS2081 is posted.
3. This workflow will generate work item that allow the user to execute it in SBWP.
4. Upon executing, it will call a custom method in ZBUS2081 that will call a custom transaction(with CALL TRANSACTION syntax) allowing user input some contract info.
Everything work fine up until this stage. My problem is upon execution of the custom transaction(when user press save), the workitem is not terminated from SBWP.
My understanding to rectify this issue.
1. Raise the custom event in user-command save(using FM SAP_WAPI_EVENT_CREATE) in the custom transaction.
2. Set the terminating event of the asynchronuous dialog task to this custom event.
3. Activate the outcome of the workflow.
Is my approach correct? I have try this approach by calling this FM with the respected objectkey in program but it's not working as message 'No receiver type' was found in SWEL.
Appreciate anyone can enlighten me on this issue, thanks.
Regards,
Marlson