Skip to Content
0
Feb 10, 2012 at 04:48 AM

Call Web Dynpro application on a button Click.

526 Views

Hi,

I have 2 web dynpro components.(COMP1 and COMP2). I wants to call the application of COMP2 from a button click from COMP1.

1. In COMP1 view i have a button. I have created an outbound plug 'TO_APP' with parameter 'URL' type string.

2. Inside the event handler method for the button i have written the code as given below.

data str_url type string.

CALL METHOD cl_wd_utilities=>construct_wd_url

EXPORTING

application_name = 'COMP2_APP'

IMPORTING

out_absolute_url = str_url

.

wd_this->fire_to_app_plg(

url = str_url

).

When i click the button it wont navigate to COMP2. Is there any other step required ?

Please helps me to solve this issue...

Regards,

Shaira.