Skip to Content
Author's profile photo Kiran Kumar Valluru

How to Create and Trigger Class Based Workflow from Web Dynpro ABAP – Part 3

How to create and trigger class based workflow – Part 2 continue..

Now Click on Ok.

/wp-content/uploads/2012/03/35_83741.jpg

Click on binding as shown below.

/wp-content/uploads/2012/03/36_83742.jpg

You can see the binding automatically exists with the matching types, since we click on yes in the above step.

/wp-content/uploads/2012/03/37_83743.jpg

Now we can see the Required Mapping. Click on Ok.

Now Click on Transfer Button.

/wp-content/uploads/2012/03/38_83747.jpg

Step 4: Creating Send Mail Step

  Now we can see the Created Task. Click on Create as shown below to create the Mail Step.

/wp-content/uploads/2012/03/39_83750.jpg

Select Send Mail Step and Click on Ok as shown below.

/wp-content/uploads/2012/03/40_83748.jpg

Enter Subject and Click on insert expression to insert Value as shown below.

/wp-content/uploads/2012/03/41_83749.png

Select EMP_ID (which holds Employee ID) and click on Ok.

/wp-content/uploads/2012/03/42_83751.jpg

Enter the Body of Mail and click on insert expression under body to insert Value.

/wp-content/uploads/2012/03/43_83752.jpg

Now Click on transfer button.

/wp-content/uploads/2012/03/44_83753.jpg

Enter abbreviation and Name and click on Ok.

/wp-content/uploads/2012/03/45_83754.jpg

Now the Work Flow looks like this.

/wp-content/uploads/2012/03/46_83755.jpg

Triggering Workflow from Web Dynpro ABAP

Step 1: Create a Web Dynpro Component.

        Go to the SE80 transaction and create a web dynpro component.

/wp-content/uploads/2012/03/47_83756.jpg

Click on Yes to create.

/wp-content/uploads/2012/03/48_83757.jpg

Enter Description and click on ok.

/wp-content/uploads/2012/03/49_83758.jpg

Save and Activate the Web Dynpro component.

Now double click on MAIN View and go to Context tab of MAIN view. Create node EMPLOYEE with cardinality 1..1 and create an attribute EMP_ID.

/wp-content/uploads/2012/03/50_83759.jpg

Step 2: Layout Design.

   Now Go to Layout tab:

  1. Create label with text ‘Employee ID ‘   and
  2. Create an input field EMP_ID and bind it to EMP_ID of EMPLOYEE node.

/wp-content/uploads/2012/03/51_83760.jpg

  3. Create a button with text “Register” and create an Action for the button.

4. Create a Message Area to Display message.

/wp-content/uploads/2012/03/52_83761.jpg

Enter Action Name and description and click on Ok.

/wp-content/uploads/2012/03/53_83762.jpg

Continuing the remaining in the last part How to create and trigger class based workflow – part 4 ( as the max. no.of images reached )..

Assigned Tags

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

      Good Work..

      Author's profile photo Former Member
      Former Member

      Hi,

      firstly thanks for sharing 🙂 but i am stuck a bit. please help me out

      while creating the task to get the employee name it is asking to enter a terminating event.

      what should we enter?

      Author's profile photo Kiran Kumar Valluru
      Kiran Kumar Valluru
      Blog Post Author

      Hi Sayan,

      Select the checkbox 'Synchrounous Object method' . For Asynchronous method you need to maintain the terminating Events. Please check the updated version of Part 2 Document.

      Thank You.

      Best Regards,

      Kiran.

      Author's profile photo Former Member
      Former Member

      Very useful documents......Good Work..Keep it up

      Author's profile photo Former Member
      Former Member

      Thanks alot for the upload...

      Author's profile photo Former Member
      Former Member

      nice documents.

      Author's profile photo Ramakrishnappa Gangappa
      Ramakrishnappa Gangappa

      Hi Kiran,

      Thanks for sharing. Its very useful document.

      Regards.

      Rama