| Home • Tips • Tutorials • Forums • Certification Q's • Interview Q's • Jobs • Testimonials • Contact Us | ||
Document Categories:
What's New?
Contribute?Sample SpecsWhat's Hot? |
Runtime Polymorphism / Dynamically load components in Web Dynpro for ABAPBy Saurav Sardar, Tata Consultancy Services Scenario:
Suppose we have 2 different components including corresponding views. We
want to open those different components from another view dynamically. Procedure: Create
one interface which will be implemented by two different components. 1.
Go
to transaction SE80 . 2.
Select
“WebDynpro Comp./Intf” from the list (as shown below) 3.
Give
the name “ZINF_TEST” as interface name. And choose the radio button
Web Dynpro component inter face.
4.
Now
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
enable. 5.
Now
give the name of the view COMMON_WINDOW. 6.
Now
activate all components. Now
create first component: 1.
Go
to SE80 again and Select “WebDynpro Comp./Intf” from the list. 2.
Give
the component name as SUB_COMP1.
3.
Go
to the main view and creating one Group UI element for component1. Put the text
(Caption) as Main view for component ZSUB_COMP1. 4.
Delete
the default window.
5.
Now
double click on the component and go to implemented interface tab. 6.
Put
the interface name and click enter button. 7.
Now
clicks the Re-implement button to implement the supper Web Dynpro interface
class. 8.
One
success message will come after implementation. 9.
Now
save this component. One inherited window will appear in this component; this is
interface view of the ZINF_TEST component. 10.
Now
embed the main view in the COMMON_WINDOW. 11. Save and activate whole component. |
|
|
Please send us your feedback/suggestions at webmaster@SAPTechnical.COM Home • Contribute • About Us • Privacy • Terms Of Use • Disclaimer • Safe • Companies: Advertise on SAPTechnical.COM | Post Job • Contact Us ©2006-2007 SAPTechnical.COM. All rights reserved. All
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 |
||