![]() In many projects, you have to create more complex applications, for instance,Īpplications with various screens. Create global classes for system-wide reuse and encapsulation " Call static main method and pass through selection parametersĢ. " Start implementing your business logic here ![]() "! Performs calculation on the application data Start IMPORTING iv_carrid TYPE spfli-carrid. "! iv_carrid | Corresponding importing parameter for the selection parameter Report z_demo_app.ĬLASS-DATA: gt_spfli TYPE STANDARD TABLE OF spfli. Unit Tests are a great way to make your application more robust and spin another safety net. ![]() In addition to this, you can also take it some steps further by implementing unit tests for critical methods. Once you have processed your application data, you can display it using the simple ALV. A simple trick lets you use selection parameters and pass them to the class. This will be your entry point after the START-OF-SELECTION event. Integrating the object-oriented approach into your next ABAP report can be very simple by defining a local class and then implementing the entire business logic within reusable methods.Īll you have to do is start by defining a local class with a static method. Keep it simple – Bundle your business logic into local classes This blog post will show you three simple ways and advantages of how you can integrate ABAP OO in your next project!ġ. Quite often the use case is not so complex that the traditional procedural approach seems more suitable for implementing the application. Have you ever asked yourself how you can integrate the object-oriented approach into your next ABAP project?īeing a technology trainer at SAP, customers often ask me how they can use ABAP OO in their next project without creating complex object models and spending hours modeling their application. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |