Skip to Content
0
Former Member
Sep 19, 2007 at 08:20 AM

how to reuse the code?

126 Views

Hi

I'm new to Webdynpro.

We have a tool which is developed using Webdynpro ABAP. My task is to improve the performance of this tool.

I see that a lot of code is getting repeated in all the VIEWS. Is it possible to group this similar code into one method and call it wherever needed across all the VIEWS?

My doubt is there is lot of coding done inside the VIEW methods using wd_this and wd_context etc....can i copy this code into a different method (and a different class) as wd_this and wd_context are relevant only in the views in which they are used?

Regards,

Ravikanth