cancel
Showing results for 
Search instead for 
Did you mean: 

Call Webgui from WD application

Former Member
0 Kudos

Hi,

I am trying to call transaction CV03N via webgui from Webdynpro ABAP application.

The service is active in ICF. I am getting host and port with the help of FM- /SDF/GET_ICM_VIRT_HOST_DATA

and then generating the url as follows -

concatenate 'http://' ls_icm_data-fqhostname':' ls_icm_data-port'/sap/bc/gui/sap/its/webgui/?~TRANSACTION=*CV03N DRAW-DOKAR='

*WD_COMP_CONTROLLER->CS_ALV_DOC-DOCUMENTTYPE

*';DRAW-DOKNR='

*WD_COMP_CONTROLLER->CS_ALV_DOC-DOCUMENTNUMBER

*';DRAW-DOKTL='

*WD_COMP_CONTROLLER->CS_ALV_DOC-DOCUMENTPART

*';DRAW-DOKVR='

*WD_COMP_CONTROLLER->CS_ALV_DOC-DOCUMENTVERSION

*'~noheaderokcode = 1'

*into wd_this->ca_url.

with above url from application I am getting SAP GUI for HTML - retrieving size as blank window

Please help.

Thanks, in advance.

Trupti

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

I had the same problem.

I solved it in using "sy-host" in the url.

But use the port of FM- /SDF/GET_ICM_VIRT_HOST_DATA!

F.e. CONCATENATE 'http://' sy-host ':' port '/sap/bc/gui/sap/its/webgui?sap_client='client '&transaction=AL11&OKCODE=SHOW' into url.

Kindly

Barbara Mader

Edited by: Barbara Mader on Apr 30, 2010 11:41 AM

Former Member
0 Kudos

You can get the Host and Port by using the below Class method:

*Call below method to get host and port

cl_http_server=>if_http_server~get_location(

IMPORTING host = host

port = port ).

Now you can get the URL by concateing this as below:

CONCATENATE 'http://' host ':' port '/sap/bc/gui/sap/its/webgui?sap_client='client '&transaction=AL11&OKCODE=SHOW' into url.

Answers (0)