在开发中,有时需求要弹出一个网页用于引导客户后续操作或者给出一个当前想要用户了解的规章制度等。这里给出一个demo。

DATA: BEGIN OF url_table OCCURS 10,        

              l(25),      

          END OF url_table.

url_table-l = 'http://www.baidu.com'.  

APPEND url_table.

IF NOT url_table IS INITIAL.    

   CALL FUNCTION 'WS_EXECUTE'      

       EXPORTING         program        = 'C:FilesExplorer.EXE'        

                                 commandline    = url_table        

                                 inform         = ''      

       EXCEPTIONS        prog_not_found = 1.    

    IF sy-subrc <> 0.      

        WRITE:/ 'Cannot find program to open Internet'.    

     ENDIF.  

ENDIF.

相关文章:

  • 2022-12-23
  • 2021-12-20
  • 2022-12-23
  • 2021-11-17
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-20
猜你喜欢
  • 2021-11-12
  • 2021-07-31
  • 2022-12-23
  • 2022-12-23
  • 2021-05-19
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案