Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Links in the document are not working

Former Member
0 Kudos

Hi All,

In my program there shows a document, if the document has any hyper links, upon clicking on the link, its not going to concerned document.

Can you all please help me?

Thanks in advance.

Best Regards,

Prasanth

5 REPLIES 5

former_member182485
Active Contributor
0 Kudos

Is it your own program I mean custom program or SAP standard program ?

If it is ur own code just debug and find the problem, If you still face the problem revert back with some more specific information.

Hope this helps...

Bikas

Former Member
0 Kudos

Hi,

some how u may miss some convention regrading hyper link.let me see the code.

thanks

nagendra.

0 Kudos

hi

after doing all the initialisation, this part of the code is called

CALL FUNCTION 'DOCU_GET'

EXPORTING

id = 'DT'

langu = sy-langu "TEST !!!

object = ld_object

IMPORTING

head = ls_thead

TABLES

line = gt_texttab

EXCEPTIONS

no_docu_on_screen = 1

no_docu_self_def = 2

no_docu_temp = 3

ret_code = 4

OTHERS = 5.

CALL FUNCTION 'SAPSCRIPT_WWW_DOCU_TO_HTML'

EXPORTING

i_funcname = 'SAPSCRIPT_WWW_ITF_TO_HTML'

i_keyword = ls_thead-tdname

i_area = ls_thead-tdname

i_textid = ls_thead-tdid

TABLES

html = gt_htmltab.

  • Load HTML, generate url

CALL METHOD go_htmlcontrol->load_data

IMPORTING

assigned_url = ld_assigned_url

CHANGING

data_table = gt_htmltab

EXCEPTIONS

dp_invalid_parameter = 1

dp_error_general = 2

cntl_error = 3

OTHERS = 4.

IF sy-subrc <> 0.

MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno

WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.

ENDIF.

  • Display generated url in HTML viewer

CALL METHOD go_htmlcontrol->show_url

EXPORTING

url = ld_assigned_url

EXCEPTIONS

cntl_error = 1

cnht_error_not_allowed = 2

cnht_error_parameter = 3

dp_error_general = 4

OTHERS = 5

.

IF sy-subrc <> 0.

MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno

WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.

ENDIF.

Have a look and let me know the details

Thanks.

Prasanth

Former Member
0 Kudos

what kind of document?

if its a word document you may have to hold STRG pressed while clicking to follow hyperlinks.

0 Kudos

its normal text in dialog document