on 01-29-2016 8:54 AM
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
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 = 2 "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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
User | Count |
---|---|
92 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.