Skip to Content
Author's profile photo Abhijit Mandal

Dynamic agent assignment to determine recipients in Sap Workflow.

/wp-content/uploads/2013/02/profile_image_display_188602.png

Description: The purpose of the document is to choose agent dynamically who will determine the recipients of the next steps workitem . Lets say, we will include a step of display material in our workflow but before that, we will inculde a step which will allow to choose agent dynamically and that agent will be receiving the ‘Display Material’ step as a work item in dynamically choosen agent’s SAP Inbox.

Step1: Go to SWDD and create a workflow. we would include a display material step but before that we will create another step.

pic1.JPG

Go to Wizard: Choose the agent assignment wizard.

Pic2.JPG

Wizard will open.

Pic3.JPG

Click on Continue and then choose a task in the workflow which will ask who will get the next step.

Pic4.JPG

Now, enter the task for which you will determine the receipients at runtime.

Pic5.JPG

Select the business object and method. Here we will be using BUS1001 and method is Display

Pic6.JPG

Select the method display.

Pic7.JPG

Now task has been selected. Click Continue.

Pic8.JPG

Now put a title of selection dialog box.

Pic9.JPG

Now press continue and complete the wizard.

See in the below design it includes two tasks one is selection  of agents for subsequent task and another one is display material task.

Pic10.JPG

Now double click on select agent step and enter workflow initiator to decide who will gets the next display material step.

Pic11.JPG

Now double click on the ‘Display Material’ step. Before that create a container element of an user say Agent_003.  Select that agent in the expression.

Pic12.JPG

Now Activate it.

Step 2: Testing of Dynamic agent assignment.  Now test your workflow. Since workflow initiator is the agent of the first step after we press execute button we have to proive the agent name of the next step.

Pic13.JPG

Now enter the material no to be displayed in the display material step.

Pic14.JPG

Pic15.JPG

Enter the material no.

Pic16.JPG

Now execute it to enter the material.

Pic17.JPG

Select material. Now the screen has pop-upped the first step of the workflow. So, this step will ask which agent will be receiving the workitem display material.

Pic18.JPG

Now we will choose Manager is user who will receive the workitem. So, log into your system as manager to see

workitem in Manager’s Inbox.

Pic19.JPG

———————————————————–End ——————————————————————————————–

Assigned Tags

      4 Comments
      You must be Logged on to comment or reply to a post.
      Author's profile photo Former Member
      Former Member

      Hello Abhijit,

      This is a good document.

      BUT during I develop the above example in my SAP box (ECC 6), I could not find the "Include Choose Agent" wizard in my workflow builder.

      Will you please correct me if I am doing something wrong?

      Thanks in advance,

      Ashok

      Author's profile photo Abhijit Mandal
      Abhijit Mandal
      Blog Post Author

      Hello Ashok,

      In line with the Enjoy initiative, the Workflow Wizards are also now displayed in HTML. In addition, there is a new wizard for ad hoc functionality:

      Go to Extras Ad hoc functions Enable ad hoc agent assignment.

      Thanks,

      Abhijit.

      Author's profile photo Former Member
      Former Member

      Hello Abhijit,

      Thanks for the update; yes Ad hoc feature is something new from ECC 6 onwards BUT still I guess there have some configuration so that we can have the "Include Choose Agent" in the wizard section; is not it?

      Thanks in advance,

      Ashok

      Author's profile photo Former Member
      Former Member

      Nice it works....