当前位置: 代码迷 >> 综合 >> ALV( 六 )、OO ALV 框架和布局
  详细解决方案

ALV( 六 )、OO ALV 框架和布局

热度:96   发布时间:2024-01-31 17:07:13.0

OO ALV属于一种SAP UI的框架,是以CFW( Control Framework )为基础实现的:

CL_GUI_OBJECT                                                      Proxy Class for a GUI Object

         |-- CL_FORMPAINTER_BASEWINDOW      SAP Form Painter Window Base Class

         |   |-- CL_FORMPAINTER_BITMAPWINDOW    SAP Form Painter Bitmap Window Class

         |   |-- CL_FORMPAINTER_TEXTWINDOW     SAP Form Painter Text Window Class

         |-- CL_GUI_CONTROL                                     Proxy Class for Control in GUI

         |   |-- CL_DSVAS_GUI_BUSIGRAPH           DSVAS: Proxy for Business Graphic

         |   |-- CL_GFW_GP_PRES_CHART                        GFW: Product--specific section of CL_GUI_GP_PRES (Chart)

         |   |-- CL_GFW_GP_PRES_PIG                     GFW: product specific section for web view

         |   |-- CL_GFW_GP_PRES_SAP                    GFW: product--specific section of CL_GUI_GP_PRES (SAP BUSG)

         |   |-- CL_GUI_ALV_GRID_BASE                 Basis Class for ALV Grid

         |   |   |-- CL_CALENDAR_CONTROL_SCHEDULE      Calendar View (Day, Week, Month)

         |   |   |--CL_GUI_ALV_GRID                           ALV List Viewer

         |   |     |-- CL_ALV_DD_LISTBOX                           D&D List Box

         |   |     |-- CL_BUKF_CAT_GRID                            Key Figures -- Grid of categories

         |   |     |-- CL_BUKF_DSRC_GRID                         Key Figures -- Grid for Data sources

         |   |     |-- CL_BUKF_FILTER_GRID              Key Figures -- Filter for Key Figure

         |   |     |-- CL_BUKF_KF_GRID                               Key Figures -- Grid for Key Figures

         |   |     |-- CL_BUKF_TERMS_GRID                      Key Figures -- Grid for terms

         |   |     |-- CL_FTR_GUI_ENTRY_ALV                  Class: ALV Grid Control for Initial Screen (Without Toolbar)

         |   |     |-- CL_GFW_GP_GRID_ALV                    ALV grid proxy

         |   |-- CL_GUI_AQQGRAPHIC_ADAPT      Network Adapter

         |   |-- CL_GUI_AQQGRAPHIC_CONTROL     BW Basis Class Network Control

         |   |   |-- CL_GUI_AQQGRAPHIC_NETPLAN         Network Control

         |   |-- CL_GUI_BARCHART                             Bar chart wrapper

         |   |-- CL_GUI_BORDERPAINTER                 SAP Border Painter Control Proxy Class

         |   |-- CL_GUI_BTFEDITOR                             SAP BTF Editor Control Proxy Class

         |   |-- CL_GUI_CALENDAR                             Calendar Control Proxy Class

         |   |-- CL_GUI_CHART_ENGINE_WIN       Graphics: Presentation Graphics (SAP GUI for Windows)

         |   |-- CL_GUI_CONTAINER                            Abstract Container for GUI Controls

         |   |   |-- CL_GUI_CONTAINER_INFO         Information on Container Controls

         |   |   |-- CL_GUI_CUSTOM_CONTAINER     Container for Custom Controls in the Screen Area

         |   |   |-- CL_GUI_DIALOGBOX_CONTAINER   Container for Custom Controls in the Screen Area

         |   |   |   |-- CL_ECL_VIEWER_FRAME                  Manage EAI Control in Own Window

         |   |   |   |-- CL_GUI_ECL_VIEWERBOX      ECL Viewer as Dialog Box

         |   |   |-- CL_GUI_DOCKING_CONTAINER    Docking Control Container

         |   |   |-- CL_GUI_EASY_SPLITTER_CONTAINER   Reduced Version of Splitter Container Control

         |   |   |   |-- CL_EU_EASY_SPLITTER_CONTAINER  Internal Test; Do Not Use

         |   |   |-- CL_GUI_GOS_CONTAINER                   Generic Object Services Container

         |   |   |-- CL_GUI_SIMPLE_CONTAINER             Anonymous Container

         |   |   |-- CL_GUI_SPLITTER_CONTAINER    Splitter Control

         |   |-- CL_GUI_ECL_2DCOMPARE               Compare Module for 2D Viewer

         |   |-- CL_GUI_ECL_3DCOMPARE               Compare Module for 3D Viewer

         |   |-- CL_GUI_ECL_3DMEASUREMENT      Measurement Module for 3D Viewer

         |   |-- CL_GUI_ECL_3DSECTIONING           Sectioning Module for 3D Viewer

         |   |-- CL_GUI_ECL_MARKUP                                Markup (Redlining) Component

         |   |-- CL_GUI_ECL_PMI                                           PMI Module for the 3D Viewer

         |   |-- CL_GUI_ECL_PRIMARYVIEWER       Basis Class for ECL Viewers (2D und 3D)

         |   |   |-- CL_GUI_ECL_2DVIEWER               Engineering Client 2D Viewer

         |   |   |-- CL_GUI_ECL_3DVIEWER               Engineering Client 3D Viewer

         |   |-- CL_GUI_ECL_VIEWER                          Proxy Class for Engineering Client Viewer

         |   |-- CL_GUI_FORMPAINTER                     SAP Form Painter Control Proxy Class

         |   |-- CL_GUI_GLT                                            Internal; Do Not Use!

         |   |-- CL_GUI_GP                                             GFW: Superclass of all graphics proxies

         |   |   |-- CL_GUI_GP_GRID                           GFW: Grid proxy

         |   |   |-- CL_GUI_GP_HIER                            GFW: Structure graphics

         |   |   |-- CL_GUI_GP_PRES                           GFW: Business graphic

         |   |-- CL_GUI_GRLT                                         Internal; Do Not Use !! ( restricted license -- see docu)

         |   |-- CL_GUI_HTML_EDITOR                      HTML Editor

         |   |-- CL_GUI_ILIDRAGNDROP_CONTROL           Interactive List: Drag & Drop

         |   |-- CL_GUI_MOVIE                                     SAP Movie Control

         |   |-- CL_GUI_NETCHART                              Network wrapper

         |   |   |-- CL_GFW_GP_HIER_SAP               GFW: Product--specific section of CL_GUI_GP_HIER (NETZ)

         |   |-- CL_GUI_PDFVIEWER                           PDF Viewer

         |   |-- CL_GUI_PICTURE                                  SAP Picture Control

         |   |-- CL_GFW_GP_PRES_WEB                   GFW: product specific section for web view

         |   |-- CL_GUI_RTF_EDITOR                          SAP SAPscript Editor Control

         |   |   |-- CL_GUI_SAPSCRIPT_EDITOR      SAP SAPscript Editor Control

         |   |-- CL_GUI_SELECTOR                               SAPSelector: Control for selecting colors or bitmaps

         |   |-- CL_GUI_SPH_STATUS_CONTROL      SAPphone: Status Event Control

         |   |-- CL_GUI_TABLEPAINTER                     SAP Table Painter Control Proxy Class

         |   |-- CL_GUI_TIMER                                      SAP Timer Control

         |   |-- CL_GUI_TOOLBAR                                         Toolbar Control

         |   |   |-- CL_CCMS_AL_GUI_TOOLBAR              Alerts: GUI Toolbar Used in the Visual Framework

         |   |-- CL_GUI_WCF_WWP                            Internal Tool -- DO NOT USE

         |   |-- CL_KW_AUTOMATION_CONTROL     Helper Class for General Automation Objects

         |   |-- CL_LC_EDITOR_CONTROL                 Lifecycle Editor Control

         |   |   |-- CL_GCM_LCEDITOR_CONTROL           Control for the display of definition life cycles

         |   |-- CL_SOTR_SPELLCHECKER                   Interface with OTR Spellchecker

         |   |-- CL_SRM_BASE_CONTROL                 SRM Control

         |   |   |-- CL_SRM_STACKED_CONTROL             RM Control with Stack

         |   |-- CL_TREE_CONTROL_BASE                 Internal Tree Control Class

         |   |   |--CL_GUI_SIMPLE_TREE(参考《User Dialogs.docx》文档)  Simple Tree Control

         |   |   |-- CL_ITEM_TREE_CONTROL                     Internal Tree Control Class

         |   |     |-- CL_GUI_COLUMN_TREE                     Column Tree Control

         |   |     |   |-- BDMT_CONTROL                              Administers Tree Control for Monitoring

         |   |     |   |-- CL_BUCC_TREE                                  Consistency Checks -- Library Tree

         |   |     |   |-- CL_GFW_COLUMN_TREE             Do not use!!!!!!!!

         |   |     |   |-- CL_GFW_GP_HIER_SAPTREE      GFW: Product--specific section of CL_GUI_GP_HIER

         |   |     |   |-- CL_HU_COLUMN_TREE                 Tree that Displays Handling Units

         |   |     |-- CL_GUI_LIST_TREE                      List Tree Control

         |   |-- C_OI_CONTAINER_CONTROL_PROXY    For Internal Use

         |   |-- SCE_HTML_CONTROL_EVENT_HANDLER   Event Handler for SCE HTML Control

         |   |-- CL_ALV_TREE_BASE                             Basis Class ALV Tree Control

         |   |   |-- CL_GUI_ALV_TREE                          ALV Tree Control

         |   |   |   |-- CL_GCM_WORKLIST_TREE     CM: Worklist

         |   |   |   |-- CL_PT_GUI_TMW_ALV_TREE        Small Modification to CL_GUI_ALV_TREE

         |   |   |-- CL_GUI_ALV_TREE_SIMPLE        Simple ALV Tree

         |   |   |-- CL_SIMPLE_TREE_VIEW_MM                  Simplest Kind of Tree

         |   |-- CL_GUI_ECATT_RECORDER                        SAP eCATT Recorder Control -- To be used by eCATT only!

         |   |-- CL_GUI_TEXTEDIT(参考《User Dialogs.docx》文档) SAP TextEdit Control

         |   |   |-- CL_GCM_TEXTEDIT                         CM: Long text control

         |   |   |-- CL_SOTR_TEXTEDIT                         Edit Control for the OTR

         |   |-- CL_GUI_HTML_VIEWER                     HTML Control Proxy Class

         |    |-- CL_BFW_HTML_VIEWER_POC                   Browser Framework: Proxy for HTML Control

         |    |-- CL_CCMS_BSP_VIEWER                                HTML Control Proxy Class

         |    |   |-- CL_CCMS_AL_OBJ_DET_HTML_VIEWER Alerts: Component That Displays Object Properties with HTML

         |    |-- CL_CCMS_FROG_HTML_VIEWER              CL_GUI_FROG_HTML_VIEWER

         |    |-- CL_SSF_HTML_VIEWER                        Smart Forms: Enhanced HTML Viewer

         |-- CL_GUI_ECL_MATRIX                               Represents a Complete Data Type with 13 Floats

         |-- CL_GUI_RESOURCES                                 GUI Resources (Fonts, Colors, ...)

         |   |-- CL_WF_GUI_RESOURCES                  Getting Front Settings

         |   |-- CL_WF_GUI_RESOURCES_4_HTML            Get Front Settings for HTML Generation

         |-- CL_KW_AUTOMATION_OBJECT          For Internal Use

         |-- CL_TABLEPAINTER_BASETABLE            SAP Table Painter Table Base Class

         |   |-- CL_TABLEPAINTER_TABLE                 SAP Table Painter Table Class

         |   |-- CL_TABLEPAINTER_TEMPLATE        SAP Table Painter Template Class

         |-- C_OI_AUTOMATION_OBJECT               For Internal Use

         |-- CL_GUI_FRONTEND_SERVICES            Frontend services

汪正军博客OO ALV

其中包括:

LVC_S_FACT,LVC_S_LAYO的介绍,

set_table_for_first_display方法的介绍,

隐藏标准工具栏,

refresh_table_display的参数( 可设置滚动条和布局和字段目录 ),

工具栏新增自定义按钮,

容器,

常用方法:get_current_cell获取鼠标所在网格位置;get_frontend_layout;get_frontend_fieldcat;get_selected_cells;

get_selected_columns;refresh_table_display;

常用事件:double_click双击;hotspot_click单击热点;增加button;数据变化data_changed(_finished);按钮单击事件button_click;刷新布局;HTTP超链接;下拉框;单元格风格;

 

  相关解决方案