当前位置:网站首页>ALV screen input option learning
ALV screen input option learning
2022-07-26 18:37:00 【Lunar Yin shortage】
REPORT Program structure
1. Data statement
2. Select the settings of the screen
3. initialization
4. Select screen processing
5. The main program
6. Post execution processing ( Subroutines )
REPORT The program name
NO STANDARD PAGE HEADING
LINE-SIZE col
LINE-COUNT n(m)
Each page of the form output is generated by n That's ok , Among them m Row as footer ;
MESSAGE-ID mid
Message object
DEFINING DATABASE ldb
Use logical database , Automatically generate
Data definition ——Tables sentence
The basic format
TABLES dbtab.
Dbtab Refer to ABAP A database object of the dictionary , It can be a transparent table , View and structure .
The function of this statement is to declare a table workspace , Be similar to C In language STRUCTURE
This table workspace consists of multiple fields , Its name , The type and dbtab The fields of are exactly the same
ABAP The type of the field in the dictionary object is automatically converted to ABAP The type of program ;
Table workspace is usually a global variable .
Data definition ——TYPES sentence
1.TYPE typ.
2.TYPE type(len).
3.TYPE:BEGIN OF structype
…
END OF structype.
4. TYPE itabtype {TYPE tabking OF linetype|like tabkind OF lineobj}[WITH [UNIQUE|NON-UNIQUE] keydef] [INITIAL SIZE n].
5. TYPES itabtype TYPE RANGE OF type.
TYPES itabtype LIKE RANGE OF f.
##. Data definition +DATA sentence
1. Define a variable of a simple type
2. Define an inner table
3. Define a shared data area
For external subroutine calls
Data definition —— Define the input screen
use SELECTION-SCREEN Statement to define the input screen
1. Generate blank columns
grammar : SELECTION SKIP []
Case study
SELECT-SCREEN SKIP 2.
Generate two blank columns
2. Create a bottom line
grammar : SELCTION-SCREEN ULINE /(length)
Case study :
SELECTION-SCREEN ULINE /10(30).
From 10 The lattice begins to produce a length 30 Bottom line
3. Print notes
grammar :SELECTION-SCREEN COMMENT /(length)
Example:
REMARK = ‘Pls enter your name’.
SELECTION-SCREEN COMMENT /10()
REMARK.
4. Enter several data items in the same column
grammar :
SELECTION-SCREEN BEGIN OF LINE.
…
SELECTION-SCREEN END OF LINE.
Case study :
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN POSITION 20.
PARAMETERS NAME(10).
SELECTION-SCREEN POSITION 40.
PARAMETERS BIRTH TYPE D.
SELECTION-SCREEN END OF LINE.
stay 20 Grid input NAME Content ,40 Grid input ,BIRTH The content of
PARAMETERS sentence
PARAMETERS Is the basic input command , Be similar to BASIC Of INPUT command , But you cannot use floating-point format
grammar :
PARAMETERS
[DEFAULT ] [LOWER CASE]
[OBLIGATORY] [AS CHECKBOX]
[RADIOBUTTON GROUP ]
Case study :
PARAMETER : NAME(8),
AGE TYPE I,
BIRTH TYPE D.
Execution results 
The date input format is MM/DD/YY,MM/DD/YY,MMDDYY or MMDDYYYY, Such as the input 020165 Express 1965 year 02 month 01 Japan
The date input range is 1950 to 2049 year
1.DEFAULT Set the preset value entered ,
Case study
PARAMETERS: COMPANY(20) DEFAULT “DELTA”,
BIRTH TYPE D DEFAULT “19650201”\
2.LOWER CASE
ABAP The default is to automatically convert the string input value to uppercase , Adding this parameter will turn the input content into lowercase
3.OBLIGATORY
Mandatory input , Adding this parameter will require the user to enter in this line
4.AS CHECKBOX
Input CHECKBOX The format of ( That is, the format of the check box )
Example:
PARAMETERS: TAX AS CHECKBOX DEFAULT ‘X’.
NTD AS CHECKBOX
Execution results 
5.RADIOBUTTON GROUP Click box mode
Input RADIO BUTTON GROUP The way
Example:
PARAMETERS:BOY RADIOBUTTON GROUP SEX DEFAULT ‘X’,
GIRL RADIOBUTTON GROUP SEX.
SELECT-OPTIONS sentence
SELECTION-OPTIONS The value entered is actually placed in internal table Medium , The Internal table There are four options
Namely :SIGN,OPTION,LOW,HIGH…
Condition screening , Inspection conditions , Input screen assignment , Input condition Rear can cooperate SELECT Command from TABLE Read qualified data ,
To execute or put directly into Internal Table in , The condition has four parameters :
SIGN:
I : Table the data matching the filter criteria
E : Table data that does not meet the filter criteriaOPTION: Condition symbol for comparison
EQ( be equal to ),NE( It's not equal to ),GT( Greater than ),LE( Less than ),CP( contain ),NP( It doesn't contain )
3.LOW: minimum value
4.HIGH: Maximum
grammar :
SELECTION-OPTIONS FOR
Example:
TABLES SPFLI.
SELECTION-OPTIONS AIRLINE FOR SPFLI-CONNID.
Save the input value of the condition into AIRLINE, And choose SPFLI Medium CONNID Options
Execution results :

Condition input selection screen
1. since Table Select the
Press the country arrow on the right of the entry , hand over
边栏推荐
- Vector canoe menu plugin getting started
- The first day of Oracle (review and sort out the common knowledge points of development)
- 《圆圈正义》的信念
- 同步时现实密码不匹配
- [translation] Why do you need an API gateway to manage access to your API?
- ssm练习第二天_项目拆分moudle_基本增删改查_批量删除_一对一级联查询
- MPLS experiment
- OpenGL中的视差贴图的着色器代码
- [ Kitex 源码解读 ] 服务发现
- 神经网络学习(2)前言介绍二
猜你喜欢

Vector CANape - How to Send Receive CAN Message in CANape

2020美亚个人赛复盘

ssm练习第四天_获取用户名_用户退出_用户crud_密码加密_角色_权限

Sign up now | cloud native technology exchange meetup Guangzhou station has been opened, and I will meet you on August 6!

Privacy computing basic component series - confusion circuit

【一知半解】线程池

Redis master-slave replication, read-write separation, sentinel mode

Linked list - the penultimate K nodes

俄语翻译的就业前景怎样 如何做好俄语翻译工作

Are you suitable for automated testing?
随机推荐
Baidu PaddlePaddle easydl x wesken: see how to install the "eye of AI" in bearing quality inspection
MPLS experiment
Meta Cambria手柄曝光,主动追踪+多触觉回馈方案
"Wei Lai Cup" 2022 Niuke summer multi school training camp 3 record
同步时现实密码不匹配
How about the employment prospects of Russian translation? How to do a good job of Russian translation
Linked list - the penultimate K nodes
Offer set (1)
Flask 封装七牛云
Leetcode 0137. number II that appears only once
如何做好测试用例设计
Exploratory software testing
打印日志的一些小技巧
凝心聚力,心心向印!印度中资手机企业协会(CMA)正式运营!
Accused of excessive patent licensing fees! The U.S. Court ruled that Qualcomm violated the antitrust law: Qualcomm's share price fell 10.86%!
ICML 2022 (Part 4) | | graph hierarchical alignment graph kernel to realize graph matching
Are you suitable for automated testing?
Some tips for printing logs
NFT数字藏品系统开发:上线即售罄,网民“秒杀”数字藏品
During the oppo interview, 16 questions were thrown over. I was stupid