Calling browser from SAP ABAP详解编程语言

As a part of our day to day developments, some time we may need to call external website from a ABAP program or from SAP transaction, we can call a web browser from SAP program using CALL_BROWSER.

Example program for calling browser in SAP ABAP

CALL FUNCTION 'CALL_BROWSER' 
  EXPORTING 
    URL        = 'http://www.sapnuts.com' 
*   WINDOW_NAME                  = ' ' 
    NEW_WINDOW = 'X' 
*   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 EQ 0. 
  WRITE:/ 'Browser is opened'. 
ENDIF.

原创文章,作者:Maggie-Hunter,如若转载,请注明出处:https://blog.ytso.com/20152.html

(0)
上一篇 2021年7月19日
下一篇 2021年7月19日

相关推荐

发表回复

登录后才能评论