cancel
Showing results for 
Search instead for 
Did you mean: 

Calling ITS Service via abap program

Former Member
0 Kudos

We have made an ITS Service (SAP GUI for HTML) for one of the R/3 programs (Customized).

If the URL is linked directly to the service, it shows correctly.

But if we call the service via transaction code as in: Call tcode Zabc..., it does not work.

How can we call the service directly from the abap program on the click of a button?

Thanks in advance.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

You can do something like this:

CALL FUNCTION 'CALL_BROWSER'

EXPORTING

url = path

new_window = 'X'

EXCEPTIONS

frontend_not_supported = 1

frontend_error = 2

prog_not_found = 3

no_batch = 4

unspecified_error = 5

OTHERS = 6

where PATH variable is ITS service url:

CONCATENATE 'http://server:port/sap/bc/gui/sap/its/webgui?transaction=xxxxxx&okcode=xxxx INTO path.

Hope this helps,

Iván.

Former Member
0 Kudos

Thanks Ivan.

It works, but opens the browser in a new window.

How can we make it open in the same window? The parameter NEW_WINDOW is bypassed if it is ITS. THe documentation of the FM also says so.

Any other ways to open in the same page?

Former Member
0 Kudos

Thanks Ivan.

It works, but opens the browser in a new window.

How can we make it open in the same window? The parameter NEW_WINDOW is bypassed if it is ITS. THe documentation of the FM also says so.

Any other ways to open in the same page?

Former Member
0 Kudos

Hi,

If you use "window_name" export parameter and set same name, it doesn't open new window.

Hope this helps,

Iván.