当前位置:网站首页>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
边栏推荐
- How to design test cases well
- Ministry of Finance: IC design enterprises and software enterprises will be exempted from corporate income tax this year and next!
- If the recommendation effect is not satisfactory, it's better to try to learn the propeller chart
- Redis核心原理
- 打印日志的一些小技巧
- 模块八作业 - 消息数据 MySQL 表设计
- Linked list - the penultimate K nodes
- Oracle第二天(视图、索引、plsql、游标、存储过程和存储函数、触发器、jdbc访问存储过程和存储函数)
- 探索式软件测试
- 成为测试/开发程序员,小张:现实就来了个下马威......
猜你喜欢

Leetcode 50 day question brushing plan (day 1 - add two numbers 11.00-12.30)

During the oppo interview, 16 questions were thrown over. I was stupid

ALV屏幕输入选项学习

The second set of 2020 American Asian individual match

Oracle第一天(开发常用的知识点再回顾整理下)

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

NFT数字藏品系统开发:上线即售罄,网民“秒杀”数字藏品

Oracle day 2 (Views, indexes, PLSQL, cursors, stored procedures and stored functions, triggers, JDBC access stored procedures and stored functions)
![455. Distribute cookies [double pointer ++i, ++j]](/img/8c/cc5361caefceb6a4eb1c2ef8d5dede.png)
455. Distribute cookies [double pointer ++i, ++j]

The third day of SSM practice_ Paging assistant_ Security framework
随机推荐
Operation: skillfully use MySQL master-slave replication delay to save erroneously deleted data
Linked list - the first common node of two linked lists
Hello World
Ministry of Finance: IC design enterprises and software enterprises will be exempted from corporate income tax this year and next!
MySQL 遇到过死锁问题吗,你是如何解决的?
Ten year structure five year life-06 impulse to leave
Baidu PaddlePaddle easydl x wesken: see how to install the "eye of AI" in bearing quality inspection
Data warehouse: fact table of detailed dimensional modeling
OpenGL中的视差贴图的着色器代码
Test cases of common functions
Leetcode 50 day question brushing plan (day 3 - concatenate substrings of all words 10.00-13.20)
LeetCode_134_加油站
十年架构五年生活-06 离职的冲动
同步时现实密码不匹配
剑指offer 正则表达式匹配
Automated test tool playwright (quick start)
Arm中国回应“断供华为”事件!任正非表示“没有影响”!
Exploratory software testing
继续卷技术 埋头苦学,越学越会
8.1 Diffie Hellman key exchange