Application Development and Automation 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: 
Read only

How do I make events trigger?

Former Member
0 Likes
1,791

Hi,

I was trying to see which type of events do trigger when I change HR data. For this I have followed the following steps:

1. SWELS (TCode) --> Switch on

2. Change any HR data in PA30 (Tcode)

3. SWELS (Tcode) --> Switch off

4. SWEL --> Run the program

I am able to see only two events triggered. Trace ON, Trace OFF. I am currently working on ECC 5.0 system.

Can anybody help me out,

Regards,

Suraj

6 REPLIES 6
Read only

Former Member
0 Likes
1,354

Could it be because of absence of settings in SWU3?

Read only

Former Member
0 Likes
1,354

Hello,

you have to system debugging.

/HS .

I hope this will help you.

Reward if helps.

Thanks,

krishnakumar

Read only

Former Member
0 Likes
1,354

Hey,

SWU3 configuration is required for workflows to function correctly.

Check if there is any workflow related configuration for PA30 which needs to be maintained.

If you cannot see any events in SWEL then the application isn't triggering any events. You need to search an exit where you could add functions for triggering events.

Other ways for triggering events are using change documents.

-Kiran

Read only

Former Member
0 Likes
1,354

Hi Suraj,

There are three transactions to setup event triggers for changes in HR Master Data.

SWEHR1 - Linkage: Object Type to HR Infotype

SWEHR2 - Event: Infotype Operation (SAP)

SWEHR3 - Event: Infotype Operation (Customer)

Transaction SWEHR1 is used to link the HR Object/Infotype/Subtype to a Workflow BOR Object. There should already be alot of these setup.

Then transactions SWEHR2 & SWEHR3 are used to links the HR Object/Infotype/Subtype and the action(Insert, Update, Delete ....) to an event to be raised. There are some already pre-defined events being raised and you can view these in SWEHR2. Then you can also add entries in SWEHR3 to raise additional events that are not pre-setup by SAP.

Hope this helps,

Jerrod

Read only

0 Likes
1,354

Hi Jerrod,

Thanks for your helpful answer.

I have changed address data of person in PA30 and observed that ADRESSEMP(obj type), CHANGED (event) is triggered in our old 4.7 system without any initial settings. Assume that SAP has provided standard functionality.

But it is not the same with ECC 5.0 system. I have done the same, but failed to observe any events to be triggered.

My basic doubt is 'As these are standard events which belong to standard Business objects' SAP might have implemented it. May be from ECC 5.0 version onwards we need additional settings to start with. If I am not wrong, and you are aware of it, kindly help.

For your information, data in SWEHR2 is intact. Apart from these transactions, should we have any additional settings. If you have anychecklist, kindly send it.

Thanks & Regards,

Suraj

Read only

Former Member
0 Likes
1,354

I chage the personal data Use PA30.And set break-point in funcion HR_EVENT_RULES_PA0006.And stop at this point.I use the system ECC 6.0. That can stop at the function. Maybe your system will do.