Skip to Content
author's profile photo Former Member
Former Member

How to trigget Web Dynpro application from a hyperlink

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

5 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Oct 20, 2008 at 12:01 PM
    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 20, 2008 at 12:07 PM
    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Oct 20, 2008 at 07:10 PM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Oct 20, 2008 at 07:11 PM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 20, 2008 at 07:24 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.