ABAP List/Tree Viewer with MVC Concept with class CL_SALV_TABLE and CL_SALV_TREE after released 756 (Only support SAP release 756 or above)
This MVC concept was implemented Object Oriented ALV (OO ALV) by using class CL_SALV_TABLE and also make it editable that was released after 756. The editable of SALV was guided by the blog that was followed by link: https://blogs.sap.com/2022/08/01/editable-cl_salv_table-after-release-756 Moreover, it also support SALV Tree by using class CL_SALV_TREE.
For Quickstart Snippets. You can follow SALV tutorial via links as below:
- https://blogs.sap.com/2021/06/28/salv-alv-quickstart-snippets
- http://zevolving.com/category/salv-tutorial/salv-table
- https://blogs.sap.com/2018/01/04/salv-treecl_salv_tree-functionalities-events-and-tricks/
- https://blogs.sap.com/2021/08/06/refresh-of-cl_salv_tree/
The framework consists of the following repo objects:
- The main controller class ZCL_MVCFW_BASE_SALV_CONTROLLER. A program will define its own main controller inheriting from this class.
- Interface class ZIF_MVCFW_BASE_SALV_VIEW for ZCL_MVCFW_BASE_SALV_LIST_VIEW and ZCL_MVCFW_BASE_SALV_TREE_VIEW
- The Simple ABAP List Viewer(SALV) class ZCL_MVCFW_BASE_SALV_LIST_VIEW. A program will display report as ALV that was called by class CL_SALV_TABLE.
- The Simple ABAP List Viewer Tree(SALV Tree) class ZCL_MVCFW_BASE_SALV_TREE_VIEW. A program will display report as ALV that was called by class CL_SALV_TREE.
- The Simple ABAP List Viewer(SALV) class ZCL_MVCFW_BASE_SPILTTING_SIMPL. A program will display report as ALV that were seperated by Top-Bottom on screen.
- The model class ZCL_MVCFW_BASE_SALV_MODEL. A program will define its own main model inheriting from this class to manipulate any data of this model.
- The screen class ZCL_MVCFW_BASE_SSCR. It will manipulate selection screen that handle the PBO, PAI and so on.
- The exception class ZBCX_EXCEPTION. It will be thrown any errors into this exception class.
The report YDEMO_SALV_LIST_APP is a sample application with a simple dynpro and two ALV grids/list in it.
If the program was double click to any row, it will deep-down into second ALV grids.
The report YDEMO_SALV_TREE_APP is a sample application with a simple dynpro with ALV tree.
The report YDEMO_SALV_SPILTTING and YDEMO_SALV_SPILTTING_2 are a sample application with a simple dynpro with ALV by using CL_GUI_SPLITTER_CONTAINER.