OOpenFriends - first classes as MVC pattern

 


    The first sprint will end at 10 Nov and most of the tasks are almost completed. The accounts table is created and first ABAP classes are written. I have used the following article to get myself familiar with the ABAP implementation of most usefull design patterns 

http://zevolving.com/category/abapobjects/oo-design-patterns/ 

    In spite of the fact that the article seems to be old it will give a good overview about. I have choosen classical MVC pattern for OOpenFriends classes, but with some differencies from the article code. So I have moved the attributed to the private section, adding corresponding "getter" and "setter" to implement some incapsulation. Objects of model class will get the data from database and controller class is aggregating the objects of model classes (only accounts at the moment but also other entities in the future). 

UML - MVC Pattern in OOpenFriends

    Now we have Model and Controller parts implemented in classes. View part may be implemented as dynpro, abap programm with alv or any other kind of UI (f.e. Fiori). This will be the next step and the last task for this sprint.

I have also migrated Kanboard to GitHub project and opened it for reading to all https://github.com/users/msminakov/projects/3

Quick UML Course for refreshing UML knowledges https://www.youtube.com/watch?v=WnMQ8HlmeXc

All the sources are as usual in GitHub https://github.com/msminakov/OOpenFriends


Comments

Popular posts from this blog

Installing SAP AS ABAP 7.52 SP04 Developer Edition on VMWare

Getting started with SAP Fiori and OData on local SAP ABAP Developer Edition VM

Running Fiori elements App on local VM with SAP Developer Edition