cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Workflow work items not generating

Former Member
0 Likes
5,572

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

View Entire Topic
Former Member
0 Likes

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 Likes

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 Likes

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 Likes

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 Likes

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 Likes

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

Former Member
0 Likes

No Work items I have checked in SWIA and SWI1

Former Member
0 Likes

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 Likes

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 Likes

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 Likes

Hi,

   Did Commit Work triggered after    SWE_EVENT_CREATE, please check it

Former Member
0 Likes

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 Likes

Hi ,

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

Thanks

Rakesh