Skip to Content
Author's profile photo Jayanthi Jayaraman

Part I:WebDynpro URL from workflow

Objective:

The objective of this document is to call WebDynpro URL from workflow. We are going to see how to read application parameters in Webdynpro and also how to pass the URL details which is more than 80 characters length from Workflow.

We are going to divide it in two parts.

Part I will explain about SWO1 and SWDD steps. This document covers Part I.

Part II will explain about WebDynpro and triggering workflow from ABAP program.

Please refer this link for Part II http://scn.sap.com/docs/DOC-60773.

References:

SDN.SAP.com

SAPTechnical

Prerequisite:

1.   1.  ZZZ_TRIP table as below.

Part1_1.JPG

1.  2. Basic workflow knowledge

2.  3. Basic Webdynpro knowledge

Procedure:

1.      Create object type in SWO1 which should have event which triggers workflow

2.      Build workflow using SWDD and do linking using SWE2

3.      Build a Webdynpro application which reads input and display output

4.      Build ABAP program to trigger workflow which should in turn call webdynpro from mail

Step1: Create object type in SWO1 which should have event which triggers workflow

Refer the below document for understanding how to create object type.

http://scn.sap.com/docs/DOC-58404

Inside that, create a method to take care of URL, if it is more than 80 characters.

Part1_2.JPG

Define Event Parameter as below.

Part1_4.JPG

Define the parameter of method as below.

Part1_5.JPG

Method can be defined as below.

Part1_6.JPG

Part1_7.JPG

And write the below code for sending mail. This is required if URL is more than 80 characters.

Part1_8.JPG

Part1_9.JPG

Part1_10.JPG

Step2: Build workflow using SWDD and do linking using SWE2.

Check the below link for step by step explanation.

http://scn.sap.com/docs/DOC-58404

Create a workflow container element as mentioned below.

Part1_11.JPG

Change Display mode in SWDD and then click Task and go inside that in change mode.

Part1_11.JPG

Change Display mode in SWDD and then click Task and go inside that in change mode.

Part1_13.JPG

Mention the method which we created for sending mail.

Part_14.JPG

You can see the below created as container element.

part1_15.JPG

Write the code as below in Description of Task.

Part16.JPG

Please check the binding once in Basic Data tab.

Part1_17.JPG

Go to SWE2 and do event type linkages.

Part_18.JPG

Part II covers Step 3 and Step 4 which can be referred in the below link.

http://scn.sap.com/docs/DOC-60773

Assigned Tags

      Be the first to leave a comment
      You must be Logged on to comment or reply to a post.