Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8594

Re: User mail Id determination using Rule

$
0
0

Hi Salil

 

Sorry... I should have mentioned more clearly....using the same code means the logic.....however you have to adjust the signature.

 

So the chain would look like this:

 

1) Workflow calls a task from the activity step

2) In the binding, WF passes the agent id to task and receives the email ID from task

3) The Task calls your custom BO/Class method and passes necessary data / receives necessary data from the method

4) The method calls the revised FM (signature has the agent id as importing and email as the exporting parameters).......remove macro calls from the method and use the imported parameter to get the email.

 

 

If you want to avoid coding, here is an alternate way:

 

1) Send the email to 'Org Object'and specify the user ID (variable containing the user ID)

2) SO16 -> mail system -> select 'Send to User's Home Address'

3) Ensure that  user email is maintained in User Master(SU01) or HR infotype 105  (if exists)

4) When  workflow will send the email to Org Object -> user....it will also send to email address of the user....will pickup based on settings from SO16

Please note SO16 is system wide.

 

regards,

Modak


Viewing all articles
Browse latest Browse all 8594

Trending Articles