cancel
Showing results for 
Search instead for 
Did you mean: 

IF_WD_CLIENT_INFORMATION Not found in 7.4

rahul_aware
Explorer
0 Kudos

I am running an AWS instance 'SAP NetWeaver Application Server ABAP 7.4 on SAP MaxDB [trial edition]' . Not sure why IF_WD_CLIENT_INFORMATION interface is not present in this box.

In fact - IF_WD_APPLICATION->GET_CLIENT_INFORMATION method is also not present. This piece of functionality is present in 7.2 for sure.

Has anyone faced this issue? Do I need to install additional package on my 7.4 instance?

Any help will be highly appreciated.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

in some releases IF_WD_CLIENT INFORMATION is not supported. You have to search at first in the database for the interface:


DATA: lo_appl                                  TYPE REF TO if_wd_application,

         lo_object                       TYPE REF TO object,

         lv_name                        TYPE string,

         lv_method                     TYPE string,

         lv_screen_height           TYPE string,

         lv_screen_width             TYPE string.

*        lv_classname                TYPE seoclsname VALUE 'IF_WD_CLIENT_INFORMATION'.

lo_appl = wd_this->wd_get_api( )->get_application( )


SELECT SINGLE COUNT(*) FROM seoclass WHERE clsname = 'IF_WD_CLIENT_INFORMATION'      "or lv_classname

                                   AND clstype = '1'.



IF sy-subrc = 0. "Interface found

     TRY.

         lv_method = 'GET_CLIENT_INFORMATION'.

         CALL METHOD lo_appl->(lv_method)

           RECEIVING

             client_information = lo_object.

         lv_method 'IF_WD_CLIENT_INFORMATION~GET_SCREEN_HEIGHT'.

         CALL METHOD lo_object->(lv_method)

           RECEIVING

             screen_height = lv_screen_height.

         lv_method 'IF_WD_CLIENT_INFORMATION~GET_SCREEN_WIDTH'.

         CALL METHOD lo_object->(lv_method)

           RECEIVING

             screen_width = lv_screen_width.

       CATCH cx_sy_dyn_call_error ."INTO exc_ref.

     ENDTRY.

     CLEAR lv_method.


   ELSE.


    "CLIENT_INFO_OBJECT 

      lv_screen_width = wdr_task=>client_window->client_info_object->client_width.

      lv_screen_height = wdr_task=>client_window->client_info_object->client_height.


ENDIF.

If the Interface is not found you can try to get the information from the client_info_object.


  
Regards

Shkelqim

Former Member
0 Kudos

Hi,

This interface should exist also in 7.4

But the method you mentioned is not available.

You can use the following methods:

Best regards,

Gabor