cancel
Showing results for 
Search instead for 
Did you mean: 

Search which workflow initiate from custom infotype

0 Kudos

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.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

Answers (5)

Answers (5)

0 Kudos

thanks friends

0 Kudos

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

Thanks friends for you support

Regards,

Farrukh

0 Kudos

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

former_member186746
Active Contributor
0 Kudos

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

Former Member
0 Kudos

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.

former_member186746
Active Contributor
0 Kudos

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