SAP ABAP根据网址跳转至对应的网页

SAP ABAP根据网址跳转至对应的网页

  1. 程序代码:

    DATA: lv_openurl TYPE c LENGTH 300,
          lv_tempurl TYPE char50.
    
    " Url可由多个字符串组合
     lv_openurl = 'https://www.baidu.com/'.
    
    CALL FUNCTION 'CALL_BROWSER'
      EXPORTING
        url                    = lv_openurl
    *   WINDOW_NAME            = ' '
    *   NEW_WINDOW             = ' '
    *   BROWSER_TYPE           =
    *   CONTEXTSTRING          =
      EXCEPTIONS
        frontend_not_supported = 1
        frontend_error         = 2
        prog_not_found         = 3
        no_batch               = 4
        unspecified_error      = 5
        OTHERS                 = 6.
    IF sy-subrc <> 0.
    * Implement suitable error handling here
    ENDIF.
    
  2. 执行效果:
    SAP ABAP根据网址跳转至对应的网页_第1张图片

你可能感兴趣的:(SAP,干货,ABAP,ABAP,SAP)