Skip to content

naruepan2/ABAP-SALV-List-Tree-MVC-Concept

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

88 Commits
 
 
 
 

Repository files navigation

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)

Overview

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:

SALV List

SALV Tree

Framework architecture

The framework consists of the following repo objects:

  1. The main controller class ZCL_MVCFW_BASE_SALV_CONTROLLER. A program will define its own main controller inheriting from this class.
  2. Interface class ZIF_MVCFW_BASE_SALV_VIEW for ZCL_MVCFW_BASE_SALV_LIST_VIEW and ZCL_MVCFW_BASE_SALV_TREE_VIEW
  3. 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.
  4. 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.
  5. 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.
  6. 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.
  7. The screen class ZCL_MVCFW_BASE_SSCR. It will manipulate selection screen that handle the PBO, PAI and so on.
  8. The exception class ZBCX_EXCEPTION. It will be thrown any errors into this exception class.

Demo application for SALV List

The report YDEMO_SALV_LIST_APP is a sample application with a simple dynpro and two ALV grids/list in it.

image

If the program was double click to any row, it will deep-down into second ALV grids.

image image

Demo application for SALV Tree

The report YDEMO_SALV_TREE_APP is a sample application with a simple dynpro with ALV tree.

image

Demo application for SALV Splitter

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.

image

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages