cancel
Showing results for 
Search instead for 
Did you mean: 

Open URL from SAP GUI

Former Member
0 Kudos

Hi,

I create Business Contacts with BAPI_BCONTACT_CREATEFROMDATA from an external application.

Is it possible to add a URL to this contact, that can be opened from the SAP GUI?

Our customer uses the native windows sap gui. The browser should open and load the

URL if you click on the it.

Any hints how this could be done?

Thomas

Accepted Solutions (1)

Accepted Solutions (1)

sukai_tian
Explorer
0 Kudos

Hi,

Here is a demo.

   CALL METHOD cl_gui_frontend_services=>execute
  EXPORTING
    document               = 'http://www.sap.com'
    operation              = 'OPEN'
  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
        .
IF sy-subrc <> 0.
* Implement suitable error handling here
ENDIF.

hope this helps u.,

Thanks & Regards,

Sukai

RMW
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello,

there is a function module CALL_BROWSER, which internally pretty much does what Sukai posted.

Best regards

Rolf-Martin

Answers (2)

Answers (2)

Former Member
0 Kudos

Hello

the class cl_gui_frontend_services can help you.

please read the documentation of this class.

best regards

Sven

Former Member
0 Kudos

Hi,

You can create a role and add an URL to it's menu. There are a number of different types of URLs offered. The URL menu item is under "Other".

A.