cancel
Showing results for 
Search instead for 
Did you mean: 

Cofirmation pop up rendering time.Affect the perfomance is it true?

vivekananthan_sellavel
Active Participant
0 Kudos

hi guru,

i am using confirmation pop up in my application.

when i call the pop up. it take lot of time to render.

i did not done any validation in that pop up.

even though it's taking same time.

so client feel bad about that.

can u give me suggestion for ... And can u tell me

how to reduce time taken while renduring the

pop up.

Regard,s

Vivekananthan.S

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hello vivekananthan sellavel,

As i understand, it should not take much time to execute since you have not done any validation in that pop up.

If it taking time only after pushing some button on the popup --> May be you can check in the debugging.

For your information --> just check this code.

DATA: lo_window_manager TYPE REF TO if_wd_window_manager.

DATA: lv_window_name TYPE string.

DATA: lo_popup type ref to IF_WD_WINDOW.

DATA: lo_cmp_api TYPE REF TO if_wd_component.

DATA lt_popup_text type string_table.

DATA lv_line type string.

DATA lo_window type ref to if_wd_window.

DATA:

lo_action_view TYPE REF TO if_wd_view_controller.

lo_action_view = wd_this->wd_get_api( ).

lo_cmp_api = wd_comp_controller->wd_get_api( ).

lo_window_manager = lo_cmp_api->get_window_manager( ).

  • Define the text for the popup

CLEAR lt_popup_text[].

lv_line = < Text of line which shall be displayed >.

APPEND lv_line to lt_popup_text.

CALL METHOD LO_WINDOW_MANAGER->CREATE_POPUP_TO_CONFIRM

EXPORTING

TEXT = lt_popup_text

BUTTON_KIND = <Button kind>

MESSAGE_TYPE = < Message kind >

CLOSE_BUTTON = < close button>

WINDOW_TITLE = < Name of the title>

  • WINDOW_LEFT_POSITION =

  • WINDOW_TOP_POSITION =

  • WINDOW_POSITION =

  • WINDOW_WIDTH =

  • WINDOW_HEIGHT =

  • DEFAULT_BUTTON =

RECEIVING

RESULT = lo_window .

*Define which action shall be used to handle button push event

IF lo_window IS BOUND.

lo_window->subscribe_to_button_event(

button = < button which shall be replaced >

button_text = < button text >

tooltip = < tooltip text >

action_name = < name of action for button >

action_view = lo_action_view

is_default_button = < is default button >

).

ENDIF.

lo_window->open( ).

Thanks,

Bharath.K

vivekananthan_sellavel
Active Participant
0 Kudos

hi bharath,

Thanks for your reply. But this is not my question. My question is how to improve the performance speed of (POPUP).

Thanks,

Vivek

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

I think it is first important to understand where the time is being spent. To open an empty popup (rendering, transmission, and browser time) should only amount to a second or two. What kind of response are you having. Do you only have performance problems with this one application or with all applications that have popups (including standard SAP applications). Have you done a runtime or SQL trace on the application? Have you used an external tool like HTTPWatch to measure the network transmission and frontend rendering time? It is difficult to offer suggestions for improving the performance without any details about where exactly the problem is taking place.

Answers (0)