可以通过双击打开文档,也可以在IE浏览器中输入具体URL地址来浏览某个网站,在SAP中可以使用系统提供的标准的函数来实现:
CALL_INTERNET_ADRESS 只需提供地址或网址URL即可打开对应对象。
REPORT ZTEST001.
PARAMETERS:path type so_text255.
at SELECTION-SCREEN on VALUE-REQUEST FOR path.
perform choose_input_file using path.
START-OF-SELECTION.
CALL FUNCTION 'CALL_INTERNET_ADRESS'
EXPORTING
PI_ADRESS = PATH
EXCEPTIONS
NO_INPUT_DATA = 1
OTHERS = 2 .
form choose_input_file using pa_file.
CALL FUNCTION 'WS_FILENAME_GET'
EXPORTING
DEF_FILENAME = '*.*'
DEF_PATH = 'C:\'
MASK = ',*.*.'
MODE = 'O'
TITLE = 'Choose File'(002)
IMPORTING
FILENAME = PA_FILE
EXCEPTIONS
INV_WINSYS = 1
NO_BATCH = 2
SELECTION_CANCEL = 3
SELECTION_ERROR = 4
OTHERS = 5 .
ENDFORM.