cancel
Showing results for 
Search instead for 
Did you mean: 

Adding a hyperlink in Webdynpro ESS box

Former Member
0 Kudos

Hi Group,

I need to add hyperlink to a box displayed in ESS side. The webdynpro application I am looking into is HRESS_A_PER_US_ONLINE_W2. In the election tab, I need to add a hyperlink inside 'Additional Information' box.

I tried to create a GENERAL TEXT in SE61 and insert a link which works fine in the preview in SE61 but this doesn't show up as a hyperlink in the ESS side. It just displays the command for the hyperlink as such.

Requesting your input on this.

Thanks,

María

Accepted Solutions (1)

Accepted Solutions (1)

former_member184578
Active Contributor
0 Kudos

Hi,

You have to use Link to URL/ Link to Action UI element to display hyperlink in Web Dynpro ABAP.

Regards,

Kiran

Former Member
0 Kudos

Kiran, thanks. I am new to Webdynpro, could you please help me navigate to the UI element?

former_member184578
Active Contributor
0 Kudos

Hi,

Go to layout tab of your view, then right click on ROOTUIELEMENTCONTAINER and click on insert element. In the UI type drop down choose Link to URL to create a hyper link.

Regards,

Kiran

Former Member
0 Kudos

Kiran, I am starting the configurator from SE80 and I couldn't locate the layout tab.

I have a Z version of the SAP delivered text  modified in SE61, is there a way I can link this when creating the hyper link in the UI drop down?

ramakrishnappa
Active Contributor
0 Kudos

Hi Maria,

I think you are not very much familiar with the object navigator and Webdynpro component's structure. I suggest you take the help of a developer who is familiar with WDA.

You need to enhance the standard component to achieve your requirement.

Your requirement can be achieved as below


  • Open the standard WDA component in SE80 and go to the respective view
  • Enhance the view and go to the view layout
  • Add UI element LinkToUrl or LinkToAction
  • To set the link text from data element documentation,
    • Go to the POSTEXIT of wddomodifyview( ) method of view
    • Get the documentation text by using function module  DOCU_GET_FOR_F1HELP
    • Get the link ui element from view like

                  data lo_view_element type ref to if_wd_view_element.

               lo_view_element ?= VIEW->GET_ELEMENT( 'LINK' )

    • Set the text, by using method

               lo_view_element->set_text( lv_doc_text ).

Hope this helps you.

Regards,

Rama

Former Member
0 Kudos

Thank you, Rama. This answers my question.

María

Answers (0)