cancel
Showing results for 
Search instead for 
Did you mean: 

How to trigget Web Dynpro application from a hyperlink

Former Member
0 Kudos

Hi Experts,

For my project, I have created one HTML page. In the HTML, we are having following link:

https://www.myproject.com?12345

Here 12345 is the Request No and https://www.myproject.com is the URL of portal.

We have created one BAPI. The BAPI accepts 12345 as first parameter and https://www.myproject.com as second parameter.

After execution of BAPI, the backend returns one page.

Can you please let me know how I can achieve this? I want to know that on clicking on a HTML hyperlink,. how we can trigger one BAPI.

I also want to know that how we can pass 12345 and https://www.myproject.com from the HTML page to BAPI.

Thanks

Pradnya

Accepted Solutions (0)

Answers (5)

Answers (5)

Former Member
0 Kudos

Hi,

In your HTML page change the url to that of your application url and add the parameter as <application url>?param1=12345. Now, in your webdynpro application's wdDoInit() method read the url parameter using the wdProtocolAdapter().getRequestObject().getParameter("param1");

Pass this value to your BAPI and execute the BAPI.

Regards,

Murtuza

former_member205363
Contributor
0 Kudos

Hi,

Try like this, take LinkToAction UI element in the view, write method for onAction of LinkToAction .

execute the Bapi from this method with the two parameters.

Now If you click the URL action will be fired and Bapi will be execute and gives the output.

Regards,

Lakshmi prasad.

former_member205363
Contributor
0 Kudos

Hi,

Try like this, take LinkToAction UI element in the view, write method for onAction of LinkToAction .

execute the Bapi from this method with the two parameters.

Now If you click the URL action will be fired and Bapi will be execute and gives the output.

Regards,

Lakshmi prasad.

Former Member
0 Kudos
former_member192434
Active Contributor
0 Kudos