on 04-06-2011 6:24 AM
Hi ,
in my workflow i am using an activity(foreground) to call a webdynpro screen using below code (this code is written in a class).
DATA: lv_url TYPE string,
lt_app_params TYPE tihttpnvp,
ls_app_params TYPE ihttpnvp.
ls_app_params-name = 'INITIATOR'.
ls_app_params-value = initiator.
APPEND ls_app_params TO lt_app_params.
CLEAR ls_app_params.
ls_app_params-name = 'WI_ID'.
ls_app_params-value = wi_id.
APPEND ls_app_params TO lt_app_params.
CLEAR ls_app_params.
CALL FUNCTION 'WDY_CONSTRUCT_URL'
EXPORTING
application = 'YTEST_VAMK'
PARAMETERS = lt_app_params
IMPORTING
out_url = lv_url
EXCEPTIONS
invalid_application = 1
OTHERS = 2.
Launch the portal application with the form data in it
CALL METHOD cl_gui_frontend_services=>execute
EXPORTING
application = lv_url
EXCEPTIONS
OTHERS = 1.
My issue is that as soon the this activity is executed by the respective agents, workitem for this task is getting completed, to be specific as soon as the webdynpro screen is opened by the agent .. workitem is getting completed.
I dont want this workitem to be completed in that way..as i need to wait for some user action from the screen i.e. only if user performs some action in the screen , workitem should be completed.
iam planning to use the function module 'SAP_WAPI_WORKITEM_COMPLETE' on user action .
How can i hold the automatic completion of workitem ?
Hi Reddy!
well i think you have to CHECK the option "confirm end processing" in your activity (task).
after checking this option it will ask for "complete" and "cancel" the workitem .(agent can choose cancel if has not performed any action)
follow this route:-
PFTC - edit the task - check the option "confirm end processing".
Hope this gonna solve your problem.
Kind Regards,
Him Joshi
Edited by: HIM joshi on Apr 6, 2011 8:35 AM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Make the task as asynchronous task. then the task will ask for a terminating event. Create a custom terminating event in your BOR and add it as terminating event for the task.....
Trigger that terminating event on user action in the web dynpro.....
This will resolve your issue...
Regards,
Devananda A J
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
So where is this code called? Did you put this class and method in the foreground task?. In such a case, work item will get completed as soon as this piece of code gets executed.
This is what we did.
1. Mark the task as "Object method with dialog"
2. Add a terminating event. This even should be called for completing the workitem.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
91 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.