on 05-17-2011 9:40 AM
Hi All,
I am using the standard class CL_PT_REQ_WF_ATTRIBS with DUMMY method for approval workitem which uses webdynpro ABAP. The webdynpro person is passing one variable RESULT after the approval, and RESULT with its value is shown in the log but there is no workflow container element named RESULT in the workflow. so, I created one with that name. But when I use this vaiable in the task after mapping, it is not showing any value. Am I missing something or doing anything wrong?
If i understood your requirement correctly, you are
trying to complete the decision task programmatically.
Though you are using SAP_WAPI_WORKITEM_COMPLETE,
before completing the workitem you should update the
container elemets _RESULT, WIRESULT with correct
values ( either 0001, 0002 etc based on the decsion)
using SAP_WAPI_WRITE_CONTAINER. Are you doing this?
Edited by: Saud Shaikh on May 18, 2011 10:54 AM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Saud,
Thanks for the reply. I was doing incorrect binding between task which has the class and workflow container. My doubt was, even thogh there's no explicit binding between the class and task container element, how data passes to task.
All,
Thanks for you suggestions, during which I learned alot.
Hi
After creating the container element in Approve Leave request Task did you try to refresh the buffer and Refresh Org assignement.
And also make sur ethat the webdynpro developer is writing back the decision to Approve Leave request Task
and also make sure you do a proper bidning between Task container to workflow container. Check in the workflow log whteher in atleast the task container the value is populate. Also please let us know how the webdynpro developer is assigning the result value is it something like he is using SAP_WAPI_WRITE_CONTAINER function module then make sure that the container element is CAse Sensitive. so ask him to define as you decalred in the task/workflow container.
Regards
Pavan
Edited by: Pavan Bhamidipati on May 17, 2011 2:18 PM
Edited by: Pavan Bhamidipati on May 17, 2011 2:18 PM
Edited by: Pavan Bhamidipati on May 17, 2011 2:19 PM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I can see that in log, but it is not updating the value when I use it in task,
it means it is not in workflow container also.
A bit confusing You are saying that you able to see the value in the log but what do you mean by when you are using in the task.?
Can you please be more clear.
See what I would suggest to re check is that when he is calling the SAP_WAPI_WORKITEM_COMPLETE make sure you are executing COMMIT WORK after executing FM.
And more over can you clear me that when you are executing the workitem then what is the status of the workitem I mean completed or still inprocess.
Regards
Pavan
Edited by: Pavan Bhamidipati on May 17, 2011 3:58 PM
User | Count |
---|---|
86 | |
10 | |
10 | |
10 | |
7 | |
6 | |
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.