cancel
Showing results for 
Search instead for 
Did you mean: 

how to create a popup window with close save buttons

Former Member
0 Kudos

Hi All ,

Can anyone plz let me know how to create a popup window with close save buttons & with some texts.

I have tabstrip ADDRESSDETAILS under this I have 4 tab

Tabstrip : ADDRESSDETAIL

4 Tabs : Installement , Payment , Service , Order Mode .

I want to create popup for Payment tab .

Regards

Rahul

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

solved

Former Member
0 Kudos

For the mohamnd answer is correct . But by default you need to have close and save buttons also. right. For this you need to pass the follwing information for the following attrubute. There some values 1 , 2, 3. Probaby you can check it in respective method. if suppor it is 1 then it display OK or CANCEL button and if it is 2 YES or NO buttons. Similarly you can some otption for this. Just check in the respective class.

  • DEFAULT_BUTTON =

Once you done this, you need to register the Event handler method for save button because when you click on SAVE you have to do some process right?? For ths you need to do some logic.

I hope i clear you. I don't have the WDABAP access now. Thats why i am not able to provide the code. Please excuse me.

Warm Regards,

Vijay

mohammed_anzys
Contributor
0 Kudos

Hi

First you need to create a window and embeed the views which you want to show in the pop up and then you call window....

Thanks

Anzy

I am calling this code from my controller , do the necessary changes , if you want to work from your view.

Data:l_cmp_api type ref to if_wd_component,

l_window_manager type ref to if_wd_window_manager,

l_comp_info type ref to IF_WD_RR_COMPONENT,

l_final_window type ref to IF_WD_WINDOW.

l_cmp_api = wd_this->wd_get_api( ).

CALL METHOD L_CMP_API->GET_COMPONENT_INFO

RECEIVING

COMPONENT_INFO = l_comp_info

.

l_window_manager = l_cmp_api->get_window_manager( ).

CALL METHOD L_WINDOW_MANAGER->CREATE_WINDOW

EXPORTING

  • MODAL = ABAP_TRUE

WINDOW_NAME = 'W_MYWINDOW'

  • TITLE =

  • CLOSE_BUTTON = ABAP_TRUE

  • BUTTON_KIND =

  • MESSAGE_TYPE = IF_WD_WINDOW=>CO_MSG_TYPE_NONE

  • CLOSE_IN_ANY_CASE = ABAP_TRUE

  • MESSAGE_DISPLAY_MODE =

  • DEFAULT_BUTTON =

RECEIVING

WINDOW = l_final_window

.

CALL METHOD L_FINAL_WINDOW->SET_WINDOW_POSITION

EXPORTING

LEFT = 300

TOP = 150

  • POSITION =

.

CALL METHOD L_FINAL_WINDOW->SET_WINDOW_SIZE

EXPORTING

WIDTH = '3000px'

HEIGHT = '3000px'

.

wd_this->LO_POP_UP = L_FINAL_WINDOW.

CALL METHOD L_FINAL_WINDOW->OPEN

.