Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

User session closed after timeout error when calling a external window

Hi frnds,

I have created an application A where i have a button 'Print' which calls a SAP Tcode. In order to acheive this i am calling an external window.

The call of external window works when i call it for the first time. But it when i call it for the second time, an error msg is displayed as Error: User session (HTTP/SMTP/..) closed after timeout.

Kindly help me to solve the issue.

This code is written in the Action method for Print.

**************************************************************************************

DATA lo_window_manager TYPE REF TO if_wd_window_manager.

DATA lo_api_component TYPE REF TO if_wd_component.

DATA lo_window TYPE REF TO if_wd_window.

DATA lo_api_window_open TYPE REF TO if_wd_view_controller.

lo_api_window_open = wd_this->wd_get_api( ).

lo_api_component = lo_api_window_open->get_component( ).

lo_window_manager = lo_api_component->get_window_manager( ).

lo_window_manager->create_external_window(

EXPORTING

url = lv_url

RECEIVING

window = lo_window ).

lo_window->open( ).

**************************************************************************************

Thanks,

Suganya

Former Member
Not what you were looking for? View more on this topic or Ask a question