Skip to Content
Former Member
Oct 28, 2010 at 11:27 PM

Dynamically load a Component Usage into a UIViewElement


I've gone through quite a good number of posts surrounding this topic, but I am unable to get a straight answer to my problem. Currently, I have a SAP Delivered WD which I do NOT want to modify or enhance. The only access I have to this WD is through the SAP delivered BADI for the WDMODIFYVIEW.

Within this single hook method I have to be able to achieve quite a bit. I'm confident I can do all I need unless being able to dynamically create a usage to another WD component and embed it into a (dynamically created) UIViewElement on the screen. From what I've read, you can ONLY create component usages at design time either explicitly or through generic WD Interfaces. Both of these approaches require an enhancement or modification to the SAP delivered web dynpro.

Am I correct here? Is there NO WAY to dynamically add a usage at runtime within, and only within, the WDMODIFY hook method?

I truly hope this all makes sense. If so, kindly point me in the right direction!


Edited by: Andrew.Fletcher on Oct 29, 2010 4:12 AM