add_link

Use this method to add a link to your document. For further information, refer to Setting Links.

CALL METHOD valid_reference->add_link
          EXPORTING name                   = name
                    url                    = url
                    tooltip                = tooltip
                    text                   = text
                    destination_in_doc_set = destination_in_doc_set
                    destination_in_doc_pos = destination_in_doc_pos
          IMPORTING link                   = link.

Parameter and Type

Opt.

Description

name
TYPE SDYDO_
ELEMENT_NAME

X

The name of the link

URL
TYPE STRING

X

The URL of the link (if it is an external link)

Tooltip
TYPE STRING

X

The tooltip that is displayed when the mouse pointer is over the link item

text
TYPE SDYDO_TEXT_
ELEMENT

X

Text of the that will be displayed in the dynamic document

destination_in_doc_set
TYPE STRING

X

Defines the target of the link within the same document

destination_in_doc_pos
TYPE STRING

X

Defines a new bookmark in the document to which you can then jump

link
TYPE REF TO
CL_DD_LINK_
ELEMENT

 

An object reference pointing to the link object. You can use this to register the clicked event of the link.