`
zjut_xiongfeng
  • 浏览: 269734 次
  • 性别: Icon_minigender_1
  • 来自: 杭州
社区版块
存档分类
最新评论

ABAP syst常用字段

阅读更多

ABAP常用系统字段SYST

2008-11-27 15:49

1. SY-PAGNO当前页号
2. SY-DATUM
当前时间
3. SY-LINSZ
当前报表宽度
4. SY-LINCT
当前报表长度
5. SPACE
空字符
6. SY-SUBRC
执行状态为0,表示成功.
7. SY-UNAME
用户名
8. SY-UZEIT
当前时间
9. SY-TCODE
当前的事务代码
10. SY-LSIND
列表索引页
11. SY-LISTI
上一个列表的索引
12. SY-LILLI
绝对列表中选定行的行号
13. SY-CUROW
屏幕上的行
14. SY-CUCOL
光标列
15. SY-CPAGE
列表的当前显示页
16. SY-STARO
真实行号
17. SY-LISEL
选择行的内容,长度为255
18. SY-LINNO
当前行
19. SY-INDEX
:做无条件循环是的次数值.
20. SY-FDPOS
:子字符串在源串中的位置。

Name

Type

Content

sy-abcde

c(26)

包含了字母表。可以用来通过指定偏移/长度直接访问独立的字母,而无需考虑代码页。

Contains the alphabet. Can be used to access individual letters directly by specifying the offset/length, regardless of thecode page.

sy-batch

c(1)

在一个后台运行的ABAP程序中设置为“X”,否则就是初始值。

Set to "X" in an ABAP program that runs in the background, otherwise initial.

sy-binpt

c(1)

在批处理输入会话中设置为“X”,在ABAP程序中调用usingCALL TRANSACTION USING。否则就是初始值。

Set to "X" during processing ofbatch input sessions, and in ABAP programs called usingCALL TRANSACTION USING. Otherwise initial.

sy-calld

c(1)

在一个调用序列中的第一个程序里为空字符串,否则为值“X”。在调用usingCALL TRANSACTIONCALL DIALOG或者SUBMIT ... AND RETURN后变为“X”。如果程序以LEAVE TO TRANSACTION或者从一个屏幕事务开始的话,则为空。使用SUBMIT(没有AND RETURN)时设定为调用它的程序的值。

Contains a blank character in the first program in acall sequence, otherwise contains the value "X". Is set to "X" after calls usingCALL TRANSACTION,CALL DIALOG, orSUBMIT ... AND RETURN. Empty if the program was started usingLEAVE TO TRANSACTIONor a transaction from thescreen. A call usingSUBMIT(withoutAND RETURN) assumes the value of the calling program.

sy-callr

c(8)

当打印清单时,显示打印从何处开始的值,例如NEW-PAGE为程序控制的打印,或者RSDBRUNT为从一个选择屏幕打印。

When printing lists, contains a value that displays where the printing was started, for example,NEW-PAGEfor program-controlled printing, or RSDBRUNT for printing from theselection screen.

sy-colno

i

在清单缓冲区中创建清单过程中的当前位置。从1开始计算。在非Unicode系统中,这个位置也符合显示清单中的列。在Unicode系统中,由于清单缓冲区中的一个字符可能占多列,这只保证每个输出的最低和最高的输出能力。

Current position during creation of a list in the list buffer. Counting begins at 1. In non-Unicode systems, this position also corresponds to the column in the displayed list. In Unicode systems, this is only guaranteed for the lower and upper output limits applicable to each output, as one character may take up more columns in the list than positions in the list buffer.

sy-cpage

i

当清单事件被触发时,显示在清单顶端的页码。从1开始。

Page number of the page displayed at the top of the list for which a list event was triggered. Counting begins at 1.

sy-cprog

c(40)

在外部程序调用中,调用程序的名字,否则就是当前程序的名字。如果一个程序包含多级程序调用,sy-cprog包含框架程序的名字,而不是设置为程序调用序列中的框架程序名字。

Inprocedurescalled externally, the name of the calling program, Otherwise the name of the current program. If a procedure called externally calls another external procedure,sy-cprogcontains the name of theframework program, and is not set to the name of the framework program of the subsequent calling program.

sy-cucol

i

在屏幕上显示的横向指针的位置。从第2列开始。

Horizontal cursor position in the display on ascreen. Counting begins at column 2.

sy-curow

i

在屏幕上显示的纵向指针的位置。从第1行开始。

Vertical cursor position on the screen display of a screen. Counting begins at line 1.

sy-datar

c(1)

PAI中,如果屏幕上至少有一个输入字段的值被用户或其他数据传输所更改,则为“X”,否则为初始值。

AtPAI, contains "X" if at least one input field of a screen has been changed by a user or by further data transfer, otherwise initial.

sy-datlo

d

用户的当前日期,例如:1999072320000422。可以用GET TIME来设置。

Local date of the user, for example 19990723, 20000422. Can be set usingGET TIME.

sy-datum

d

SAP系统的本地日期。可以用GET TIME来设置。

Local date of the SAP system. Can be set usingGET TIME.

sy-dayst

c(1)

在夏令时中设置为“X”,否则为初始值。

"X" during summertime, otherwise initial.

sy-dbcnt

i

SQL语句把sy-dbcnt的内容设置为处理过的表行数。

SQL statements set the content ofsy-dbcntto the number of processed table lines.

sy-dbnam

c(20)

在执行程序中,表示连接的逻辑数据库。

In executable programs, the linkedlogical database.

sy-dbsys

c(10)

使用的数据库系统,例如ORACEL, INFORMIX

Central database system, for example, ORACLE, INFORMIX.

sy-dyngr

c(4)

当前屏幕的屏幕组。在屏幕画笔中,几个屏幕可以指定给一个公共屏幕组,例如,可以用来一次修改同一个屏幕组中的全部屏幕。

Screen group of the current screen. In theScreen Painter, several screens can be assigned to a common screen group, which can be used, for example, for making modifications to all screens in the group at once.

sy-dynnr

c(4)

当前的屏幕号。在选择屏幕处理过程中,这指定了当前被选中的屏幕。在列表处理过程中,说明了子屏幕容器的数量。在子屏幕屏幕过程中(包括选项卡),说明了屏幕数量。

Number of the current screen. Duringselection screen processing, this is the current selection screen. During list processing, the number of the subscreen container. During processing of asubscreen screen(including intabstrips), this screen number.

sy-fdayw

b

工厂日历的周日,Monday1Friday5

Factory calendar weekday, Monday = 1, ..., Friday = 5.

sy-fdpos

i

在字符类型数据对象操作时查找定位。

Found location in operations with character-type data objects.

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics