cancel
Showing results for 
Search instead for 
Did you mean: 

No event triggered

Former Member
0 Kudos

Dear all,

I'm trying to set up a workflow in TEM (HR). I want to catch the event when a business event is modified or created. For that I use the business object PDOTYPE_E. Whenever I create a business event or modify an existing one, no event is triggered (event trace SWEL, trace is on). When I manually cerate the event with SWUE, I get the trace and the task I created gets started. Type Linkage (SWETYPV) is correctly configured an enabled (PDOTYPE_E - event - receiver).

Why does the event not get triggered when I create or modify a business event? Is it the wrong object (PDOTYPE_E)? Has it something to do with change documents not being set up?

For workflow setup, I only used SWU3 and performed Automatic Workflow Customizing. Prefix Numbers etc is ok. As I said, when I manually create the event via SWUE, everything works as planned.

Thank you in advance for any help or suggestion,

Arlindo

Accepted Solutions (0)

Answers (7)

Answers (7)

Former Member
0 Kudos

Hi,

Thank you for all your efforts.

I tried with IT 1000 in SWEHR2, with no success either. I also added these entries in SWEHR3 (table T779X). Creation works fine though (event is triggered). No luck for now with the MODIFIED event (at least not for resources changes. Changes regarding IT 1000 are triggered, like when STEXT is changed, see my 2nd post above)

Thank you,

Arlindo

Former Member
0 Kudos

Hello,

I've already done that in SWEHR2. I got the following entry:

OT: E

IT: 1001

Updat: UPD

Obj. tye : PDOTYPE_E

Event: MODIFIED

I haven't filled out a subtype. Is this necessary or is it valid for all subtypes if left blank? As it is for the moment, if I change a resource in a business event, no event is triggered. Clearly Infotype 1001 is involved here.

Arlindo

imthiaz_ahmed
Active Contributor
0 Kudos

Try with Itype 1000 and see if triggers.

Regards, IA

surjith_kumar
Active Contributor
0 Kudos

Hi,

Goto SWEHR2, Map your Business Object and Event.

Regards,

Surjith

Former Member
0 Kudos

Hello Chidanand,

Thank you for your answer. I checked SWETYPV but all the linkages were ok (checkbox activated). I really think my problem is about the above mentioned relations which are missing in the tables. I will try to investigate the possibility of triggering myself the event via SWE_EVENT_CREATE as Mr. Bhamidipati suggested

Arlindo

former_member598013
Active Contributor
0 Kudos

Hi Arlindo,

SWU3-->is used to set the Prefix the Workflow Number.

1. Defining the Start Events for the Workflow

SWETYPV( Event Linkages) u2013 At times when some error occurs with the workflow, the linkage activated checkbox is unchecked automatically by the system. This would have to be checked manually in the production system itself.

Thanks,

Chidanand

Former Member
0 Kudos

Thank you for your reply. I will look into that and give feedback.

However I partially solved my problem by searching the whole forums. I just didn't know what to look for unil I stumbled on messages referring to tables T779X and T777IBO and Tcodes SWEHR1, SWEHR2, SWEHR3.

I added an entry in T779X (E, 1000, INS, PDOTYPE_E, CREATED) and now the event CREATED is correctly triggered when a new Business Event is created.

I tried to add entries for when an Business Event is changed, but I only partly succeeded e.g.

- when a new day is added to the schedule -> event MODIFIED ok

- when the field STEXT is changed -> event MODIFIED ok

- but when a new resource is added or another removed, I get nothing (although I have added entries for infotype 1001 in T779X)

- other changes are also unnotified

I need to intercept every possible change in order to trigger the event 'MODIFIED'. Can somebody give me a hint on which entries I have to make in T779X an T777IBO? I tried also with objet PDRELA_023 with no success. I think I'm missing the correct entries.

Any ideas?

Thank you very much

Arlindo

bpawanchand
Active Contributor
0 Kudos
I want to catch the event when a business event 
 is modified or created

What you can do is for t-code OOET the program is SAPLRHV6 go to this function pool and under the USER DEFINED INCLUDES section we have a list of includes check which of the include is correct and from that include call function module SWE_EVENT_CREATE for this funtion module you have to pass 3 values 1. BO name 2. BO Key I mean Key attributes of the BO 3.The Event name in your case CREATED or MODIFIED.

I hope this might fix your problem