ABAP中使用浏览器打开网页

在SAP ABAP中可以在Screen中嵌入Html control打开网页,也可以通过调用本地的IE浏览器打开。

1、在Screen中嵌入Html control的例子,在系统中有,se38:SAPHTML_DEMO1,执行效果如下图示:
image 
具体实现参见程序,代码很短。

2、通过调用本地IE的例子如下:

CALL METHOD cl_gui_frontend_services=>execute

EXPORTING

application = 'C:Program FilesInternet Exploreriexplore.exe' "本地IE的安装位置

parameter = 'http://www.google.com' "网页URL

EXCEPTIONS

cntl_error = 1

error_no_gui = 2

bad_parameter = 3

file_not_found = 4

path_not_found = 5

file_extension_unknown = 6

error_execute_failed = 7

synchronous_failed = 8

not_supported_by_gui = 9

OTHERS = 10.
执行效果就是打开一个IE进程,通过IE打开指定的网页

原文地址:https://www.cnblogs.com/ruingy/p/3525929.html