当前位置:网站首页>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
边栏推荐
- Simulation of future air pollution changes
- CLM land surface process model
- pillow的原因ImportError: cannot import name ‘PILLOW_VERSION‘ from ‘PIL‘,如何安装pillow<7.0.0
- 使用Ansible中的playbook
- Application of remote sensing, GIS and GPS technology in hydrology, meteorology, disasters, ecology, environment and health
- Recommend 12 academic websites for free literature search, and suggest to like and collect!
- Mathematical modeling and optimization analysis based on general optimization software gams
- SWAT模型在水文水资源、面源污染模拟中的实践技术
- [weekly translation go] how to write your first program with go
- ALV报表流程图解
猜你喜欢

公交站间的距离 : 简单模拟题

MODFLOW flex, GMS, FEFLOW, hydraus practical application

pillow的原因ImportError: cannot import name ‘PILLOW_VERSION‘ from ‘PIL‘,如何安装pillow<7.0.0

Redis solves the problem of oversold inventory

MODFLOW Flex、GMS、FEFLOW、HYDRUS实践应用

Shell的read 读取控制台输入、read的使用

如何优雅的复现YOLOv5官方历程(二)——标注并训练自己的数据集

Distance between bus stops: simple simulation problem

提高shuffle操作中的reduce并行度

How to reproduce the official course of yolov5 gracefully (II) -- Mark and train your own data set
随机推荐
Briefly describe the application fields of WMS warehouse management system
Compilation method of flood control evaluation report and flood modeling under the new guidelines
Five simple and practical daily development functions of chrome are explained in detail. Unlock quickly to improve your efficiency!
Mathematical modeling and optimization analysis based on general optimization software gams
推荐系统-机器学习
npm操作指令
基于R语言的Meta分析【全流程、不确定性分析】方法与Meta机器学习
Excel VBA:实现自动下拉填充公式至最后一行
Improve reduce parallelism in shuffle operation
AXI协议(5):AXI协议的burst机制
NPM operation instruction
遥感、GIS和GPS技术在水文、气象、灾害、生态、环境及卫生等领域中的应用
Redis解决库存超卖问题
公交站间的距离 : 简单模拟题
SAP报表开发步骤
[weekly translation go] how to write your first program with go
The elderly who claim alimony from other children after being supported by their widowed daughter-in-law should be supported
JVM第二讲:类加载机制
阿里三面:MQ 消息丢失、重复、积压问题,如何解决?
Molecular skeleton transition tool -delinker introduction