Quantcast
Channel: SCN : All Content - Web Dynpro ABAP
Viewing all articles
Browse latest Browse all 3667

Part II:WebDynpro URL from workflow

$
0
0

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.

Refer the below document for Part I.

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

 

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

 

Step3:Build a Webdynpro application which reads application parameters and define output

 

We are going to have ALV display based on tripdate passed. Tripdate needs to be provided as input when this URL is called.

Part2_1.JPG

Define component controller with context node as below.

Part2_2.JPG

Define component controller attribute COMP_DATE as below. It is going to be used for reading the Trip Date when webdynpro is called.

Part2_3.JPG

Part2_4.JPG

Do mapping between context nodes of view and component controller.

 

Part2_5.JPG

 

Do the coding as below. It is just to get data based on comp_date which is being read as input when URL is called.

 

Part2_6.JPG

Go to Windows and do the mapping in context as below.

part2_7.JPG

Make sure properties as updated as below in Component controller, View Main, Windows.

 

Part2_8.JPG

Go to HANDLEDEFAULT method and define TRIPDATE as below and do the coding. It will help to hold tripdate value being passed when URL is called.

 

Part2_9.JPG

Go to component usage and mapping is done between data and context.

Part2_10.JPG

Step4: Build ABAP program to trigger workflow which should in turn call webdynpro from mail

 

Part2_11.JPG

Part2_12.JPG

part2_13.JPG

Output:

 

Execute program.

part2_14.JPG

Then check SBWP inbox.

Part2_15.JPG

Click the link.

Part2_16.JPG


Viewing all articles
Browse latest Browse all 3667


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>