cancel
Showing results for 
Search instead for 
Did you mean: 

Popup window in Wendynpro for ABAP

Former Member
0 Kudos

Hai,

How to create popup window with some texts and close button.

Once user click a table cell (link to action), the popup window shoud give information about the cell information.

Please this is urgent.

Thanks in advance,

Tamil

Accepted Solutions (0)

Answers (2)

Answers (2)

sahai
Contributor
0 Kudos

Hi,

This can be achieved in the following manner,

Firstly, As you want to have a pop up , you need to create a new window in the application. now as you wrote that you need some texts and a button. create a view having both the things, i.e create texts and a button on the view.

Now as this view cant be displayed alone on screen, this view has to be embeded in the window you created for the popup.

now the pop up creation is done and code the below on the link to action.

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_view_controller type ref to if_wd_view_controller.

  data :  lt_text TYPE string_table,

          ls_text TYPE string.

lo_api_component = wd_comp_controller->wd_get_api( ).

lo_window_manager = lo_api_component->get_window_manager( ).

lo_window = lo_window_manager->create_window(

window_name =  write window name here please note all should be in caps

title =  title here

message_display_mode = if_wd_window=>co_msg_display_mode_selected

close_button = abap_true

button_kind = if_wd_window=>co_buttons_ok

message_type = if_wd_window=>co_msg_type_none

default_button = if_wd_window=>co_button_ok

).

lo_window->open( ).

Let me know in case of any issues!!

Thanks and Regards,

Shitanshu Sahai

  Please provide the required code, I guess you implemented it in your program

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

Please see the example webdynpro components which start with WDR_TEST_POPUP* in SE80. Also please see section 4.3 in this document.

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/db22242d-0701-0010-28a2-aea...

Regards,

RIch Heilman

Former Member
0 Kudos

Hai rich,

Thanks you, I was not available for the last 15 days.

I have another doubut, during rutime how to chage the table attribute like read only and alternate design in ABAP Dynpro.

I will appriciate if i get reply from you tomorrow, For the last Reply, i donot have option to give points, sorry about that. Once again, Thanks.

Thanks,

Tamil

0 Kudos