带你进入SAP BSP系列—理论部分(10)


MVC in BSP application

1. Properties
View: Created as subobject of a BSP application, via controller call, it’s a HTML page or page with BSP extension

Model: Created as a class, reference or derived from CL_BSP_MODEL
Provide: a. The data used for views with relevant type and Dictionary information
b. Input conversion
c. Process input errors
Controller: With the file extension .do, is a subclass of CL_BSP_CONTROLLER2

2. How-to call a view from controller:
1). Create an interface reference variable of type IF_BSP_PAGE
2). Call method: CREATE_VIEW
3). Call_view

3. Receiving user input and processing:
1).  User input data transfer to main controller
2).  In DO_REQUEST, call method DISPATCH_INPUT()
3). Call DO_HANDLE_DATA to process data
4). Call DO_HANDLE_EVENT to process system event

4. For much detail information , will be in the later demo in my blog.


About The Author

从事SAP行业有些年头,对SAP技术稍有了解; 如无特别声明,本博客文章为原创,转载请注明; 博主MSN:xuchunbo0901@hotmail.com; 博主邮箱:bob.xu@abaptech.com。

No Comments

Leave A Reply


注意: 评论者允许使用'@user空格'的方式将自己的评论通知另外评论者。例如, ABC是本文的评论者之一,则使用'@ABC '(不包括单引号)将会自动将您的评论发送给ABC。使用'@all ',将会将评论发送给之前所有其它评论者。请务必注意user必须和评论者名相匹配(大小写一致)。

无觅相关文章插件,快速提升流量