Dynamic creation of component usage in ABAP WebDynpro

...Previous

14.  Now in Method list create a new event handler method and in even column pick ON_CLICK event of the interface controller of the component usage ALV_USAGE.

15.  This method will automatically have one importing reference parameter named R_PARAM. This variable’s Value field will have the value of the clicked column of ALV list.  

16.  In this method we will first write the logic for fetching the data for secondary list for clicked value of primary list.  

 

17.  Below is the screen shot of the code which is meant for creating the component usage dynamically. For that we have first created a component usage group and then created a component usage. The code in screen shot is self explanatory. I have put a lot of comment there to make everything clear. And yes…put this code in ACTIONCLICK method itself.  

 

 

 

 

 

 

18.  Now test your application again. This time click on the Sales Doc. column’s value of primary list to get the secondary list. The result is like below.  

Please send us your feedback/suggestions at webmaster@SAPTechnical.COM 

HomeContribute About Us Privacy Terms Of Use • Disclaimer • SafeCompanies: Advertise on SAPTechnical.COM | Post JobContact Us  

Graphic Design by Round the Bend Wizards

footer image footer image