on 10-30-2015 8:03 PM
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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
95 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.