cancel
Showing results for 
Search instead for 
Did you mean: 

Open View in Popup

Former Member
0 Kudos

Hi All,

I know a view can be opened as a popup.. Somewhere there was a method like "open_view_in_popup" or similar..

Does anybody know where to find this method?

Thanks,

Johannes

Accepted Solutions (1)

Accepted Solutions (1)

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

Also checking the API of the Window Manager, there are methods for creating a popup for a window, for a component usage, and the built in confirmation dialog - but not for a view.

http://help.sap.com/saphelp_nw70ehp1/helpdata/en/43/79f82ccbec6fcde10000000a1553f6/frameset.htm

Former Member
0 Kudos

Ok.. I am pretty sure that I have seen this before. If find it, I let you know.

Thanks!

Former Member
0 Kudos

Hi All,

like I said, was sure that I have seen such a method before... And now I have found it:

cl_wdr_runtime_services=>display_view_in_popup(
        EXPORTING
          component             = lo_api_component
          target_view_name      = 'VIEWNAME'
          close_button          = abap_true
          button_kind           = if_wd_window=>co_buttons_none
          window_title          = lv_window_title
        IMPORTING
        popup_window          = wd_comp_controller->go_popup_window_viewname ).

Tada!! I knew it

Have fun with it..

Johannes

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

I have a perfect example with me in a word file which describes clearly how to create a web component which uses a view and which throws a popup on clicking on this view.I have posted the material in wiki a document named"BASIC USER WEB DYNPRO APPLICATIONS",please find the attatchment over there.Thanks.

Praveen Kambala.

Edited by: PRAVEEN KAMBALA on Apr 7, 2011 4:21 AM

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

Generally you open Windows in a popup. There is a code wizard for this. Just create an extra window in your component and place the view you want to open within it.