cancel
Showing results for 
Search instead for 
Did you mean: 

Do we strictly need to fallow MVC model to develop a application?

Former Member
0 Kudos

Hi,

Do we need to fallow MVC model to develop a web application using ABAP?

I have seen no difference in writing code in controller(view or component) level than calling a method from a model(class)

implemented in SE24. Can anybody explain me any difference? Thanks in advance.

Regards,

Meera.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Meera,

MVC pattern has lot of advanctages. Please try to go through below links.

/thread/1603976 [original link is broken]

http://help.sap.com/saphelp_nw04/helpdata/en/b2/cc393cddb05357e10000000a114084/content.htm

Thanks,

Prashant

Former Member
0 Kudos

Hi Thomas Jung,

Prashant,

Thanks a lot for the replies.

Answers (1)

Answers (1)

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

Technically there is nothing stopping from writing your business logic or SQL directly into the controller methods. It probably isn't going to make any runtime execution time difference either. However it is poor design that will likely cause you to have higher maintenance cost over time. Clearly separating out your business logic from your UI eventing makes it easier to find code and easier to change it over time. MVC is a design pattern, not a technology itself. However MVC is a recommendation/best practice.