Skip to Content

Search which workflow initiate from custom infotype

Dear Forum fellows,

I just got stuck search so many thing but couldn't find the solution.

Requirement: when we update a infotype 9001 workflow initiate send notification email HR Admin. workflow is very simple just sending email (WS90000xxx)

Steps i perform

1 I execute a tcode SWI1 to check in background which workflow start --- no result

2 Go to souce code of 9001 and try to find function module which start workflow 'SAP_WAPI_Startxxx' --- not found

3 I try to check the tcode SWEHR3 but its empty.

i'll be glad if you plz tell me where to search more.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

6 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Sep 01, 2010 at 12:14 PM

    HI,

    Switch on event trace by T code SWELS and then update IT 9001.

    Now check in T code SWEL if you find any entry for event that is triggered on Update.If you find an entry for corresponding IT, check 'name of reciever type'. This would give you the WF template being used for sending mail.If you are not able to find any entry, chances are mail is being sent through FM using USer exit or BADI.

    Regards,

    Sangvir Singh

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Sep 01, 2010 at 12:44 PM

    Hi,

    Are you sure it is starting from a workflow?

    Ask your local HR consultant if any dynamic actions exist for this infotype (search in SPRO for dynamic actions in Personnel administration). Or it might even be started from the custom screen logic.

    Kind regards, Rob Dielemans

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 01, 2010 at 02:17 PM

    If you can't find anything in SWIA or SWI1 then I'm not sure it is workflow that sent the mail. E-mail can be sent using some direct function modules instead of workflow so you might want to check that.

    To check who actually created the e-mail message, go to transaction SCOT. Then, display send orders (menu option: Utilities -> Overview of send orders). In there, find the specific e-mail you are looking for (you might have to use "Send Status" tab based on the status of the e-mail). Then, when you double-click the entry, a pop-up will be displayed giving you more details about that specific e-mail message. If the user name is WF-BATCH then it was generated through workflow. If it was a different user name, then, it might have been generated in a user exit or a BADI using a send-mail function module.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Sep 04, 2010 at 08:09 AM

    Dear Frinends,

    Thanks Sangvir Singh, Rob & Abdullah Azzouni for your time n comments.

    as per your instructions i found that workflow fire properly. but still i couldent find the place where HR link with this workflow i mean to say "how it fire/initiate workflow ?" .

    Regards,

    Farrukh

    Add a comment
    10|10000 characters needed characters exceeded

    • In HR events are triggered when a change occurs on an infotype.

      SAP uses function modules to determine what event should get triggered, for instance the event HIRED should become REHIRED when this person used to work for the company.

      In SWEHR1 and SWEH2 you'll find the function modules provided by SAP for changes on infotypes. You can define your own in transaction SWEHR3.

      Is suggest you start looking there to see if this is where the event comes from.

      This kind of stuff should really be well documented.

      Kind regards, Rob Dielemans

  • Posted on Oct 25, 2010 at 09:43 AM

    issue was solved via SWI1 its hard to find WF in log but its there..

    Thanks friends for you support 😊

    Regards,

    Farrukh

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Oct 25, 2010 at 09:45 AM

    thanks friends

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.