cancel
Showing results for 
Search instead for 
Did you mean: 

SAP Web Dispatcher (ICF)

Weiskopf
Participant
0 Kudos

Hello all,

I would like to get the host and port of the current Web Dispatcher.

There is a method IF_HTTP_SERVER~GET_LOCATION to get the current server instance, however I need the dispatcher.

Is there any method to get this information?

Thank you for your assistance.

Best regards,

Kurt.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

I think you can find your answer if you follow the below link.

http://help.sap.com/saphelp_nw70/helpdata/en/ea/c30829166944edbc74b3c805bf529f/content.htm

Also look into the below link for more related information.

http://help.sap.com/SAPhelp_nw70/helpdata/en/fe/cda776f2f64d5287c614b2f715c25f/content.htm

Hope it helps.

Regards,

Sujit.

Edited by: Sujit Kumar Banerjee on Mar 12, 2011 3:47 PM

Weiskopf
Participant
0 Kudos

Hello Sujit,

thank you for your information.

Do you know how to access to the parameters to get the port and host of the web dispatcher?

I would like to build a redirect to the web dispatcher.

Thank you & best regards,

Kurt.

Former Member
0 Kudos

Hi,

You can find the parameters on web dispatcher server form profile file.. Go to // user/sap/(sid)/sys/profile/ sidprofile...

I hope it can help you.

Regards Reza

Weiskopf
Participant
0 Kudos

Dear Reza,

Thank you for your information; however I'm looking for a possibility to get the parameter from the ABAP side.

Is there any class/method or function module to get the data?

Thanks & best regards,

Kurt.

Former Member
0 Kudos

Yes you can get you need from ABAP side, user T-CODE SMICM to view the parameter fo all add-in java install.

Former Member
0 Kudos

Hi,

If your web dispatcher is well configured, you can get the needed information in the header fileds set by the web dispatcher :

host

clientprotocol parameter : wdisp/add_clientprotocol_header = true

x-sap-webdisp-ap parameter : wdisp/handle_webdisp_ap_header = true

There are abap methods to read header fields.

IF_HTTP_ENTITY~GET_FORM_FIELD for exemple

Regards,

Olivier

Weiskopf
Participant
0 Kudos

Hello Olivier,

thank you for your hint!

I set the above mentioned parameters, however I got no entry by the IF_HTTP_ENTITY~GET_FORM_FIELD.

I also tried to get all parameters by IF_HTTP_ENTITY~GET_FORM_FIELDS (gets all field values). It is also not working.

Is there any other possibility to get the host/port of current Web Dispatcher?

Thanks & best regards,

Kurt.

Former Member
0 Kudos

Hello Kurt,

I've never done it my self but of course it is possible because SAP standard code does it.

My suggestion : Enable the it00 standard BSP application.

Then call the following URL :

https://webdispatcher/sap/bc/bsp/sap/it00/misc_echo.htm

All header fields will be displayed including the ones I told you.

Then look at the source code of this page. I am not an abaper but it seems that the interesting code is :


DATA: ffs TYPE TIHTTPNVP,
           ff  TYPE  IHTTPNVP.
     request->GET_HEADER_FIELDS( CHANGING fields = ffs ).
     LOOP AT ffs INTO ff.

So I think my mistake was to tell you GET_FORM_FIELDS instead of GET_HEADER_FIELDS.

Hope this helps.

Olivier

Answers (0)