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.
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.
Define Event Parameter as below.
Define the parameter of method as below.
Method can be defined as below.
And write the below code for sending mail. This is required if URL is more than 80 characters.
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.
Change Display mode in SWDD and then click Task and go inside that in change mode.
Change Display mode in SWDD and then click Task and go inside that in change mode.
Mention the method which we created for sending mail.
You can see the below created as container element.
Write the code as below in Description of Task.
Please check the binding once in Basic Data tab.
Go to SWE2 and do event type linkages.
Part II covers Step 3 and Step 4 which can be referred in the below link.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
10 | |
7 | |
5 | |
5 | |
5 | |
4 | |
4 | |
4 | |
3 | |
3 |