cancel
Showing results for 
Search instead for 
Did you mean: 

Workflow from Webdynpro ABAP with ABAP Class - Screen output without connection to user.

Former Member
0 Kudos

Hi All,

I am calling Workflow from Webdynpro ABAP. Workflow task with ABAP class. Workflow triggering correctly, but getting below dump because of workflow Confirm End Process popup. DYNPRO_SEND_IN_BACKGROUND CX_SY_SEND_DYNPRO_NO_RECEIVER - Screen output without connection to user. Without this check workflow getting completed automatically, no work item in inbox. How to handle this? any Possibilities?

dump.png

Thanks,

BV.

Accepted Solutions (0)

Answers (1)

Answers (1)

bpawanchand
Active Contributor

Hi Reddy,

There are few points to note to fix the above dump:

There are two possibilities to execute the work item from the user inbox. Firstly, SAP Inbox and the next is POWL from portal/NWBC or UWL.

  • If in the case of UWL/POWL,y then I would recommend creating a dialog task as TS12300097. The task is just a dummy task and it makes sure that the task is always executed from NWBC or UWL and make sure to carry out the SWFVISU settings in case if you are using UWL. The task is a synchrounous object method too.
  • If the user executes from SAP Inbox then make sure to create an asynchronous task and try to make use of terminating events to completeworkitem and to get the reason behind the action or some notes which you might be currently logging.

Regards

Pavan

Former Member
0 Kudos

Hi Pavan,

Thanks for your suggestion.

Let me explain more about my issue. I have WF with one standard task, used ABAP class which have one screen. When open workitem in inbox, screen will open which have approve and reject buttons. After this Confirm end Process Popup will open to complete the task or not. I am Calling this WF from webdynpro ABAP, Since trying to call a screen ( Confirm End process Popup uses screen ) in this standard FM : SWW_WI_POPUP_FOR_COMPLETION, I am getting this dump. If I uncheck confirm end process I am not getting any dump, but work item moving from inbox to outbox, as it is completed automatically. I am getting dump at webdynpro browser.

Any suggestions on this to address the issue.

Thanks,

BV.

bpawanchand
Active Contributor

Hi BV,

What I understood from your points is that you

Firstly, you defined workflow and you are starting this workflow on click of a button from WDA, let's say, SAVE by using some RFC or WAPI function modules.

Secondly, within the workflow, there is a dialog task, on execution, it will again open the other WDA application in which you have Approve and Reject button. Now within this application, you are calling the above-mentioned function module to capture the notes from the executing user.

If my understanding is correct then you have to do a few modifications.

  1. If the task is a copy of standard decision task(00008267) then you need to call the function module SAP_WAPI_DECISION_COMPLETE by passing 0001 for approve and 0002 for reject.
  2. If you task is not same as 00008267 then I would say make the task asynchronous task. You can do it by disabling "Synchronous Object Method" and uncheck "Confirm End of Processing". After this try to include a terminating event in the terminating events tab. In this case, all you have to do is raise this terminating event on click of Approve or reject button by using SAP_WAPI_CREATE_EVENT.

I would also say please share some screenshots of Task and how your application looks upon execution of work item. This would help more to trigger bullet on Bulls Eye

Regards

Pavan