Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Abap course chapter 7 abap objects and bsp
1. ABAP Course Chapter 7 – ABAP Objects and Business Server Pages Lecturer: André Bögelsack, UCC Technische Universität München Author: Valentin Nicolescu, André Bögelsack
2.
3.
4.
5.
6. Use of classes and methods Car_accelerate Procedurale approach Car_braking Car_show_speed Car_stop Car_Gear_change_up Car_Gear_change_down Car Accelerate Braking Show_speed Stop Gear_change up Gear_change_down Object-oriented approach
7.
8. Example for Object Orientation Class Vehicle Class Car Class Motor Truck Attributes: Manufacturer No. of wheels Methods: Create Show attribute Inheritance Inheritance Attributes: Manufacturer No. of wheels No. of seats Methods: Create Show attributes Used seats Attributes: Manufacturer No. of wheels Vehicle payload Methods: Create Show attributes Cargo capacity Soure: Own illustration
9.
10.
11.
12.
13.
14.
15.
16.
17.
18.
19.
20.
21.
22.
23.
24.
25.
26.
27.
28.
29.
30.
31.
32.
33.
34.
35.
36.
37.
38.
39.
40. Model View Controller - Example SAP System View view_test.htm Controller example_co.do Model ZCL_BSP_MYMVCTEST HTTP-Request DO_REQUEST Application logic Attribute NAME No direct call