on 02-13-2017 8:11 AM
Hi all,
I'm currently in the development of a UI Application which is driven by workflow that shows a list of workitems. these workitems are all only for approval (only yes / no is possible).
They are sent to several users and each user has to approve. In my case it should also be possible, that another user (an administrator or someone else) can do the approval for the real users by seraching the workitem thorugh reqno generated for particular workflow triggered.
I found a function module called 'SWW_WI_ADMIN_EXECUTE' but this fm is displaying a confirm pop up screen.
My issues are:
1. how i will get other user workitem as the admin user who will approvedoesnot have this workitem.Do i have to add this user(admin) in workflow configuration as admin user or he can be any user.
2. Is there any Fm to execute workitem programatically as i am using decison step.
I am using SAp_wapi_decison_complete but getting error in this.
Please provide your inputs.
Hi,
Make sure based on the configured outcomes of the decision step you also need to pass the action on the workitem as input to the function module. Are you sure the decision task 0008267 is the task id of the step or was it a copy of the standard decision step. If it not a copy or a standard decision task then probably you try to chek with SAP_WAPI_EXECUTE_WORKITEM and before calling this make sure you pass the container elements to the workitem container by calling SAP_WAPI_READ_CONTAINER.
Thanks,Pavan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Santosh,
Why don't you always send all items to the admin user's inbox.
Suppose 4 different workitems of workflow are pending for approval with four different users & you want administrator to approve any of the workitems as per his requirement, then you can change agent determination logic for all the four workitem and have administrator added to all of them so that any newly triggered workflow will go to specific approval + administrator always.
Another way of doing this is make the administrator active substitute of approvers. One administrator is made substitute of approver, administrator can see all the workitems of the approver in his inbox.
Thanks & Regards,
Tejas Asodekar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Santosh,
You can use FM SAP_WAPI_DECISION_COMPLETE to set the decision programmatically. What error are you receiving here?
In order to get the work items, there are a few options that you have. E.g. you can use SAP_WAPI_WORKITEMS_BY_TASK or
SAP_WAPI_WORKITEMS_TO_OBJECT etc.
From the business process perspective, it wouldn't be a bad idea to review the requirements, though.
I hope that helps.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Transaction SWIA is used for executing workitems as an administrator or better yet to forward it to a different agent.
Kind regards, Rob Dielemans
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
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.