Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Workflow Event enabling and Linkage

Former Member
0 Kudos

Hi,

I need to enable the workflow <b>001000089, Abbr. PDExpiredQua</b> to monitor the qualifications, the involved Business Object being BUS7019.

I used TCODE <b>SWETYPV</b> to enable the link. I created a new entry linking the event BUS7019-CREATEDWITHVALIDTY to this WORKFLOW.

This is all as specified in the IMG.

But, when I create a new entry for PA0024 using PA30, I dont see any workflow being created.

I verified the entries in T779W for the HR UPDATE to EVENT linkage. There are no entries corresponding to BUS7019. Is this the issue or should I create the record in a different fashon?

I also tried creating an entry in T779X using the TCODE SWEHR3 Record " OTYPE:Q, OPERATION: INS, ACTIVITY: PDSP, OBJECT: BUS7019, EVENT: CREAEDWITHVAIDITY" . But now, the PA30 goes to a dump.

Please suggest.

Thanks,

Suryakiran D.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi!

You can check event trace for business object involved after PA30 call. For this:

- switch on event trace for BUS7019 with transaction SWELS using creator object type as restriction for trace

- execute PA30

- view event trace using transaction SWEL

Hope it clears problem.

Regards,

Maxim.

5 REPLIES 5

Former Member
0 Kudos

Hi!

You can check event trace for business object involved after PA30 call. For this:

- switch on event trace for BUS7019 with transaction SWELS using creator object type as restriction for trace

- execute PA30

- view event trace using transaction SWEL

Hope it clears problem.

Regards,

Maxim.

0 Kudos

The SWEL transaction is not able to show anything.

Even when I activated the trace for BUS7030, it showed the same thing which reallly made no meaning. I am able to trigger the events related to BUS7030.

Please suggest.

Thanks,

Suryakiran D.

0 Kudos

Hi Suryakiran,

from sap help (http://help.sap.com/saphelp_erp2004/helpdata/en/c5/e4aec8453d11d189430000e829fbbd/frameset.htm):

To create events when HR master records change, carry out the following IMG activities:

· Activate an event linkage

· Define event types for customer-specific business objects

· Redefine event types for SAP business objects

These IMG activities can be found in the SAP Reference IMG under Personnel Management ® Global Settings in Personnel Management ® Business Workflow Events.

Please take a look at transactions SWEHR1, SWEHR2 and SWEHR3. I think you are missing a link between the infotype being created and the event getting launched. The SWETYPV links only the event and the workflow.

Best regards,

Mikko

0 Kudos

Hi,

I checked the three transactions SWEHR1, SWEHR2 and SWEHR3.

SWEHR1 has an entry with BUS7019 for Qualification.

SWEHR2 doens't have an entry for BUS7019.

SWEHR1 & SWEHR2 have entries for BUS7030.

SWEHR3 has no entries at all.

But this data is the same in all the systems.

I checked with data of some other customers too.

Since this event is a standard one, should we need any extra config. I suppose it should work like any other standard event.

If there is any extra config, it would have been mentioned atleast in the documentation of this workflow.

But its not.

0 Kudos

Hi,

have you verified that the events are launched in the other systems as well?

There could be some occasions (not that seldom) when some events haven't been enabled in the HR module.

I'm not that much of an expert when it comes to the HR event configs but I think here's what you could at least try:

1. create a linkage between infotype 24 and the business object BUS7019 for the person (obj type P) in SWEHR1

2. in SWEHR3, create the appropriate infotype operation to business object event links you need (e.g. update operation INS to obj.type BUS7019-createdwithvalidity). Take a look at SWEHR2 for an example case.

Hope this helps,

Mikko