`
zjut_xiongfeng
  • 浏览: 277943 次
  • 性别: 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.

分享到:
评论

相关推荐

    SAP ABAP开发系统字段

    不同于其他系统字段,sy-repid的数据类型在ABAP字典的SYST结构(自6.10版本起)中定义。它是一个变量,可以在某些情况下被重写,例如在报表的初始化阶段。在ABAP程序中,可以通过sy结构或SYST来访问这个字段。 2. *...

    ABAP系统变量

    系统字段的数据类型在 ABAP 字典的 SYST 结构中定义,作为 sy 结构的组件在 ABAP 程序中有示例。sy 结构在一个内部会话期间内只存在一次,并且在这个内部会话期间内被所有程序使用。 下面是 ABAP 程序中可以使用的...

    abap学习笔记

    ### ABAP 学习笔记知识点详解 #### 一、引用类型与数据对象声明 - **引用类型**: 在 ...以上是基于给定的学习笔记中的知识点整理,涵盖了 ABAP 中的一些基本概念和常用操作,对于初学者来说是非常有价值的参考资料。

    ABAP_4语法集锦(中文版)

    在ABAP/4中,有一些系统专有的变量,它们存储在SYST结构体内,用于反映系统状态和执行信息。例如: - SY-SUBRC:表示指令执行结果,0表示成功。 - SY-UNAME:当前用户的用户名。 - SY-DATUM:当前系统日期。 - SY-...

    ABAP4語法詳解

    数据类型决定了变量或字段可以存储什么样的信息。以下是一些主要的数据类型: 1. C:字符类型,如`'M'`,最大长度为65535个字节,初始值为空格。 2. D:日期类型,遵循格式`YYYYMMDD`,如`'19991203'`。 3. F:...

    sap (abap)编程指南

    9. **用户输入**:`SY-UCOMM` 或 `SYST-UCOMM` 用于获取用户在OK代码字段输入的内容。 10. **屏幕组ID**:`SY-DYNGR` 提供屏幕组的标识。 11. **声明常量**:`CONSTANT const(len) TYPE type|LIKE dobj [DECIMALS ...

    ABAP语法总结,公司培训部分内容

    10. OK代码:`SY-UCOMM` 或 `SYST-UCOMM` 用于获取用户在GUI操作中的命令或按钮名称。 11. 屏幕组ID:`SY-DYNGR` 代表屏幕组的标识。 12. 常量声明:`CONSTANT const(len) TYPE type|LIKE dobj [DECIMALS dec] ...

    abap40train.doc

    ABAP/4中有一些系统预定义的变量,它们封装在名为SYST的结构体中,用于存储系统信息。常用系统变量包括: - SY-SUBRC:执行指令后的返回代码,'0'表示成功。 - SY-UNAME:当前用户的用户名。 - SY-DATUM:当前系统...

    SAP ABAP编程总结

    这些知识点涵盖了ABAP编程的基础和常用操作,包括数据声明、系统变量使用、循环控制、字符串处理以及输出控制等方面,是ABAP开发中不可或缺的部分。通过理解和掌握这些概念,开发者能够更有效地编写和调试SAP ABAP...

    ABAP总结.doc

    8. **OK代码**:`SY-UCOMM`或`SYST-UCOMM`用于获取用户输入的命令或操作代码。 9. **屏幕组ID**:`SY-DYNGR`标识屏幕组。 10. **常量声明**:`CONSTANT const(len) TYPE type|LIKE dobj [DECIMALS dec] [VALUE val...

    SAP ABAP总结大全

    4. **屏幕和用户输入**:`SY-DYNNR`表示屏幕序号,`SY-UCOMM`或`SYST-UCOMM`是OK代码,`SY-DYNGR`为屏幕组ID。 5. **常量声明**:`CONSTANT const(len) TYPE type|LIKE dobj`定义常量,可指定长度和值。 6. **数据...

    ABAP Training 語法詳解

    首先,ABAP提供了多种数据类型,用于定义变量或字段的数据结构。常见的数据类型包括: 1. C:字符类型,最大长度可达65535个字节,初始值为空格。 2. D:日期类型,格式为YYYYMMDD,范围为'9999/12/31'。 3. F:...

    ABAP4语法祥解适合入门学习

    在ABAP4中,还有一些系统预定义的变量,它们存在于名为`SYST`的结构体中,用于存储系统信息。常见的系统变量有: - `SY-SUBRC`:执行指令后的返回码,'0'表示成功。 - `SY-UNAME`:当前用户的登录名。 - `SY-DATUM`...

    ABAP总结

    - `SY-UCOMM` 或 `SYST-UCOMM`:OK代码,用于处理用户输入的命令。 5. **常量声明**:`CONSTANT const(len) TYPE type|LIKE dobj [DECIMALS dec] [VALUE val]` 用于声明常量,`len` 是长度,`type` 是数据类型,`...

Global site tag (gtag.js) - Google Analytics