Delete work item - Sort Key
Hi,
How do I make a workitem have the ability to be trashed. Is it possible.
How do I use the sort Key. Can I sort my work items based of a sort key.
Any help is appreciated.
Joe Vellaiparambil
Hi Jose,
as already said the only way to trash a WI is to archive it or delete it via SWWL (but it can be done only by the administrator).
Anyway you can let your users reject the WI. To enable this feature, put a flag in the checkbox "Processing can be rejected" in the Control lable (Step Properties) of your activity in the workflow builer, you should also change the WF definition to manage this option. To refuse the execution the user will select the item in the workplace and use the icon beside the attachment management (if I don't mistake it's the one on the left).
If I understand you also need to sort your WI in your workplace:
Via SWL1 - "Dynamic Columns for Worklist" you can define upto 6 Task container variables that will be available as column in your workplace.
If you go to your workplace in Inbox -> Workflow -> Grouped according to task you will see your WI organized by task, for each tasks you can change the layout of your worklist according to what defined in SWL1 so you will sort / filter / search as you prefer.
Regards,
Gianluca
Similar Messages
-
Urgent what is the programs to delete work item history and work item
hi gurus this is very urgent ,
what is the programs to delete work item history and work item ?Hi Deppak.
There is a program ,to delete an workitem and history
RSWWHIDE---Program to delete the history.
RSWWWIDE--- Program to delete an workitem. -
Delete Work Item from PO Releaser's Inbox during Workflow
Hi All
How can I delete the previous Work Item that was created in the PO Releaser's Inbox if a PO was changed which re-triggered the PO Release workflow but this time to a different PO Releaser.
The workflow is working correctly, i.e. creating the new release item in the new releaser'd Inbox but not deleting the old Work Item for the previous releaser.
Any idea on how I can accomplish this?
Kind Regards
Utian GoliathPLease refer the below stuff................create a task and put the code inside the method.This task should be fisrt step in your workflow.
User sets doc to Complete from FBV2 , Complete event triggered and workflow triggered.
Workitem goes to approver .
Now , the user immediately changes doc from FBV2 , sets it to Complete again and workflow triggered
workitem goes to the same approver for the same document.
SAP_WAPI_WORKITEM_TO_OBJECT - Worklist table will giv all parent id's for the object key concatenation of
com code , doc no and fiscal year.
SWP_WORKFLOW_INSTANCE_DELETE - Pass the parent id and will delete the entire instance but not
parent workitem id.
SAP_WAPI_WORKITEM_DELETE - Pass parent id everything will be deleted .( Check_final_state = blank ).
No trace found in SWI14 and SWI2_FREQ.
To remove the previous workitem , create a method in the begining of the workflow , use F.M.
SAP_WAPI_WORKITEM_TO_OBJECT to get the workflow id's and then
SWP_WORKFLOW_INSTANCE_DELETE or SAP_WAPI_WORKITEM_DELETE to delete the previous instance.
data : lt_worklist type table of SWR_WIHDR,
lw_worklist type SWR_WIHDR,
lv_objkey type SWOTOBJID-OBJKEY,
lv_return type sy-subrc,
lv_id type SWP_HEADER-WF_ID.
concatenate object-key-sourcecompanycode object-key-documentn
object-key-fiscalyear into lv_objkey.
CALL FUNCTION 'SAP_WAPI_WORKITEMS_TO_OBJECT'
EXPORTING
OBJECT_POR =
OBJTYPE = 'FIPP'
OBJKEY = lv_objkey
TOP_LEVEL_ITEMS = 'X'
SELECTION_STATUS_VARIANT = 0001
TIME =
TEXT = 'X'
OUTPUT_ONLY_TOP_LEVEL = ' '
LANGUAGE = SY-LANGU
DETERMINE_TASK_FILTER = 'X'
REMOVED_OBJECTS = ' '
IMPORTING
RETURN_CODE = lv_return
TABLES
TASK_FILTER =
WORKLIST = lt_worklist
MESSAGE_LINES =
MESSAGE_STRUCT =
if lt_worklist is not initial.
loop at lt_worklist into lw_worklist.
object-instance = 'X'.
move lw_worklist-wi_id to lv_id.
CALL FUNCTION 'SWP_WORKFLOW_INSTANCE_DELETE'
EXPORTING
WF_ID = lv_id
DO_COMMIT = 'X'
EXCEPTIONS
WORKFLOW_DOES_NOT_EXIST = 1
OTHERS = 2
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDLOOP.
ENDIF.
Second way is to create a fork , and use wait for event step in it with the same event that is triggering the WFL
In the same branch take a process control to end workflow instance.
In the second branch carry out normal processing.
Necessary branch = 1.
So incase the user triggers the event again, a new instance will be created ,
and in the previous instance , the first branch will follow ending the
previous instance and the workitems of other branch will be logically deleted. -
Hi,
I'm using XI 3.0 and am trying to delete some Work Items that are sitting in Error status.
I've tried following OSS note 807906 but cannot see the menu items mentioned (specifically the Edit=>Change option) - can someone explain more clearly how to delete them?
Thx
Here is summary of OSS Note:
"First make sure that the process is actually 'irretrieveably lost', that is, that it has not simply encountered a temporary error (for example, the failure of synchronous sending and so on).
If you are certain that the process is no longer required, call the log of the affected process (using the process selection (SWF_XI_SWI1)) or the SXMB_MONI, ... and display the work item of the process (Workflows).
Go to the technical work-item display (if this is not displayed by default) and then select Edit => Change there.
Under 'Services for Administration', select the 'Logical Deletion' function.
This function is used to set the process to the 'Logically Deleted' status and to delete all outstanding correlations. The process has then reached its final status and can also be archived"brian
are u luking into deleting error messages. If yes then,
SXMB_ADM --> Schedule/Delete Jobs
Delete Messages SXMB_MONI -
SWWL - delete work item - approval preview log??
Hi all,
SRM 5.0 ECS.
We have implemented custom n step approval wf for shopping cart .The shopping cart has PO and invoice created and the header status for shopping cart is approved.However now the workflow has restarted for the cart and I need to delete the work items from the approvers inbox.
If i delete the work items from SWWL transaction,will the shopping cart status still be "APPROVED"???
Is SWWL the best way to delete the work items??What will the approval preview for the shopping cart show after I delete the work item?Once, Workfiow item is approved, Workitem disappears from inbox right..
Why do you use SWWL transaction to delete the workitems..
Can you elaborate the issue..Please.
Thanks,
Balaji.T -
Hi All,
I need to delete/archive work item from SAP Inbox for a particular task upto a specific date only.
How can I do this.
Regards,
NeerjaHi,
Delete in test system using RSWWWIDE and RSWWHIDE reports.
Reports RSWWWIDE and RSWWHIDE are intended for internal use only. The work items are deleted from the database without further query or an authorization check. They can be started from the workflow development environment using the administration menu.
In a production system, you must archive the work items before you delete them (transaction SARA), with the object 'WORKITEM'.
Regards,
Lim... -
Deleting work items in PTARQ in mass. Is this possible ?
Hi
I have a number of leave request work items that I need to remove/delete from Manager Inboxes in the portal.
I have identified the work item #'s and am aware that I can remove these via SWWL in mass which is fine. In order to remove the reference to these leave requests from the UWL worklist in the portal also means that I need to remove these workflow instance #s/work items from PTARQ. However the issue I have is that the delete program RPTARQDBDEL does not allow me to enter in multiple work item numbers or even workflow instance #'s (which PTARQ seems to use).
My question is how can I go about deleting these items from PTARQ in mass ?
Might someone be able to help ?
Thanks
NicolaHi,
When the approver clicks the leave request approval item in UWL, it opens the leave request approval application. This application lists all leave requests with status SENT. So, if you delete the work item (with SWWL), yes - the work item disappears from UWL. Now if the manager opens some other work item, again the approval application lists all leave request. And since you did not delete the leave request from the database with PTARQ, it will be of course still included in the list.
>PTARQ will remove any remaining details in the UWL
>manager would see the skeleton information in the UWL list.
So, these are not really correct. PTARQ does not delete anything from UWL. PTARQ deletes the leave request itself, and thus it will not be anymore in the approval application list of requests.
So if you want to get rid of the whole "leave request package", you need to execute both PTARQ (to delete the leave request) and SWWL (to remove the item from UWL).
Regards,
Karri -
SRM archiving: Deleted work items
Hi all,
Transaction code: SARA
Can somebody help, I've archived and deleted workflow items but now I need to be able get the agents names when reading the archived data which doesn't seem to be happening
In the forntend system the approval overview is obviosly empty because its been deleted. In the backend system I'm using program RSWWARCR to read the archived data but this only gives heading for the workflow, how do I get the agents?
Archive infostructure also gives just the last agent's username without any details on the action done by the agent. e.g
ID Task Last agent CreateDate Done On
78875 WS90000026 A72025 2004-11-23 2004-11-23
78876 WS10000049 A72025 2004-11-23 2004-11-23
78877 TS90100003 WF-BATCH 2004-11-23 2004-11-23
78878 2 004-11-23 2004-11-23
I'll really appreciate your help
Thanks and RegardsHi Bennie,
Not sure, but have you tried whether report RSWWARCP gives the required fields?
If not, you could try to create a custom archive infostructure to include the fields which you want to read from archive. For this, you will have to create a custom field catalog to start with. You can refer note 994119 as an example for creating field catalogs.
Hope this helps,
Naveen -
CcBPM- Error process instance and error work item
Hi All,
I i just listing donw my queries about ccBPM.
1) What is the difference betwen process instance and work item?
I am presuming that, during ccBPM runtime message creates process instance and one process instance can have n number work item. Pleae correct me if i am wrong.
2) If one process instance is in error status, it means one of the work item is in error. is my undertanding right?
3) How should i edit/delete work item?
4) How should i edit/delete process instance?
Thanks
Rajesh1) What is the difference betwen process instance and work item?
I am presuming that, during ccBPM runtime message creates process instance and one process instance can have n number work item. Pleae correct me if i am wrong.
BPM comprises of many Steps. (Receive step, Send step, transform etc...) Durng runtime, A BPM is converted into SAP Workflow in the Background and gets executed. Hence all steps are referred to as WorkItems.
YES. ccBPM runtime creates multiple instances.. one BPM instance for each inpu message
2) If one process instance is in error status, it means one of the work item is in error. is my undertanding right?
Each process instance is independent of the other. Sometimes, the workitems blokc the processing if the other. Hence when the workitems block the processing, they should be deleted using SWWL.
3) How should i edit/delete work item?
4) How should i edit/delete process instance?
You cannot delete a process instance. But can delete the work items.
-SM -
Hi Forum
I have this problem whereby if an agent deletes an email in their agent inbox, it shsows that its deleted, but once you search again that same email that was deleted is shown in the result list
Tried logging off and on but the deleted work item is still displayed in the Agent Inbox
RitchieGlen we are using crm5
Note 908153 is applicable in our situation. BADI was implemented and it seems we need to add in method BEFORE_DELETE
We need to provide coding on this
Any idea how to achieve using R_DELETE_ALLOWED
Ritchie -
Work Item not getting logically deleted
Hi All,
We have created a custom workflow for PR approval at Item Level. I have RELEASE STEP CREATED as triggering event.
I have used a FORK with 5 branches with 4 wait events and min cond as 1. The inherited business object ZBUS2009 has been created with events CHANGE, DELETED. The business object has been delegated to Original Business object BUS2009.
To trigger the events like DELETED and CHANGED, I have used POSTED METHOD of ME_REQ_POSTED BADI.
When a PR Item is created the agents are determined successfully and work item is placed in his SAP Inbox. Later the PR Item has been deleted and saved the BADI Implementation is triggered and I can see the log in SWEL for DELETED event with success icon.
However when i go back to PR Item which i have deleted and see the workflow log the work item is still in the approver's inbox. but the graphic log shows that the DELETED branch of the fork is completed. I tried all options like Buffer synch, background job, queue admin etc with no success.
I did the same workflow at one of my previous clients and it is working perfectly for last 2yrs.
Can any one guide me on what could have gone wrong or what i am missing?
Thank you all in advance for help...
Regards,
Lakshmi NarayanaHi Arghadip,
Thanks for your quick response.
The fork is having 5 parallel branchs and 1 necessary branch and is INDEED HAS NO EXTRA CONDITIONS.
Also as i mentioned the graphical log shows that the completion of BRANCH Beneth DELETED but the work item is still in approver's inbox.
Please let me know if I am missing something....
Rgds,
Lakshmi -
Hi
We have a starge issue.
We use the table SWWUSERWI to see all the work items in the user's inbox.
If we delete the work item in this table it will remove the same from user's inbox.
We have a problem now. Even after we deleted all the work items the SRM "Approval" link and the "Inbox" still contains Workitems( more than 200 ).
Is there anyother table or tCode to find the work items in user's inbox'
Thanks
Siva.HI experts!!
The issue is solved!!!
The another user who is not with the company currenlty had maintained the user who had problem as substitue!!!.. we had to remove the substitute to solve the problem.
Thanks
Siva. -
Delete credit memo work item created in VA01 when the user change value
Hi,
In T.code VA01 Credit memo request is creating, this document will automatically create work item. Based on Net value in credit memo request, the work item should go for 5 levels of approval. After 1st person is approved, the workflow initiator realized that the net value in created Credit Memo request is wrong; he is going to VA02 and correcting the net value. Again we have to create new work item for this and delete the already created work item. Client has clearly mentioned when ever there is change in 5 critical fields in VA02 then only create fresh work item otherwise no need to create SECOND TIME work item. Net value is one of the critical field in the list.
How to track already created credit memo request and how to delete the previously created work item. What is the feasibility of this requirement and how to handle this situation?
Regards
VijayHi,
Just put a Fork and put 1 out of 2 outcomes and in the first alternative, you put your witem that goes to user B. In the 2nd alternative, put a Wait for event "CHANGED". And after this, put a process control step with "Set workitems to Obsolete" or "Cancel workflow" etc., depending on your requirement.
Pl note that this will only take out old witems, but you need to send a new witem for which you need to trigger another instance of the workflow as well. pl put CHANGED event also as one of the triggering events and use condition editor to restrict the fields that triggers the workflow.
Also, look into the IMG config of the following path. This might be a fitting solution.
In SPRO, go to Financial Accounting (New)---> Financial Accounting Global settings(New) -
>Tools --->Workflow ---> Workflow for Document Parking -->Reset Release Approvals(Customers).
Here, you can list down the fields, the workflow should restart. But, then you need to give the workflow details etc., in the relevant config settings.
We have used this in restarting workflows for General Ledger(GL) documents' workflow when some important fields are changed.
For this config settings, look into the following help link.
http://help.sap.com/erp2005_ehp_02/helpdata/en/01/a9cdd8455711d182b40000e829fbfe/frameset.htm
Hope this helps.
venu -
My Wireless mac keypad has stopped properly working. The keys sometime do not correspond to the result, or a a simultaneous duel actio, for example when the delete button is pressed the. Ursor does go backwards, but it also turns the sound up. The keyboard is properly connected to the computer, and the battery life is up in the nineties.
Help please !!!!Hi, thankyou for your response. Can I just confirm that you mean turning the computer on and off again, or re-booting the whole system. If it is the first I have already turned the system on and off, with no luck.
Regards -
Log Entries not sorted in Problem work items
We have noticed that the Log Entries in all Problem work items appear to be randomly sorted. You can manually sort them by clicking on the column headers.
Log entries for Service Request and Incident work items are sorted by Created date as default which I guess is how most people would want them. Has anyone else noticed this or can this be configured locally somehow?
ThanksHi,
I checked my lab, and saw that only incident's log entries is sorted by date:
Log entries for SR and Problem are not sorted:
And this is hard-coded, if you want to sort them by date, we should click Date Time.
Regards,
Yan Li
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected]
Maybe you are looking for
-
How to call/show page(s) from different application
Hi All, I'm working on couple of applications and some reports (about 30) are used in all applications. I need your advice on doing this efficiently. Is it possible to 1) Create a separate application with all the reports. 2) Create a blank page with
-
Transporter No and Transporter Name
Hi , I want to get field Transporter No and Transporter Name it was maintained in sale order (Partner Tab).If it is maintained in Text means i can use 'READ_TEXT' function but it was maintained in (Partner Tab).Can you help me which table contain tra
-
Access wwv_flow_files objects through GUI
Can the files from wwv_flow_files be accessed through the GUI ?
-
Help needed - Laptop won't work without adapter
I bought my MacBook exactly one month back. Today, while i was working on my laptop away from my desk, the laptop suddenly went off. The battery was at 78% and there was no reason for it to go off. Now, ever since that happened, my computer doesn't s
-
Problème avec FireWorks CS4 et snow leopard
Bonjour, bon voilà j'ai un problème avec fireworks et snow leopard: le program ne démarrer même pas, de que je le lance j'ai un message "Can not run. Un erreur est survenu". J'ai fait la mise à jour à la version 10.0.3.11 (la dernière), j'ai fait la