on 09-08-2008 8:13 AM
Hi,
In a user decision step,there is a default option 'Cancel and keep the work item'.
Now clicking on this option, the workitem goes into "Inprogress state"
whereas i want to keep the workitem in "ready state" after i click on the option 'Cancel and keep the work item'.
I am trying to modify the Process method of Decision Object type to incorporate this funcationality by using FM "SAP_WAPI_PUT_BACK_WORKITEM.
but im getting the error that this FM cannot be used at runtime.
Place where im trying to call this FM:
After the FM'SWU_PROCESS_MANUEL_DECISION'
I am getting the value of RESULT.
If result is SPACE or sy-subrc is not 00 then i am calling this Fm which takes Wi_id of the userdecision as input.
Kindly help
Regards
Hi Monika
I Need small clarification regarding Workflow. as you are facing the same problem i am also facing.i am using custom workflow itsself i am calling the custom screen. while user click back with out taking any action at the time i want to keep his workitem in his inbox. how to achieve, Please advise
Thanks & Regards
K.Gunaseekar.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
In the Business Workplace(SBWP) or in the transaction Code SWIA by providing the workitem id you will find a button Replace Manually which will change the status of the workitem to Ready state. There are some SAP_WAPI FMs that can be used. Check from SE37.
Thanks
Arghadip
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
i am aware of the replace in SBWP also about SWIA and the FMs which do this but my requirement is to know where to use this FM in the method .
I need to change the status on click of the option cancel and keep workitem in user decision
Please go thorugh my requirement once and then reply.
regds
Hi,
Let me ask you this. Why you need to have this in "Ready" state, Not in "IN PROCESS" state. Anyway, the witem is still there in the user's inbox, and if you have any deadline monitoring, then this is also taken care with "Cancel and keep xxxx". So, i think, functionally you'll still be better with the existing functionality.
And, with all this, if you are still trying to change, then i think it's NOT possible. If i understand correctly, you are trying to use the FM "SAP_WAPI_PUT_BACK_WORKITEM" within the PROCESS method. And, if you understood the functionality of how this works, you are trying to set the status of the SAME witem for which you are executing the PROCESS method.
THe way i understand the behind-the-scenes process, once you make a decision and save, this method is the one which in turn sets the witem status. And within that, you CANNOT capture the status as it is yet to be posted to the Witem tables.
Probably, after this decision step, use a different background task with the above FM to set the witem status to "Ready", BUT NOT IN THE SAME METHOD of PROCESS.
Also, it's not advisable to change this std. method.
Hope this helps you. Reply,if you need more info.
venu
Hi,
Once you open the user decision work item, this will come to INPROCESS state, if you click the 'Cancel and keep the work item' it will never come to ready state, it always in INPROCESS state .
This you canu2019t change, this helps initiator or workflow admin to find whether the work-item is processed by Approver or not.
Example: if a work-item received by 4 people if one person opened it, only he can approve. Or else he can forward it to anyone, this state you canu2019t change.
Regards
Surjith Kumar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
79 | |
9 | |
9 | |
7 | |
7 | |
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.