Technology Blogs by Members
Explore a vibrant mix of technical expertise, industry insights, and tech buzz in member blogs covering SAP products, technology, and events. Get in the mix!
cancel
Showing results for 
Search instead for 
Did you mean: 
former_member184958
Active Participant

Create one webdynpro component in se80 like below screen shot

then create one button in your view controller layout->for that button create one custom action.

then click on that action write the following code.

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 lv_str type string .

LO_API_COMPONENT  = WD_COMP_CONTROLLER->WD_GET_API( ).

LO_WINDOW_MANAGER = LO_API_COMPONENT->GET_WINDOW_MANAGER( ).

CALL METHOD CL_WD_UTILITIES=>CONSTRUCT_WD_URL

   EXPORTING

     APPLICATION_NAME              = 'ZWD_TRAINING_FEEDBACK'

   IMPORTING

     OUT_ABSOLUTE_URL              = lv_str.

In the above screen shot mention your webdynpro component name and defined variable name to hold the component url.

CALL METHOD LO_WINDOW_MANAGER->CREATE_EXTERNAL_WINDOW

     EXPORTING

       URL            = lv_str

       MODAL          = ABAP_true

       HAS_MENUBAR    = ABAP_TRUE

       IS_RESIZABLE   = ABAP_TRUE

       HAS_SCROLLBARS = ABAP_TRUE

       HAS_STATUSBAR  = ABAP_TRUE

       HAS_TOOLBAR    = ABAP_TRUE

       HAS_LOCATION   = ABAP_TRUE

     RECEIVING

       WINDOW         = LO_WINDOW

       .

LO_WINDOW->OPEN( ).

In the above screen shot call external popup window and also pass the  component url.

then right on your webdynpro component->webdynpro application.

save, active and test your application it will call the other component.

2 Comments
Labels in this area