cancel
Showing results for 
Search instead for 
Did you mean: 

Where to include custo object types in workflow events?

Former Member
0 Kudos

Hi All,

One of my friend is working on HR related Workflow. He has a question about where to include the custom change document infotypes in workflow events.

To make it clear, he says there are three transactions swehr1, swehr2 and swehr3. Now, if he wants to include a custom object (Z object) which transaction should he use?

Please reply ASAP.

Regards

Swapna.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Can anyone please confirm this

mh97
Contributor
0 Kudos

Yes, you use swehr1 to link the infotype to the object type. Then use swehr3 to create the event linkage to your function module or object type event.

I just did this with an e-recruiting project and it worked fine. For example:

swehr1 entry:


NB  Requisition	5131  Persons Responsible    ZERC_REQUI	Job Requisition

swehr3 entry:


NB  Requisition	5131  Persons Responsible   INS	0	ZERC_REQUI             Z_ON_MEMBER_ADD

This accomplishes the following: when a record is inserted for infotype 5131, the function module Z_ON_MEMBER_ADD runs. That function module decides if or which event should be raised. Alternatively I could have entered an event for the ZERC_REQUI object type, but then the event will always be raised on a 5131 record insertion, and for my application I didn't want that.

I hope this example is helpful.

~Margaret

Answers (3)

Answers (3)

Former Member
0 Kudos

Thanks Margaret! It worked for him..

mh97
Contributor
0 Kudos

Great, Swapna! Glad I could help.

Former Member
0 Kudos

Margaret,

Thanks for your example. Like I saiid, it sone of my friends that needs to validate this. I will let you kow once he has tried your suggestion.

Swapna.

Former Member
0 Kudos

Its most probably in SWEHR3.