You are currently browsing the 2&5… & Coo4U… weblog archives for the day April 2, 2008.
- 2he5网站信息 (3)
- Application Development 应用开发 (3)
- IM信息管理 (42)
- IT Governance IT治理 (5)
- IT Security Story 安全的故事 (4)
- IT顾问 (49)
- 个人趣闻Personal Memories (62)
- 团队趣闻Team Memories (139)
- 好书推荐Book Recommendation (4)
- 杂谈Misc. (124)
- 精彩转载Citation (10)
- 谈谈佛学 (7)
- May 2012
- April 2012
- March 2012
- February 2012
- January 2012
- December 2011
- November 2011
- October 2011
- September 2011
- August 2011
- July 2011
- June 2011
- May 2011
- April 2011
- March 2011
- January 2011
- November 2010
- October 2010
- September 2010
- August 2010
- July 2010
- June 2010
- May 2010
- April 2010
- March 2010
- February 2010
- January 2010
- December 2009
- November 2009
- October 2009
- September 2009
- August 2009
- July 2009
- June 2009
- May 2009
- April 2009
- March 2009
- February 2009
- January 2009
- December 2008
- November 2008
- October 2008
- September 2008
- August 2008
- July 2008
- June 2008
- May 2008
- April 2008
- March 2008
- February 2008
- January 2008
- December 2007
- November 2007
- October 2007
- August 2007
- July 2007
- June 2007
- May 2007
Archive for April 2, 2008
达人开课之ABAP tips2:MVC
April 2, 2008 by 宝妈.
MVC means ‘Model Control View’. It is a very traditional way to structure the program. Usually it is used in OO (object-oriented) programming. Well, we can also apply this good thinking of programming in the ABAP4 which is process-oriented as well.
The normal structure of ABAP4 program is like this:
1 Definition
2 Input screen definition
3 Input screen event
4 Start-of-selection
5 End-of-selection
Then how can we apply MVC thinking? It is going to be like this:
Aarrange all the input procedure in the 2 & 3 part. For example, authorization check.
Arrange all the business logic control in the 4 part. Arrange all the data access in the subroutines which will be used in the business logic control.
At last, move all the output procedure in the 5 part.
It will be much easier for the descendant to understand the program in the future using this MVC thinking.
Posted in IT顾问 | Print | 1 Comment »