on 10-20-2008 7:33 PM
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.
Can anyone please confirm this
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
Thanks Margaret! It worked for him..
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Its most probably in SWEHR3.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.