Please note, this is a STATIC archive of website www.tutorialspoint.com from 11 May 2019, cach3.com does not collect or store any user information, there is no "phishing" involved.
Tutorialspoint

In SAP Workflow, Binding the receiver dynamically

I have created a SAP Workflow that sends an email when a Product Order is raised. Now I want to send an email to initiator’s manager i.e. binding the receiver dynamically in workflow.

I am new to SAP Workflow and trying to learn. Any help will be appreciated.


1 Answer
SAP Expert

To bind receiver dynamically in Workflow, you have to write a Function Module that will provide you manager name of initiator. This FM should be put in public class to be used in Workflow. The provided value will be saved in any table of HR module.

Then you need to call this method from Workflow template. To set binding, you need to pass a value in _WF_INITIATOR.

_WF_Initiator                    WFSYST-INITIATOR

Using _WF_Initiator        Initiator of the workflow (user name).

Here “user name” is a fourteen-character field in the structure US<Name>.

When a workflow is started using an event, this container element does not initially have a value. However, the container element can be assigned a value via the binding from the event container of the triggering event. For this, the binding from the container element _Evt_Creator in the event container to the container element _WF_Initiator in the workflow container must be defined.

Advertisements

We use cookies to provide and improve our services. By using our site, you consent to our Cookies Policy.