SELECT-OPTIONS 的用法
来源:互联网 发布:javascript 转json 编辑:程序博客网 时间:2024/04/29 00:03
SELECT-OPTIONS - screen_options
Syntax
... [OBLIGATORY|NO-DISPLAY] 必输|不显示用于SUBMIT
[VISIBLE LENGTH vlen] 指定显示长度
[NO-EXTENSION] 不显示多值选择按钮
[NO INTERVALS] 不显示字段的HIGH条件
[MODIF ID modid] ... . 用于修改屏幕(系统表SCREEN)
用了很久了,还不知道SELECT-OPTIONS的完整用法,惭愧……
今天仔细研读了一下SAP帮助,受益非浅呀!
以下为SAP帮助中对SELECT-OPTIONS的描述:
Extras: 附加条件
1.... OBLIGATORY
2.... NO-DISPLAY
3.... VISIBLE LENGTH vlen
4.... NO-EXTENSION
5.... NO INTERVALS
6.... MODIF ID modid
Effect 作用
You can use these additions to declare the first input field as a required field, to suppress display on theselection screen, and to define the visible length. You can suppress display of the second input field and the pushbutton for multiple selection. All screen elements for theselection criterion can be assigned to a modification group.
你可以用这些附加项来声明首先输入的字段为必输字段,禁止显示在选择屏幕上,和定义显示长度。你可以禁止第二个输入字段和多先按钮显示在屏幕上。所有标准屏幕上的屏幕元素可以被分配给一个修改分组。
Note 注
In addition to the additions available, you can use the function module SELECT_OPTIONS_RESTRICT to restrict the number of selection options available and prohibit the value "E" for columnsign in the selection table before the selection screen is sent.
除了这些可用的附加项之处,你可以屏幕生成之前使用函数组SELECT_OPTIONS_RESTRICT来禁止可用的选择条件的数量并且禁止选择表中的列SIGN被赋值“E”。
Addition 1
... OBLIGATORY
Effect 作用
This addition defines the first input field for the selection criterion on the selection screen as a required field. If this field is blank, the user cannot exit display of the selection screen using theExecute function (F8), but only using the functionsBack, Exit, or Cancel.
这个选项定义了在选择屏幕上的标准选择的第一个输入字段作为必输字段。如果这个字段为空,用户就不能用运行函数(F8)来退出选择屏幕,只能使用Back,Exit, 或者 Cancel。
Addition 2
... NO-DISPLAY
Effect 作用
If you specify this addition, no screen elements are created on the selection screen for the selection criterion. In anexecutable program, a selection criterion of this type is used exclusively as part of the interface defined by the selection screen. It can be supplied with a value by the calling program when it is called withSUBMIT.
If the addition NO-DISPLAY is specified, the low and high columns in the selection table can have anyflat data types. These selection tables can only be supplied with data with aWITH addition to the SUBMIT statement.
如果你指定了这个条件,就没有标准选择的屏幕元素在选择屏幕上生成。在一个可执行程序中,这种类型的标准选择唯一地被用来作为被选择屏幕定义的接口的一部分。它可以被一个通过SUBMIT调用的程序提供一个数值。如果NO-DISPLAY被指定了,选择表中的LOW和HIGH列可以使用任何扁平的数据类型。这些选择表只能在SUBMIT语句的WITH条件中被提供数据。
Note 注
The length of the values transferred to columns low andhigh in the selection table, for which there is no input field, is not restricted to 45 characters, as is the case for selection criteria with input fields.
传送给没有输入字段的选择表中的LOW和HIGH列的数值长度不限制在45个字符骨,这和有输入字段的选择条件相同。
Addition 3
... VISIBLE LENGTH vlen
Effect 作用
This addition defines a visible length of vlen for the input fields, wherevlen must be specified directly as a positive number. If vlen is shorter than the length of columns low and high in the selection table and shorter than the maximum visible length, the input field is displayed at a length ofvlen and the entry can be scrolled. Otherwise, the addition is ignored.
这个条件定义输入字段的可见长度为vlen,vlen必须被直接指定成一个正数。如果veln比选择表中的列LOW和HIGH的长度短,并且小于最大的可见长度,那么这个输入字段就以vlen的长度被显示出来并且输入值可以滚动。否则,这个条件将被忽略。
Addition 4
... NO-EXTENSION
Effect 作用
If you specify this addition, the pushbutton for multiple selection is not created on theselection screen.
如果你指定了这个条件,选择屏幕上的多选按钮将不会显示出来。
Note 注
The user cannot access the dialog box for multiple selection on the selection screen, which means they cannot editselection tables containing several lines.
用户不能使用屏幕上的多选对话框,这意味着选择表不能包含多个单值行。
Addition 5
... NO INTERVALS
Effect 作用
If you specify this addition, the second input screen is not created on the selection screen.
如果你指定了这个条件,选择屏幕上的第二个输入框将不会生成。
Note 注
The user can only specify a single comparison in the first line in the selection table on the selection screen. The dialog box for multiple selections still allows interval selections.
用户只能为选择屏幕上的选择表在第一行指定单一值。多选对话框仍然充许多选。
Example 例子
Declaration of a selection criterion for which a single comparison is possible on the selection screen, but multiple selection isnot possible.
在选择屏幕上定义一个单一值可用的选择条件,并且多先框也被禁用。
DATA spfli_wa TYPE spfli.
SELECT-OPTIONS s_carrid FOR spfli_wa-carrid NO-EXTENSION
NO INTERVALS.
Addition 6
... MODIF ID modid
Effect 作用
The addition MODIF ID assigns all the screen elements for theselection criterion to the modification group modid that is assigned to column group1 in the system table screen. This means they can be modified with aMODIFY SCREEN statement before the selection screen is displayed. You must specify the name of the modification groupmodid directly and it can only contain a maximum of three characters.
MODIF ID选项为选择条件的所有屏幕元素指定到MODID可修改组,这个修改组被分配给屏幕表SCREEN的group1列。这就意味着它们可以在选择屏幕显示之前被MODIFY SCREEN语句修改。你必须直接指定可修改组modid的名字并且它最多只能包含三个字符。
Note 注
The modification groups that are assigned to columns group2 andgroup3 in the system table screen are set by the system when a selection screen is generated and are described with thescreen elements for a selection screen.
当一个选择屏幕生成时被指定给系统表SCREEN的列group2和group3的可修改组由系统设置并且被选择屏幕的屏幕元素所以识别。
- SELECT-OPTIONS 的用法
- SELECT-OPTIONS的用法
- 问题:html中的select的options的用法?
- Angularjs中ng-select和ng-options的用法详解
- SELECT-OPTIONS的控制
- Angularjs中select 的ng-repeat 和 ng-options 用法和获取选取值
- Angularjs中select 的ng-repeat 和 ng-options 用法和获取选取值
- SELECT-OPTIONS 的选择功能控制
- SELECT-OPTIONS 的选择功能控制
- select控件的动态options操作
- Web dynpro的SELECT-OPTIONS做成方法
- select options 相关的js函数
- 如何进一步限制SELECT-OPTIONS的输入
- 动态填充html select tag的options
- select options 相关的js函数
- jquery获取select 选中的options
- BitmapFactory.Options.inSampleSize 的用法
- BitmapFactory.Options.inSampleSize 的用法
- WIFI驱动设计原理
- 设计模式中类的关系
- lamp安装配置详细过程(把以前的笔记贴上来)
- Tomcat的安装与配置
- mysql 存储过程学习总结
- SELECT-OPTIONS 的用法
- box model 简译
- 如何使用Log4j?
- android源码下载(感谢cnetwei,kevin33643,crazysjf)
- Eclipse使用配色方案 Eclipse颜色主题插件:Eclipse Color Theme
- 二叉树的遍历算法(递回与非递回)
- textview加边框
- 【转载】如何让你的SQL运行得更快
- Android 通知栏ANR原因