|Home • Trainings • Quiz • Tips • Tutorials • Functional • Cert Q's • Interview Q's • Jobs • Testimonials • Advertise • Contact Us|
Runtime Polymorphism / Dynamically load components in Web Dynpro for ABAP
By Saurav Sardar, Tata Consultancy Services
Suppose we have 2 different components including corresponding views. We
want to open those different components from another view dynamically.
one interface which will be implemented by two different components.
to transaction SE80 .
“WebDynpro Comp./Intf” from the list (as shown below)
the name “ZINF_TEST” as interface name. And choose the radio button
Web Dynpro component inter face.
right click on the interface component and create one interface view. Interface
view is nothing but one window. Because we can’t make on view as interface
give the name of the view COMMON_WINDOW.
activate all components.
create first component:
to SE80 again and Select “WebDynpro Comp./Intf” from the list.
the component name as SUB_COMP1.
to the main view and creating one Group UI element for component1. Put the text
(Caption) as Main view for component ZSUB_COMP1.
the default window.
double click on the component and go to implemented interface tab.
the interface name and click enter button.
clicks the Re-implement button to implement the supper Web Dynpro interface
success message will come after implementation.
save this component. One inherited window will appear in this component; this is
interface view of the ZINF_TEST component.
embed the main view in the COMMON_WINDOW.
11. Save and activate whole component.
Please send us your feedback/suggestions at webmaster@SAPTechnical.COM
©2006-2007 SAPTechnical.COM. All rights reserved.
product names are trademarks of their respective companies. SAPTechnical.COM
is in no way affiliated with SAP AG.
Graphic Design by Round the Bend Wizards