09-16-2008 12:21 PM
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
09-16-2008 12:42 PM
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
09-16-2008 12:55 PM
Hi,
some how u may miss some convention regrading hyper link.let me see the code.
thanks
nagendra.
09-16-2008 12:58 PM
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
09-16-2008 12:57 PM
what kind of document?
if its a word document you may have to hold STRG pressed while clicking to follow hyperlinks.
09-16-2008 12:59 PM