带你进入SAP BSP系列—实战部分(3)
前面我们做了一个简单的Hello world, 仅仅包含了屏幕的输出, 其中, 我们使用了两种模式, 一种有HTMLB, 另外一种是纯HTML+ABAP.
在这节我们会简单的处理用户输入输出, 同样使用两种模式完成.
前面我们做了一个简单的Hello world, 仅仅包含了屏幕的输出, 其中, 我们使用了两种模式, 一种有HTMLB, 另外一种是纯HTML+ABAP.
在这节我们会简单的处理用户输入输出, 同样使用两种模式完成.
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
Layout and language
1. Including MIME in BSP application Definition: MIME for Multipurpose Internet Mail Extension Storage: MIME objects stored in database table SMIM* Steps: 1). Open you BSP application with SE80 2). In the context menu of your project, choose Create–>MIME objects–>Import
Stateful and Stateless BSP Applications
1. Stateful programming of a BSP application means that the application context is retained after the response and is available when you continue to work with the application.
Advantage: Easy to program Disadvantage: Waste resources