当前位置:网站首页>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
边栏推荐
猜你喜欢

Black eat black? The man cracked the loopholes in the gambling website and "collected wool" for more than 100000 yuan per month

uniapp小程序框架-一套代码,多段覆盖

基于R语言的Meta分析【全流程、不确定性分析】方法与Meta机器学习

C语言-指针进阶

When AQS wakes up the thread, I understand why it traverses from the back to the front

LeetCode链表问题——206.反转链表(一题一文学会链表)

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

BigDecimal 的 4 个坑,你踩过几个?

Simulation of future air pollution changes

Redis solves the problem of oversold inventory
随机推荐
DOM事件流 事件冒泡-事件捕获-事件委托
没背景、没学历?专科测试员进入互联网大厂是不是真的没希望?
LeetCode链表问题——206.反转链表(一题一文学会链表)
Install nccl \ mpirun \ horovod \ NVIDIA tensorflow (3090ti)
MySQL八股知识点:从入门到删库
Meta analysis [whole process, uncertainty analysis] method based on R language and meta machine learning
Mysql优化
Unnamed Article 33
Add and modify the verification logic, and use -validation- to complete the group verification
奥特学园ROS笔记--6
地球系统模式(CESM)实践技术
Mathematical modeling and optimization analysis based on general optimization software gams
JVM第六讲:线上环境 FGC 频繁,如何解决?
汉字风格迁移篇---通过生成对抗网络学习一对多程式化汉字的转换和生成
Nacos introduction and deployment
[acwing] 1268. Simple questions
Trend of the times - the rise of cloud native databases
How to reproduce the official course of yolov5 gracefully (II) -- Mark and train your own data set
MySQL基础学习
Molecular skeleton transition tool -delinker introduction