SAPGUI 해상도(Resolution) 확인방법

Docking Container 검색조건 때문에, SAPGUI 화면 해상도까지 찾아보게 됨. +_+

1. SAPGUI 해상도 확인하는 Source Code.

DATA: lo_consumer TYPE REF TO cl_gui_props_consumer,

      lo_factors  TYPE        cntl_metric_factors.

lo_consumer = cl_gui_props_consumer=>create_consumer( ).

lo_factors  = lo_consumer->get_metric_factors( ).

WRITE:/ ‘가로 해상도:’, lo_factors-screen-x.

WRITE:/ ‘세로 해상도:’, lo_factors-screen-y.

1.1. 더 간단한 소스

data: ls_factors type cntl_metric_factors.

ls_factors = cl_gui_cfw=>get_metric_factors( ). or

CALL METHOD cl_gui_cfw=>get_metric_factors

    RECEIVING metric_factors = ls_factors.

2. 결과화면

– 윈도우 해상도(1,600 X 1,200)

3. 객체 파리미터 확인

Subscribe
Notify of
guest
2 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
나그네
나그네
9 years ago

같은 소스이지만 좀더 간단한 방법도 있습니다.

data: ls_factors type cntl_metric_factors.

ls_factors = cl_gui_cfw=>get_mertic_factors( ).

블로그에서 좋은 정보 자주 참조하고 있습니다 ^^

Thinkmaniac
9 years ago
Reply to  나그네

오~ 감사합니다..