`

TYPE-POOLS

    博客分类:
  • ABAP
F# 
阅读更多
我们在定义Tables的时候,一般会加上TYPE-POOLS SLIS.

slis应该是个Package.声明了它后就可以用它包括的函数、类、消息等。

SLIS_FIELDCAT_ALV 是控制ALV的列的信息,比如列宽、颜色、是否可修改等。

SLIS_LAYOUT_ALV 是控制整体的ALV的显示状态的,比如隔行显示不同的颜色,自动优化全部列的宽度,全部列可修改等等。

下面一个控制ALV单元格颜色的例子:

DATA: BEGIN OF IT_BUSS OCCURS 0,
          PXKCSL TYPE P DECIMALS 0,   "批销库存数量
          SEL(1),
          colour TYPE slis_t_specialcol_alv,   "这个需要加
      END OF IT_BUSS.
......
      LOOP AT IT_BUSS.
          F_TABIX = SY-TABIX.
          color-fieldname = 'JHCGS'.
          color-color-col = '9'.
          APPEND color.
          IT_BUSS-colour = color[].
          modify IT_BUSS INDEX F_TABIX.
      ENDLOOP.
.......
DATA: gs_layout TYPE slis_layout_alv. "整体alv的属性
gs_layout-colwidth_optimize = 'X'.     "最合适的列宽
gs_layout-box_fieldname = 'CHX'. "CHX是做批量选择的字段
gs_layout-f2code = 'LOOK'.

DATA: it_fields TYPE slis_t_fieldcat_alv.
DATA: wa_fields TYPE LINE OF slis_t_fieldcat_alv.
gs_layout-coltab_fieldname    = 'COLOUR'."加入修改的颜色

REFRESH it_fields.
CLEAR wa_fields.                     "alv中具体字段的属性
分享到:
评论

相关推荐

    ALV 显示.docx

    TYPE-POOLS:slis. "alv用的的表 DATA lt_fieldcat TYPE slis_t_fieldcat_alv. " 储存fieldcat的内表,(字段清单) DATA wa_fieldcat TYPE slis_fieldcat_alv. " fieldcat 的工作区 DATA ls_layout TYPE slis_layout...

    ABAP动态内表的收集

    type-pools: slis. field-symbols: <dyn_table> type standard table, ” 内表结构 , ” 表头 <dyn_field>. ” 项 data: dy_table type ref to data, dy_line type ref to data, ” 行 xfc type lvc_s_fcat,...

    SAP ABAP动态内表总结

    type-pools: slis. field-symbols: <dyn_table> type standard table, ” 内表结构 , ” 表头 <dyn_field>. ” 项 data: dy_table type ref to data, dy_line type ref to data, ” 行 xfc type lvc_s_...

    alv显示更改,删除,保存,批导入.docx

    TYPE-POOLS: slis. "alv "要显示alv内容的内表 DATA: BEGIN OF wa_out, matnr LIKE zewmt026-matnr, zbtype LIKE zewmt026-zbtype, zqty LIKE zewmt026-zqty, meins LIKE zewmt026-meins, zcdate LIKE zewmt026...

    生成XML文件ABAP程序

    TYPE-POOLS: ixml. CLASS cl_ixml DEFINITION LOAD. TYPES: BEGIN OF xml_line, data(256) TYPE x, END OF xml_line. DATA: l_ixml TYPE REF TO if_ixml, l_streamfactory TYPE REF TO if_ixml_stream_factory...

    om-agones-integration

    --tags=integration --scopes=gke-default --num-nodes=4 --machine-type=n1-standard-8 第2步-为过去的用户创建节点池: gcloud container node-pools create agones-system \ --cluster=integration \ --node-...

    Android终极脱壳

    The Terminator to Android Hardening Services Outline Background DexHunter Analysis of major ...Reorganize constant pools in each class file into shared and type-specific constant pools ...

    ARM® Compiler v5.06 for µVision® armasm User Guide

    4.7 Literal pools 4.8 Load addresses into registers 4.9 Load addresses to a register using ADR 4.10 Load addresses to a register using ADRL 4.11 Load addresses to a register using LDR Rd, =label 4.12 ...

    Java 2 核心技术 卷1&卷2 CHM版 英文版

    Multithreadingincluding the java.util.concurrent library, locks, condition objects, futures, thread pools, thread-safe collections, threads and Swing Collection classescollections framework, ...

    (重要)AIX command 使用总结.txt

    P ->列出预定义设备对象类中设备的有关信息,即支持的设备,缺省显示信息包括class,type,subclass,description r ColumnName ->指定列名 S State ->列出指定状态的设备,3种状态可选,(1)已定义->defined,d,D,0;(2)...

    雷达技术知识

    关于雷达方面的知识! EFFECTIVENESS OF EXTRACTING WATER SURFACE SLOPES FROM LIDAR DATA WITHIN THE ACTIVE CHANNEL: SANDY RIVER, OREGON, USA by JOHN THOMAS ENGLISH A THESIS Presented to the Department ...

    Golang2-new.docx

    11. 缓冲信道和工作池(Buffered Channels and Worker Pools) 179 11.1. 什么是缓冲信道? 179 11.2. 死锁 182 11.3. 长度 vs 容量 183 11.4. WaitGroup 184 11.5. 工作池的实现 186 12. Select 188 12.1. ...

    Utilities for Windows NT 源码

    NOLOCKWS Especially for large PC pools in universities or schools it is very annoying when users lock their NT workstations, leave, and forget to come back. Subsequent users have the choice of ...

    The Java EE 6 Tutorial Basic Concepts 4th Edition

    DataSource Objects and Connection Pools 530 Resource Injection 531 Resource Adapters and Contracts 534 Metadata Annotations 538 Common Client Interface 540 Further Information about Resources 541...

    python3.6.5参考手册 chm

    PEP 451: A ModuleSpec Type for the Import System Other Language Changes New Modules asyncio ensurepip enum pathlib selectors statistics tracemalloc Improved Modules abc aifc argparse ...

    ansible-role-libvirt-host:该角色将主机配置为LibvirtKVM虚拟机管理程序。 它还可以在主机上配置存储池和网络

    libvirt_host_pools是要定义和启动的池的列表。 每个项目应为包含以下项目的字典: name池的名称。 type池的类型,目前仅支持dir , logical和rbd 。 支持lvm2作为logical的别名,但不赞成使用该别名,并且在将来...

    微软内部资料-SQL性能优化2

    Contents Module Overview 1 Lesson 1: Memory 3 Lesson 2: I/O 73 Lesson 3: CPU 111 Module 3: Troubleshooting Server Performance ...Troubleshooting server performance-based support calls requires ...

    uboott移植实验手册及技术文档

    实验三 移植U-Boot-1.3.1 实验 【实验目的】 了解 U-Boot-1.3.1 的代码结构,掌握其移植方法。 【实验环境】 1、Ubuntu 7.0.4发行版 2、u-boot-1.3.1 3、FS2410平台 4、交叉编译器 arm-softfloat-linux-gnu-...

    Solaris 10 System Administration Essentials

    5.1.4 Determining a File System Type 104 5.1.5 Monitoring File Systems 105 5.2 UFS File Systems 105 5.2.1 Creating a UFS File System 106 5.2.2 Backing Up and Restoring UFS File Systems 107 5.2.3 Using...

    内存管理内存管理内存管理

    内存管理内幕 dragonimp's blog coder.developer.[designer].ArchitecturE.manager.^_^... posts - 29, comments - 121, trackbacks - 27 My Links Home Contact ...文中将为您提供如何管理内存的细节,然后...

Global site tag (gtag.js) - Google Analytics