SAP 

SY-SUBRC:语句执行后的返回值,0表示成功
SY-DATUM:当前服务器日期
SY-UZEIT:当前服务器时间
SY-ULINE:255长度的水平线
SY-VLINE:垂直线
SY-INDEX:循环说执行的次数
SY-TABIX:内表循环的次数
SY-DYNNR:当前Screen号
SY-MANDT:当前登录的Client号
SY-STEPL:返回当前操作的屏幕行号(Table Control)
SY-LOOPC:当前表格控件在屏幕中的总行数(Table Control)
SY-UCOMM:PAI所出发的功能代码
SY-DYNNR:当前屏幕号
SY-MSGID:Message Class
SY-MSGNR:Message Number
SY-MSGTY:Message Type
SY-MSGV1~4:Message Variant
SY-LINCT:REPROT语句中设定的LINE-COUNT
SY-LINSZ:REPROT语句中设定的LINE-SIZE
SY-SROWS:当前窗口的列表行数
SY-SCOLS:当前窗口的列表栏目数
SY-PAGNO:当前页的页码
SY-LINNO:当前选定行的行号
SY-COLNO:当前选定列的列号
SY-LSIND:当前列表索引,第一级列表为1
SY-LILLI:选择某行时光标行位置
SY-CUROW:选择某行时光标列位置
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 the code page.
sy-batch c(1) Set to "X" in an ABAP program that runs in the background, otherwise initial.
sy-binpt c(1) Set to "X" during processing of batch input sessions, and in ABAP programs called using CALL TRANSACTION USING. Otherwise initial.
sy-calld c(1) Contains a blank character in the first program in a call sequence , otherwise contains the value "X". Is set to "X" after calls using CALL TRANSACTION , CALL DIALOG, or SUBMIT ... AND RETURN. Empty if the program was started using LEAVE TO TRANSACTION or a transaction from the screen. A call using SUBMIT (without AND RETURN) assumes the value of the calling program.
sy-callr c(8) When printing lists, contains a value that displays where the printing was started, for example, NEW-PAGE for program-controlled printing, or RSDBRUNT for printing from the selection screen.
sy-colno i 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 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) In procedures called externally, the name of the calling program, Otherwise the name of the current program. If a procedure called externally calls another external procedure, sy-cprog contains the name of the framework program, and is not set to the name of the framework program of the subsequent calling program.
sy-cucol i Horizontal cursor position in the display on a screen. Counting begins at column 2.
sy-curow i Vertical cursor position on the screen display of a screen. Counting begins at line 1.
sy-datar c(1) At PAI, 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 Local date of the user, for example 19990723, 20000422. Can be set using GET TIME.
sy-datum d Local date of the SAP system. Can be set using GET TIME.
sy-dayst c(1) "X" during summertime, otherwise initial.
sy-dbcnt i SQL statements set the content of sy-dbcnt to the number of processed table lines.
sy-dbnam c(20) In executable programs, the linked logical database.
sy-dbsys c(10) Central database system, for example, ORACLE, INFORMIX.
sy-dyngr c(4) Screen group of the current screen. In the Screen 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. During selection screen processing, this is the current selection screen. During list processing, the number of the subscreen container. During processing of a subscreen screen (including in tabstrips), this screen number.
sy-fdayw b Factory calendar weekday, Monday = 1, ..., Friday = 5.
sy-fdpos i Found location in operations with character-type data objects.
sy-host c(8) Name of the application server, for example, KSAP0001, HS01234.
sy-index i Loop index. In DO and WHILE loops, contains the number of the loop passes including the current pass.
sy-langu c(1) Single-character language key, for example, D, E, F, for the current text environment. Set according to the logon language of the user or by using the statement SET LOCALE.
sy-ldbpg c(40) In executable programs, the database program of the linked logical database.
sy-lilli i List line for which a list event was triggered. Counting begins at 1 and includes the page header.
sy-linct i Page length of the current list during list creation. sy-linct is 0 for a standard list of any length, and has a value that is not 0 for lists with a defined page length.
sy-linno i Current list line during list creation. Counting begins at 1 and includes the page header.
sy-linsz i Line width of the current list in the list buffer during list creation.
sy-lisel c(255) Content of the list line in the list buffer, on which the cursor was positioned while a list event was triggered (restricted to the first 255 lines).
sy-listi i List level of the list for which a list event was triggered.
sy-loopc i Number of lines currently displayed in a table control.
sy-lsind i List level of the list that is currently being created (basic list: 0, details lists: greater than 0). For every interactive list event, sy-lsind is automatically increased by an increment of 1. sy-lsind can only be changed in ABAP programs for navigating between details lists.
sy-macol i When printing lists, contains the number of columns on the left edge.
sy-mandt c(3) client identifier with which the user has logged on, for example, 401, 800.
sy-marow i When printing lists, contains the number of lines on the top margin.
sy-modno c(1) Indexing of external sessions. Contains the value 0 in the first session. In new sessions that are opened using the Create Session function or by calling a transaction with /o in the input field of the toolbar, this value is increased by 1.
sy-msgid c(20) After the statement MESSAGE, contains the message class.
sy-msgno n(3) After the statement MESSAGE, contains the message number.
sy-msgty c(1) After the statement MESSAGE, contains the message type.
sy-msgv1 ... sy-msgv4 c(50) After the statement MESSAGE, contain the contents of the fields that are used as placeholders in the message.
sy-opsys c(10) Operating system of the application server, for example, SOLARIS, HP-UX.
sy-pagno i Current page in list creation.
sy-pfkey c(20) GUI status of the current screen.
sy-prdsn c(6) When printing lists, contains the name of the spool file.
sy-repid c(40) Name of the current ABAP program. For procedures called externally, name of the framework program of the procedure. sy-repid when transferring actual parameters to an external procedure, before release 6.10, the formal parameter was not set to the name of the caller, but to the name of the procedure instead. As of release 6.10, sy-repid can be transferred to procedures without help fields.
sy-saprl c(4) Release status of the SAP system, for example, 46D, 610.
sy-scols i Number of columns of the current screen.
sy-slset c(14) Variant that was used for filling a selection screen.
sy-spono n(10) When printing lists, contains the name of the spool number.
sy-srows i Number of lines of the current screen.
sy-staco i Number of the first column displayed in the list for which a list event has been triggered. Counting begins at 1.
sy-staro i Number of the list line displayed at the top of the page at the top of the list, for which a list event was triggered. Counting begins at 1 and does not include the page header.
sy-stepl i Index of the current line in a table control. This is set for every loop pass.
sy-subrc i Return value that is set by many ABAP statements. In general, the value 0 means that the statement was executed with no problems. Depending on which statement was used to set sy-subrc, if errors occur, the cause of the error can be derived from the corresponding value.
sy-sysid c(8) Name of the SAP system, for example, S01, K99.
sy-tabix i Table index. Last addressed line of a standard table or sorted table. Is set to 0 if hashed table is accessed.
sy-tcode c(20) Name of the current transaction code.
sy-tfill i In the statements DESCRIBE TABLE, LOOP AT, and READ TABLE, sy-tfill is filled with the number of lines in the internal table that has been addressed.
sy-timlo t Local time of the user, for example 152557. Can be set by GET TIME.
sy-title c(70) Text that appears in the title bar of the screen.
sy-tleng i In the statements DESCRIBE TABLE, LOOP AT, and READ TABLE, sy-tleng is filled with the line size of the internal table that is being addressed.
sy-tvar0 ... sy-tvar9 c(20) These system fields can be assigned values in the program. At the event TOP-OF-PAGE, the content of sy-tvar0 to sy-tvar0 replaces the placeholders in the list and column headers of the text elements of the program.
sy-tzone i Time difference to the UTC reference time in seconds, for example, 3600, 10800.
sy-ucomm c(70) Function code that triggered the event PAI.
sy-uline c(255) Contains a horizontal line of length 255 for displaying in lists.
sy-uname c(12) User's logon name, for example, KELLERH.
sy-uzeit t Local time of the SAP system. Can be set using GET TIME.
sy-vline c(1) Contains a vertical line (|) for displaying in lists.
sy-wtitl c(1) In the statements REPORT, PROGRAM, and FUNCTION-POOL, set to "N" if the addition NO STANDARD PAGE HEADING is used, otherwise initial.
sy-zonlo c(6) Time zone of the user, for example, CET, PST.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值