cancel
Showing results for 
Search instead for 
Did you mean: 

How to get WebGUI URL from ABAP or Table?

former_member231903
Participant
0 Kudos

Hi exports,

I already know how to open WebGUI manually, from SICF and search webgui, test service.

But I want to get WebGUI URL from ABAP, like to read from some table, I don't know where to get it. Somebody know about it?



Thanks and Regards,

Blangero

Accepted Solutions (1)

Accepted Solutions (1)

former_member231903
Participant

Well, I finally make it, there's some discussions on SCN but I might just use the wrong key words in searching this.

This FM solves the problem

* Get hostname and port of server

     call function 'TH_GET_VIRT_HOST_DATA'

       exporting

         protocol       = "1 for http, 2 for https. Also edit Initial URL part after editing this

         virt_idx       = 0

*       LOCAL          = 1

       importing

         hostname       = l_hostname

         port           = l_port

       exceptions

         not_found      = 1

         internal_error = 2

         others         = 3.



Answers (1)

Answers (1)

former_member194364
Active Contributor
0 Kudos

Hi Blangero,

not exactly sure what you mean by: "I want to get WebGUI URL from ABAP, like to read from some table"


What are you hoping to do? Run a report that will execute the WEBGUi service and pass parameters to it?

The ITS WIKI is a good resource

http://wiki.scn.sap.com/wiki/display/HOME/Internet+Transaction+Server

for example check the following WIKI:

How to prefill fields and skip first screen with webgui? - Wiki - SCN Wiki

Regards,

Oisin

former_member231903
Participant
0 Kudos

Hi Oisin,

Thanks for your reply, yes I want to open webgui and pass parameters to it, I want to generate a URL in ABAP program, like:

https://<myServer>:<myPort>/sap/bc/gui/sap/its/webgui?sap-client=500&~transaction=*fb03%20RF05L-GJAHR=2015;RF05L-BELNR=0100000014;RF05L-BUKRS=ZFA2;


I can successfully generate the parameter part of the URL, by using RRI,

but I also want to automatically get <myServer> and <myPort> in ABAP program, I searched a lot on SCN and sap wiki/help, but failed to get it. That's where I want to get help.


Regards,

Blangero

former_member194364
Active Contributor
0 Kudos

Hi Blangero,

these are ICM parameters. Can check in transaction SMICM the various parameters in the ICM area.

if searching for notes and documentation - search under component BC-CST-IC

Regards,

Oisin

Former Member
0 Kudos

Hi,

You can check table ICFSERVICE.

cris_hansen
Advisor
Advisor
0 Kudos

Hello Blangero,

You can also read the values from (ICM-related) profile parameters.

Regards,

Cris