cancel
Showing results for 
Search instead for 
Did you mean: 

cl_wd_popup_factory=>popup

IanStubbings
Active Participant
0 Kudos

Hi

Can someone confirm that the cl_wd_popup_factory=>popup is now obsolete? I am led to believe that I should use the IF_WD_WINDOW_MANAGER->CREATE_WINDOW instead. I wish to call a popup window to display the user's success or failure in saving a record.

Thanks in advance

Ian

Accepted Solutions (1)

Accepted Solutions (1)

roberto_tagliento
Active Contributor
0 Kudos

Yes

example from a document


method onactionpopup1_1 .
data: l_cmp_api type ref to if_wd_component,
l_window_manager type ref to if_wd_window_manager.
l_cmp_api = wd_comp_controller->wd_get_api( ).
l_window_manager = l_cmp_api->get_window_manager( ).
if wd_this->m_popup1_1 is initial.
wd_this->m_popup1_1 = l_window_manager->create_window(
window_name = 'POPUP1_1'
button_kind = if_wd_window=>co_buttons_yesnocancel
message_type = if_wd_window=>co_msg_type_question ).
endif.
wd_this->m_popup1_1->open( ).
endmethod.

IanStubbings
Active Participant
0 Kudos

Thanks Roberto. Perfect.

roberto_tagliento
Active Contributor
0 Kudos

You are welcome

IanStubbings
Active Participant
0 Kudos

I came across this ages ago (well about 2 months!) but it didn't make much sense then. Now it does.

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/9e242bf5-0901-0010-c99c-83c...

Thanks to you both.

Ian

Answers (2)

Answers (2)

0 Kudos

Hi Ian,

the class cl_wd_popup_factory is definitely obsolete. For a confirmation dialog, you should use the method IF_WD_WINDOW_MANAGER~CREATE_POPUP_TO_CONFIRM instead.

You could use the component WDR_TEST_POPUP_TO_CONFIRM as an example.

Best Regards, Ariane.

thomas_szcs
Active Contributor
0 Kudos

Hi Ian,

It's definitely obsolete. The new API offers many advanced features in addition.

Best regards,

Thomas