cancel
Showing results for 
Search instead for 
Did you mean: 

Workflow work items not generating

Former Member
0 Kudos

Hello Team,

I am trying to create PoC for my client and I am new to Workflow but extensively worked in ABAP.

Actually in our system the existing workflows are running fine.

I have created Standard task with the below details

In Basic tab i have given

Object Type          BUS2034

Method               DISPLAY

Triggering event I have given like

BUS2034CHANGEDCustomer Contract Changed
BUS2034CREATEDCustomer Contract generated

Terminating event

BUS2034DELETEDCustomer Contract Deleted

I have done the binding & activated event in triggering event tab.

And I have checked in SWE2, so 2 new entries are added

I tried to test using SWUE but work item not created

I tried to changed Sales contract using VA42 but work items not created

I have tried from custom program

CALL FUNCTION 'SWE_EVENT_CREATE'

   EXPORTING

     objtype                       = 'BUS2034'

     objkey                        = '0040014284'

     EVENT                      = 'CHANGED'

But not created work item(have checked in SWI1 and SWIA)


SWU3 configuration are okay since the existing workflows are running in Development system.


How to find the rootcause why the work item not created(I agree there is no agent but work item should be created as my knowledge)


How to test the sequence(what are the tcodes) which place its failing.


I have to proceed further steps in PoC if the above problem resolved.


Regards,

Vadamalai A

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Vadamalai,

You cannot create a dialog task individual i guess( May be i am wrong but never seen one ). For POC purpose you need to create a workflow ( PFTC ) and then create a task ( Standard Dialog ) inside it. Now the triggering events will be in your workflow triggering event. Then only you will be able to test the same via SWUE or other triggering method. Please note that via workflow only , you specify the correct agent it should route to and other things.

Do let me know if still its not clear.

Thanks

Rakesh

Former Member
0 Kudos

Yes Rakesh,

I agree, do you mean to say Standard task(single) will not trigger work item if triggering event are given in task?

As my knowledge it should work. Please clarify me..I dont want workflow template for this scenario.

Regards,

Vadamalai A

Former Member
0 Kudos

Yes , For workitems , standard single task will not work, It should be supported by workflow. There are many things associated with this , like agent assignment ( who will get the workitem ) , decisions etc. If you can tell me what is your exact requirement , i can find out a way without creating template.

Thanks

Rakesh

Former Member
0 Kudos

We have to create work item(SBWP) whenever a Sales contract gets created/changed. If user executed the work item then the sales contract will be displayed. Based on this I may get different scenario to implement.

Also advise me what are the ways we can achieve this.

Regards,

Vadamalai A

Former Member
0 Kudos

Hi ,

Going with your words  "executed the work item then the sales contract will be displayed. Based on this I may get different scenario to implement." , you need to take the decision on the basis of workitem execution , so how you are planning to take that , because workitem will only display and since it is not the workflow , workitem will be over as soon as you click on the same and you wont be able to capture anything ( no decision etc ). Is that right ?

Thanks

Rakesh

Former Member
0 Kudos

Also , Please try to check in SWIA whether workitem is showing there or not.

Former Member
0 Kudos

No Work items I have checked in SWIA and SWI1

Former Member
0 Kudos

Hi ,

I just tested in my system. With a single task also you can have this method. Problem is , you need to assign the agent from menus and then workitem will come to your agents inbox. See the screen shots.

Also , i tried tro execute and its working.

Now you need to check SWEL for event triggered and then SWIA for workitem generation. Please see SWEL with data and time range so that you can narrow down the search.

Thanks

Rakesh

Former Member
0 Kudos

I have tried to activate trace using SWELS but no trace collected

I have debugged in my FM  SWE_EVENT_CREATE from my custom program and its returning

EVENT_ID                                  00000000000000000001
RECEIVER_COUNT                                  00000000000000000001
Former Member
0 Kudos

Hi,

That means its generating the event. But strange the event id is only 1 ? I guess something is not correct there., Can you check SWUE , because that should tell you upfront whether event has been triggered or not and any event received received it or not with TASK id.

Thanks

Rakesh

anjan_paul
Active Contributor
0 Kudos

Hi,

   Did Commit Work triggered after    SWE_EVENT_CREATE, please check it

Former Member
0 Kudos

Hi Anjan,

Do we need explicit commit work is required when we call from custom program? anyhow then event should be triggered when sales contract gets changed(tried and event is called after commit work but somewhere its failing).

My query is when event is triggered this call may not reach till event linkage. How to identify the rootcause.

Regards,

Vadamalai A

Former Member
0 Kudos

Hi ,

Yes we do need a explicit commit when calling from custom program.

Thanks

Rakesh

Answers (2)

Answers (2)

Former Member
0 Kudos

Hello All,

I am closing this topic.

I have issue with user WF-BATCH which is stopping with creation of work items.

Thanks for your support.

Regards,

Vadamalai A

Former Member
0 Kudos

What is the issue with WF-BATCH and how did you solved the issue?

Former Member
0 Kudos

Hi Vijay,

WF-BATCH user was locked, fixed by BASIS team.

Thanks.

Former Member
0 Kudos

Hi There,

Please close the thread by marking the correct answer. Lets have one less open thread where we have the answer.

Thanks

Rakesh

pokrakam
Active Contributor
0 Kudos

Hello,

If nothing is appearing in the event log, then there event is not being raised. What does SWEL say when you create the event manually via SWUE?

Former Member
0 Kudos

Hello Mike,

I have activated trace and tried to triggered event(SWUE) manually but still its not captured in SWEL. Please find screenshot below.

How to identify where is the issue.

Please help me.

Regards,

Vadamalai A

Former Member

Hi Vadamalai,

As the message in your screenshot is saying one receiver found. Now click on the third button on application toolbar "Event Receiver" and see whether you task number is on the receiver. If yes , then event has been triggered and your task received it. Now you need to go to SWIA and see the workitem. It must be there , may be in error or something but it has to be there as it has been triggered. Also for SWEL , you can check whether any other events are coming or not , may be your trace is activated but with filter , so you need to check and activate the trace for all events.

Please check and let me know.

Thanks

Rakesh