Skip to Content
avatar image
Former Member

Where to include custo object types in workflow events?

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.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • Best Answer
    avatar image
    Former Member
    Oct 22, 2008 at 05:41 PM

    Can anyone please confirm this

    Add comment
    10|10000 characters needed characters exceeded

    • 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

  • avatar image
    Former Member
    Oct 20, 2008 at 07:09 PM

    Its most probably in SWEHR3.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 22, 2008 at 06:36 PM

    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.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 27, 2008 at 06:03 PM

    Thanks Margaret! It worked for him..

    Add comment
    10|10000 characters needed characters exceeded