当前位置:网站首页>ABAP grammar learning (ALV)
ABAP grammar learning (ALV)
2022-07-26 05:11:00 【Lunar Yin shortage】
First of all, the most commonly used class group is :
TYPE-POOLS:SLIS.
There are many in this type group ALV And structured data types ( adopt TYPE To define the ,) We are writing ALV The form needs to be called .
The common ones are :
Let's write the first one ALV The basic process of the program is as follows :
First step : Define the tables to be used , namely TALBES Definition section , Then define TYPE-POOLS:SLIS.
The second step : Definition “1” These data types or entity objects of inner tables mentioned in
The third step : Define some variables that need to be used , For example, we often define :
Data: w_repid like sy-repid, "ABAP Program , We usually take the current program
w_callback_ucomm type sils_formname, “ Character , function
w_print type slis_print_alv, " Type group
w_layout type slis_layout_alv, " Type group
w_html_top_of_page type slis_formname, " Character
w_fieldcat_alv like line of i_fieldcat_alv, “ Referenced from the above data structure type
w_excluding like line of i_excluding, “ ditto
w_events like line of i_events, “ ditto
w_event_exit like line of i_event_exit, “ ditto
w_list_comments like line of i_list_comments.“ ditto
Step four : Define your own selection screen
Step five : Definition INITIALIZATION part , In this part, it is often necessary to specify w_repid Value , w_repid = sy-repid
Step six : start-of-selection part
Use a sub function to complete the pair ALV Assignment of form title area (i_list_comments).
Use a subfunction to complete the data grabbing you need
Use a subfunction to complete the column name row of the list to be displayed ( first line ) The relevant assignment of (i_fieldcat_alv) And settings
Use a subfunction to set the output format (i_layout), For example, double click a record to open a dialog box ? Which function key is used to trigger and so on
Use a subfunction FORM DISPLAY_DATA To show the data that we have encapsulated separately , You need to call two common FUNCTION MODULE:
FUNCTION ‘REUSE_ALV_GRID_DISPLAY’ “ Used to display form data
FUNCTION ‘REUSE_ALV_COMMENTARY_WRITE’ “ Used to display the form title
边栏推荐
- I talked with the interviewer about MySQL optimization in five dimensions
- DOM事件流 事件冒泡-事件捕获-事件委托
- 汉字风格迁移篇---通过生成对抗网络学习一对多程式化汉字的转换和生成
- 嵌入式开发小记,实用小知识分享
- Go-Excelize API源码阅读(六)—— DeleteSheet(sheet string)
- Excel VBA: summarize calculation output results by date (SUMIF)
- Nacos registry
- Axi protocol (5): burst mechanism of Axi protocol
- When AQS wakes up the thread, I understand why it traverses from the back to the front
- CLM陆面过程模式
猜你喜欢

JVM Lecture 5: how to deal with peak push of vertical and horizontal data

Mysql主从同步及主从同步延迟解决方案

Alibaba three sides: how to solve the problems of MQ message loss, duplication and backlog?

ALV报表流程图解

Please elaborate on the implementation principle of synchronized and related locks

推荐必读:测试人员如何快速熟悉新业务?

Learn to map with nature medicine -- complex heat map
![[weekly translation go] how to write your first program with go](/img/77/cf77a46340a39797382fd7b60517d5.png)
[weekly translation go] how to write your first program with go

CLM陆面过程模式

【pytorch】torch1.8.1安装、查看torch版本、GPU是否可用
随机推荐
嵌入式分享合集20
Recommend 12 academic websites for free literature search, and suggest to like and collect!
基于R语言的Meta分析【全流程、不确定性分析】方法与Meta机器学习
Mysql主从同步及主从同步延迟解决方案
阿里云工业视觉智能工程师ACP认证——备考
地球系统模式(CESM)实践技术
The landing of tdengine in the GPS and AIS scheduling of Zhongtian steel
科技论文翻译,俄语文档的语法有何特点
DOM事件流 事件冒泡-事件捕获-事件委托
Mysql优化
JVM第二讲:类加载机制
What are the characteristics of the grammar of Russian documents in the translation of scientific papers
Alibaba cloud industrial vision intelligent engineer ACP certification - Preparation
[pytorch] install torch 1.8.1 and check whether torch version and GPU are available
“双碳”目标下资源环境中的可计算一般均衡(CGE)模型实践技术
C语言力扣第41题之缺失的第一个正数。两种方法,预处理快排与原地哈希
MODFLOW Flex、GMS、FEFLOW、HYDRUS实践应用
Earth system model (cesm) practical technology
Redis过期删除策略和内存淘汰策略
Ansible tutorial