HR Event - Position Transfer from Org Unit - RESOLVED

Keohan, Susan keohan at ll.mit.edu
Wed Apr 16 10:27:36 EDT 2008


Hi Mike,



Another WFer (Thank you Rob!) clued me in to the error of my ways.  I restored the SWEHR2 entries to where they were supposed to be (of course, not letting Basis know I had too much access!) and corrected some entries in SWEHR3.  Added a function to raise the event, instead of trying to raise the event directly.  Then, I set a breakpoint in my FM, and after I perform the PO13 creation of the new relationship - bing! - I am dropped into my FM and can see that the event will get raised (with some minor corrections to the function).

Anyhow, for those who care, table SWEHR3 now looks like:



[cid:image001.png at 01C89FAC.2715CAB0]



So, I now get the event specified in my custom FM, raised by SAP_WAPI_EVENT_CREATE_EVENT, and have a little more logic to put in to build the event container so that it reflects the delimited relationship, instead of the new one.  For some reason, using UPD and DEL did not bring me any joy, so I'll just work backwards from there.



Best regards,

Sue



----

Susan R. Keohan

SAP Workflow Specialist

MIT Lincoln Laboratory

244 Wood Street, LI-200

Lexington, MA.  02420

Ph:   781-981-3561

Fax: 781-981-1607

keohan at LL.MIT.EDU





-----Original Message-----
From: sap-wug-bounces at mit.edu [mailto:sap-wug-bounces at mit.edu] On Behalf Of Mike Pokraka
Sent: Wednesday, April 16, 2008 5:35 AM
To: SAP Workflow Users' Group
Subject: Re: HR Event - Position Transfer from Org Unit



Hi Sue,



One difference between SWEHR2 and SWEHR3 is that you cannot

forward-navigate to the function module by doubleclicking on it in SWEHR3.

This probably doesn't help your cause but I thought I'd mention it anyway.



At my present site I have too much auth to verify this, but I think at

other sites I could not create new entries in SWEHR2. I think they're

basically the same, but one is for SAP and one for us. I modify SW...2

when changing SAP-delivered setup and use SW...3 to create new

object/event combos.



Other than that you've pretty much got it spot on. The difference between

event and FM is that an event will always be raised. If the process code

is not enough to identify what happened, a FM allows you to put some more

conditions around it (e.g. by comparing before/after images to determine

what changed).



Cheers,

Mike





On Tue, April 15, 2008 4:07 pm, Keohan, Susan wrote:

> Hi WFers,

>

> Really at wit's end here (which is not too far to go).  I've read all the

> posts related to raising events using SWEHR1, SWEHR2, and SWEHR3...

>

> R/3 4.6c...

>

> I need to raise an event, preferably PDOTYPE_SH POSTRANSFER, when a

> position is transferred out of one org unit into another.  Our HR friends

> want us to do this based on the creation of a new relationship A003

> between position and org, or the delimiting of previous relationship.

> They are not comfortable with using HR Actions to raise the event.

>

> Entry in SWEHR1:  Relationship between Position and object type PDOTYPE_SH

> [cid:image001.png at 01C89EE7.F110C060]

>

> Entry in SWEHR2: (HR-CA Event Linkage) - I have a custom FM in the FM

> field which calls SAP_WAPI_CREATE_EVENT to raise the event.

>

>

> [cid:image002.png at 01C89EE7.F110C060]

>

>

> Entry in SWEHR3- Event Linkage for Customer -

>

> [cid:image003.png at 01C89EE8.E88794E0]

>

>

>

> 1)      Can it be done ? Raise an event for PDOTYPE_SH POSTRANSFER based

> on a PO13 (copy relationship, enter new begin date and org, delimit old

> org relationship)?

>

> 2)      Do I need to use a custom FM, or is it enough to specify the EVENT

> in SWEHR2/SWEHR3... The entries seem to be mutually exclusive.

>

> 3)      Do you need to wait for a day or should the event get raised (if

> ever) immediately, regardless of start date on new org assignment ?

>

> 4)      I've tried debugging through, but no SWE_EVENT_CREATE,

> HR_EVENT_CREATE, SAP_WAPI_CREATE_EVENT gets called.

>

> 5)      Are the entries in SWEHR2 and SWEHR3 redundant ?

>

> 6)      Any other tips ?

>

>

>

> Thanks for any help on this issue.

>

> Sue

> ----

> Susan R. Keohan

> SAP Workflow Specialist

> MIT Lincoln Laboratory

> 244 Wood Street, LI-200

> Lexington, MA.  02420

> Ph:   781-981-3561

> Fax: 781-981-1607

> keohan at LL.MIT.EDU

>

> _______________________________________________

> SAP-WUG mailing list

> SAP-WUG at mit.edu

> http://mailman.mit.edu/mailman/listinfo/sap-wug

>





_______________________________________________

SAP-WUG mailing list

SAP-WUG at mit.edu

http://mailman.mit.edu/mailman/listinfo/sap-wug
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.mit.edu/pipermail/sap-wug/attachments/20080416/29b19bf3/attachment.htm
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 37706 bytes
Desc: image001.png
Url : http://mailman.mit.edu/pipermail/sap-wug/attachments/20080416/29b19bf3/attachment.png


More information about the SAP-WUG mailing list