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 not working

Former Member
0 Kudos

When a person leaves the company or goes on leave-of-absence, the BUS1065-COMPANYLEFT event is raised, either by our own code or by SAP-delivered functions. In transaction SWETYPV, we have COMPANYLEFT linked to a receiver function. I can go into the event trace SWEL and see BUS1065-COMPANYLEFT raised for both terminations and LOA's, and the trace action says "Event put in queue". Then for the termination action, the receiver function picks up the processing. But in the LOA action, nothing happens after "Event put in queue". This is set up only once in SWETYPV with one record for COMPANYLEFT with this receiver function. Can you give me any reasons why the receiver function is not receiving the event in the event queue for LOA's? There are no system dumps occurring. Since I don't know what exactly transpires between putting something in the event queue and the receiver function taking over, I don't know where to look. I'm not seeing anything in SWEQADM, but I'm not very familiar with it.

Janice Ishee

2 REPLIES 2

Former Member
0 Kudos

I modified my function linked through T779X to just set event='COMPANYLEFT' rather than SWE_EVENT_CREATE 'COMPANYLEFT'. This is what the function HR_EVENT_RULES_P0000 does. It is now working.

0 Kudos

Hi,

Please check whether entries are there for BUS1065 in SWEHR1 and SWEHR2. If there are no entries maintain. If the entries are there check the receiving function module.

Regards,

Ramu N.