cancel
Showing results for 
Search instead for 
Did you mean: 

get_client_environment returns wrong

mmgc_riel
Participant
0 Kudos

Hi,

I am working on a V7.03 system ansd use this to check for type of environment in webdynpro.

DATA:

     lo_api_component                   TYPE REF TO if_wd_component,

     lo_application                     TYPE REF TO if_wd_application.

   lo_api_component = wd_this->wd_get_api( ).

   lo_application = lo_api_component->get_application( ).

   wd_this->gi_client_environment = lo_application->get_client_environment( ).

Wkorking on both versions of the NWBC this returns the value 2 (portal).

Does anybody know what i do wrong?

Accepted Solutions (0)

Answers (1)

Answers (1)

amy_king
Active Contributor
0 Kudos

Hi M,

What value do you have set for server parameter ms/redirect_version? I believe it should be 1 in order to correctly identify the client environment.

Cheers,

Amy

mmgc_riel
Participant
0 Kudos

Hi Amy,

That has the value 1. So unfortunately it must be something different.

Thanks for trying .

Maarten

amy_king
Active Contributor
0 Kudos

Hi Maarten,

Another possibility is your method of load balancing. If you are using a message server to load balance instead of the SAP Web Dispatcher, that too can lead to IF_WD_APPLICATION returning an incorrect client environment value. We had this issue with our NetWeaver portal prior to enabling the Web Dispatcher.

Cheers,

Amy

mmgc_riel
Participant
0 Kudos

Hi Amy,

We used the message server and for test i changed it to the sap web dispatcher.
It didn't solve my problem and i will try to ask SAP for a fix.

Thanks

Maarten.