I have created one function module for generating mail.
My requ: Whenever user create new support message mail will send to 2 user id.
i have found that Business object BUS2000116. How can i include my function in to this. How can i write or how can i design workflow.
That function is working fine in se37.
Create you own Business Object. (e.g: Method SENDMAIL - ZBUS2000116 ) or enhance the BUS2000116. In your method call your custome Function module. Also have import parameters to get the mail id for the method SENDMAIL.
and a background Step was defined in the Workflow template, which uses a task defined using the BOR Object - ZBUS2000116 - SENDMAIL.
Hope this will solve your problem.
<i>*Reward each useful answer</i>