Skip to Content
avatar image
Former Member

Hyperlink to launch webdynpro abap from workflow

Hi Guys,

We have developed WORKFLOW where we need to send HYPERLINK along with WORKITEM to the AGENTS.

When ever the user(AGENT) clicks on the HYPERLINK we need to launch our WEBDYNPRO ABAP APPLIOCATION.

Please guide me to achieve this scenario.


Harsha P

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Nov 17, 2011 at 07:10 PM


    You can construct the hyperlink URL with the following code (here work item ID is set as parameter as an example):

    *Set parameters for the application

    ls_parameters-name = 'WI_ID'.

    ls_parameters-value = wi_id.

    APPEND ls_parameters TO lt_parameters.

    *Construct URL

    CALL METHOD cl_wd_utilities=>construct_wd_url


    application_name = 'NAME_OF_YOUR_APPLICATION'

    in_parameters = lt_parameters

    in_protocol = 'HTTPS'


    out_absolute_url = lv_url

    out_protocol = lv_protocol.

    Create the UWL with the above code (for example in a background step if you don't know any other way) and set it to a context element. Then you can use that element in your task description.

    If your need is that the URL should be opened to a browser window when the work item is clicked, well then you should easily find some SAP standard function or method which you can do that. Just give the above URL as a parameter and the function will launch the browser.



    Edited by: Karri Kemppi on Nov 17, 2011 9:11 PM

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      >But in backend it is taking the reference as different placing spaces and(%20%20).

      What does this mean?

      I am really confused with this whole thread and your answers. You should be able to easily identify what is the exact problem. Now I am confused about that.

      Test your web dynpro application from SE80 (and give proper parameters to it) so that it will open some test case properly. Now you have a proper URL that must work. Now copy&paste this URL to a work item container (don't use the code to generate the URL or if you want to use it, then hardcode the URL for testing purpose). Then test it. Does it work? Can you open a web dynpro application from work item?

      If you can, then the problem is in the code that generates the URL. Fix that.

      If you cannot (but google or any other URL works from work item), then you have some sort of an Basis or network problem.



  • Nov 18, 2011 at 06:26 AM


    The other way in handling this kind of scenario is try to create a task fromWF_EXTSRV trasnaction, and mention the path of teh applicaiton which you can get from SICF trasnaction /sap/bc/sap/webdynpro/<application name>. This task is an asynchronous task and by doing in this way when ever user tries to execute from SAP Inbox he will be redirected to Webdynpro applicaiton.

    but make sure you have configured teh web handlers from WF_HANDCUST transaction.

    Once the execution is completed rasie COMPLETED event of webservice BOR so that the task gets completed and workflow ends.



    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Thank you very much for your quick reply's guys.

      Hi pavan

      Could you please elaborate the solution.SO that it would be very help full to us.

      Thank you,

      Harsha P