Skip to Content

IF_WD_CLIENT_INFORMATION Not found in 7.4

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.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Nov 02, 2015 at 05:33 AM

    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


    methods.png (21.3 kB)
    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Nov 23, 2015 at 09:03 AM

    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

    Add comment
    10|10000 characters needed characters exceeded