Skip to Content
0
Former Member
Jul 14, 2008 at 06:06 AM

Assitance class to read table data & MVC

50 Views

Hi All,

One of my friend demonstrated a ABAP webdynpro code to me. He used a assistance class to access the data in the ABAP table from an action / event handler method of a view.

I suggested that this may not align with best practices of webdynpro's intended MVC paradigm. My suggestion is that a event handler should call a method in the Component Controller and the method in the component controller should call the assistance class. This based on the general view : any class modelling the database table will be considered as a Model and a View may not access the Model directly without going through the controller.

But he did not agree with it. Hence I request webdynpro experts in the forum to express their opinion and enhance my knowledge about best practices for ABAP webdynpro.

Thanks in advance

Regards,

Arul