cancel
Showing results for 
Search instead for 
Did you mean: 

Workitem not getting deleted from SAP inbox

Former Member
0 Kudos

Hi ,

I have a scenario in workflows , in which when a user creates a timesheet , a mail goes to approver , when the timesheet is approved the mail should get automatically deleted .

We have created a standard task for this purpose ( a copy of TS31000007) .

The business Object is CATS , terminating event is COMPLETED , method is APPROVE . There is no triggereing event a FM is being used .

The standard task is copied in two test environments , from first system the mail gets automatically deleted , but from the second one it is not getting deleted .

Also the workflow log in SWEL doesnt show any rows in the second system .

In the first system , there are 4 steps in the workflow log :

Dialog work item created

Background process started

terminating event received

work item processing complete

Though the workitem has deleted , but the status of the workflow is in Progress

while the second has only two steps in workflow log

Dialog work item created

Background process started

and the workflow status is "Ready"

I guess the terminating event in the second case is not getting received .

but ,I have checked sweinst and found that the instance linkage is activated .

Also when the workitem is approved , it does not get delete , and if we try to re execute it again , the gives a msg " NO data found "

Can someone help me to find why the mail is stuck in the inbox and correct this problem.

Thanks

Sheetal

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi

Most likely is a dump. Check ST22 for any dumps, SM21 if no dumps and analyse further.

Regards

Gareth

Former Member
0 Kudos

Hi ,

There is no dump in ST22.

Also , i found that in the event log , the TRFC under the object type list .

Which implies that there is no trfc , and terminating event is not reached .

CAn u plzz help me to find why there is no TRFC

have i missed something in config

Thanks

Sheetal

Former Member
0 Kudos

hey I have checked in Sswu3 , and found that the RFc destination is not configured .

I think that this is the problem

do u know hoe to configure rfc dest via SWu3

Former Member
0 Kudos

It will be automatically configured once you press execute on SWU3 transaction.

or u can create an RFC destination with name WORKFLOW_LOCAL_XXX where XXX is ur client number. this is done in Tcode SM59 . Usually the config is maintain thru SWU3 only and by someone who has SAP_ALL auth coz it gives WF-BATCH SAP_ALL auth which enables WF to run smoothly.

Hope this helped u !

Regards,

Anuj Sethi

Answers (1)

Answers (1)

Former Member
0 Kudos

Unless and until the Terminating event is triggered the workitem will not disappear. Check how the Event is getting triggered in other system. I feel it is getting triggered by standard means. Check whether there is proper settings in SWEHR3.

It means that you are not doing any special configuration for event triggering or coding. Please check what is missing in the system you are having problem. Check SWU3 setting is fine or not.

<b>Please close thread when issue resolved</b>

Thanks

Arghadip

Message was edited by:

Arghadip Kar

Former Member
0 Kudos

Hi Arghadip ,

I have checked SWEHR3. , it is blank in both the systems .

As mentioned in previous mails ,

what do u mean byterminating event is triggering by standard means?

Sheetal