ABAP System Fields

简介:


ABCDE
Constant: Alphabet (A,B,C,...)
APPLI
SAP applications
BATCH
Background active (X)

IF SY-BATCH EQ SPACE.

WRITE: / 'Report was started on-line'.

WRITE: / 'Using variant:', SY-SLSET.

ELSE.

WRITE: / 'Report was started in background'.

ENDIF.

BATZD
Background SUBMIT: Daily
BATZM
Background SUBMIT: Monthly
BATZO
Background SUBMIT: Once
BATZS
Background SUBMIT: Immediately
BATZW
Background SUBMIT: Weekly
BINPT
Batch input active (X)

This field indicates if the transaction was called in a Batch Input session or by an online user. To test it, a batch input session must be created. From Release 3.1g the next procedure can be used.

    • Create a report which displays this system field

    • Create a Transaction code for this report

    • Use transaction SHDB to record a the previous transaction

    • Press the Overview button and choose the 'generate program' function.

    • Running the previously generated program it will create a Batch Input session

    • Now call transaction SM35 and process the created Batch Input in foreground. It should display an 'X' for system field SY-BINPT.

BREP4
Background SUBMIT: Root name of request report
BSPLD
Background SUBMIT: List output to spool
CALLD
CALL mode active (X)

This field indicates if the transaction was called from another transaction.

    • Create a report which displays this system field

    • Create a Transaction code for this report

    • Create a new report containing the next ABAP command: CALL TRANSACTION tcode. Where tcode is the Transaction code you created. When you run this report, it should display an 'X' for system field SY-CALLD.

CALLR
Print: ID for print dialog function
CCURS
Rate specification/result field (CURRENCY CONVERT)
CCURT
Table rate from currency conversion
CDATE
Date of rate from currency conversion
COLNO
Current column during list creation

WRITE: SY-COLNO, ',', SY-LINNO, 'Cursor position (column, row).'.

CPAGE
Current page number

WRITE: / 'SY-CPAGE:', SY-CPAGE LEFT-JUSTIFIED.

CPROG
Runtime: Main program

WRITE: /5 'Main program:' RIGHT-JUSTIFIED, 40 SY-CPROG.

CTABL
Exchange rate table from currency conversion
CTYPE
Exchange rate type 'M','B','G' from CURRENCY CONVERSION
CUCOL
Cursor position (column)

WRITE: / 'SY-CUCOL:', SY-CUCOL LEFT-JUSTIFIED.

CUROW
Cursor position (line)

WRITE: / 'SY-CUROW:', SY-CUROW LEFT-JUSTIFIED.

DATAR
Flag: Data received

In transaction programming this field indicates the change of data on the screen. In the PBO part you may set default values of the input fields of the dynpro. In the PAI part you can check if they were changed. If SY-DATAR is set, then the user has modified or entered new data on the screen.

DATLO
Local date for user
DATUM
System: Date
DATUT
Global date related to UTC (GMT)
DAYST
Summertime active ? ('daylight saving time')
DBCNT
Number of elements in edited dataset with DB operations

WRITE: /12 'Number of selected records:', SY-DBCNT CENTERED.

DBNAM
Logical database for ABAP/4 program
DBSYS
System: Database system
DCSYS
System: Dialog system
DSNAM
Runtime: Name of dataset for spool output
DYNGR
Screen group of current screen
DYNNR
Number of current screen
FDAYW
Factory calendar weekday
FDPOS
Location of a string

SEARCH T FOR 're'.

READ TABLE T INDEX SY-TABIX.

WRITE: / SY-TABIX, T-FIELD.

SKIP.

WRITE: /9 'At the example of sy-tabix, Row', (3) SY-TABIX, ',' ,

'keyword ''re'' found at off-set position:', (3) SY-FDPOS.

FMKEY
Current function code menu
HOST
Host
INDEX
Number of loop passes

DO 5 TIMES.

WRITE: SY-INDEX.

ENDDO.

LANGU
SAP logon language key
LDBPG
Program: ABAP/4 database program for SY-DBNAM
LILLI
Number of current list line

AT LINE-SELECTION.

DETAIL.
* SY-LSIND is the index of the current list
WRITE: / 'SY-LSIND:',  SY-LSIND LEFT-JUSTIFIED.
* SY-LISTI is the index of the previous list
WRITE: / 'SY-LISTI:',  SY-LISTI LEFT-JUSTIFIED.
* SY-LILLI is the number of the selected line in the absolute list
WRITE: / 'SY-LILLI:',  SY-LILLI LEFT-JUSTIFIED.
LINCT
Number of list lines

WRITE: / SY-LINCT, 'line and', (3) SY-LINSZ, 'column is a page'.

LINNO
Current line for list creation

WRITE: SY-COLNO, ',', SY-LINNO, 'Cursor position (column, row).'.

LINSZ
Line size of list

WRITE: SY-COLNO, ',', SY-LINNO, 'Cursor position (column, row).'.

LISEL
Interact.: Selected line

* contents of the selected line

WRITE: / 'SY-LISEL:', SY-LISEL.

LISTI
Number of current list line

* SY-LISTI is the index of the previous list

WRITE: / 'SY-LISTI:', SY-LISTI LEFT-JUSTIFIED.

LOCDB
Local database exists
LOCOP
Local database operation
LOOPC
Number of LOOP lines at screen step loop
LSIND
Number of secondary list

* SY-LSIND is the index of the current list

WRITE: / 'SY-LSIND:', SY-LSIND LEFT-JUSTIFIED.

LSTAT
Interact.: Status information for each list level
MACDB
Program: Name of file for matchcode access
MACOL
Number of columns from SET MARGIN
MANDT
Client number from SAP logon
MARKY
Current line character for MARK
MAROW
No. of lines from SET MARGIN statement
MODNO
Number of alternative modi
MSGID
Message ID
MSGLI
Interact.: Message line (line 23)
MSGNO
Message number
MSGTY
Message type (E,I.W,...)
MSGV1
Message variable
MSGV2
Message variable
MSGV3
Message variable
MSGV4
Message variable
OPSYS
System: Operating system
PAART
Print: Format
PAGCT
Page size of list from REPORT statement
PAGNO
Runtime: Current page in list
PDEST
Print: Output device
PEXPI
Print: Spool retention period
PFKEY
Runtime: Current F key status
PLIST
Print: Name of spool request (list name)
PRABT
Print: Department on cover sheet
PRBIG
Print: Selection cover sheet
PRCOP
Print: Number of copies
PRDSN
Print: Name of spool dataset
PREFX
ABAP/4 prefix for background jobs
PRIMM
Print: Print immediately
PRNEW
Print: New spool request (list)
PRREC
Print: Recipient
PRREL
Print: Delete after printing
PRTXT
Print: Text for cover sheet
REPID
Program: Name of ABAP/4 program
RTITL
Print: Report title of program to be printed
SAPRL
System: SAP Release
SCOLS
Columns on screen
SLSET
Name of selection set
SPONO
Runtime: Spool number for list output
SPONR
Runtime: Spool number from TRANSFER statement
SROWS
Lines on screen
STACO
Interact.: List displayed from column
STARO
Interact.: Page displayed from line
STEPL
Number of LOOP line at screen step
SUBRC
Return value after specific ABAP/4 statements
SUBTY
ABAP/4: Call type for SUBMIT
SYSID
System: SAP System ID
TABIX
Runtime: Current line of an internal table

SEARCH T FOR 're'.

READ TABLE T INDEX SY-TABIX.

TCODE
Session: Current transaction code
TFDSN
Runtime: Dataset for data extracts
TFILL
Current number of entries in internal table
TIMLO
Local time for user
TIMUT
Global time related to UTC (GMT)
TITLE
Title of ABAP/4 program
TLENG
Line width of an internal table
TMAXL
Maximum number of entries in internal table (?)
TNAME
Name of internal table after an access (?)
TOCCU
OCCURS parameter with internal tables
TPAGI
Flag indicating roll-out of internal table to paging area (?)
TSTLO
Timestamp (date and time) for user
TSTUT
Timestamp (date and time) related to UTC (GMT)
TTABC
Number of line last read in an internal table (?)
TTABI
Offset of internal table in roll area (?)
TVAR0
Runtime: Text variable for ABAP/4 text elements
TVAR1
Runtime: Text variable for ABAP/4 text elements
TVAR2
Runtime: Text variable for ABAP/4 text elements
TVAR3
Runtime: Text variable for ABAP/4 text elements
TVAR4
Runtime: Text variable for ABAP/4 text elements
TVAR5
Runtime: Text variable for ABAP/4 text elements
TVAR6
Runtime: Text variable for ABAP/4 text elements
TVAR7
Runtime: Text variable for ABAP/4 text elements
TVAR8
Runtime: Text variable for ABAP/4 text elements
TVAR9
Runtime: Text variable for ABAP/4 text elements
TZONE
Time difference from 'Greenwich Mean Time' (UTC) in seconds
UCOMM
Interact.: Command field function entry
ULINE
Constant: Underline (---------...)
UNAME
Session: SAP user from SAP logon
UZEIT
System: Time
VLINE
Constant: Vertical bar
WAERS
T001: Company code currency after reading B segment
WILLI
Number of current window line
WINCO
Cursor position in window (column)
WINDI
Index of current window line
WINRO
Cursor position in window (line)
WINSL
Interact.: Selected window line
WINX1
Window coordinate (column left)
WINX2
Window coordinate (column right)
WINY1
Window coordinate (line left)
WINY2
Window coordinate (line right)
WTITL
Standard page header indicator
XCODE
Extended command field
ZONLO
Time zone of user
专注于企业信息化,最近对股票数据分析较为感兴趣,可免费分享股票个股主力资金实时变化趋势分析工具,股票交流QQ群:457394862

本文转自沧海-重庆博客园博客,原文链接:http://www.cnblogs.com/omygod/archive/2007/12/18/1005145.html,如需转载请自行联系原作者
目录
相关文章
|
Oracle 关系型数据库 Unix
ABAP System Tables
System Tables ADCP Person/Address assignment (central address administration) ADIRACCESS Table to store keys for TADIR objects ADR2 Telephone numbers (central address admin.
1736 0
|
JavaScript 数据库
|
7月前
|
程序员
开发语言漫谈-ABAP
ABAP是SAP公司专门用于SAP软件环境的专门语言
|
SQL 设计模式 前端开发
【置顶】SAP ABAP开发实战——从入门到精通系列目录
本文章为SAP ABAP开发实战——从入门到精通系列的目录以及关于该教程的后续写作计划表
1674 0
【置顶】SAP ABAP开发实战——从入门到精通系列目录
|
BI
SAP ABAP在线预览文档对象的开发实现
应用场景:有些定制化开发(报表/功能增强等)完成之后,客户需要将其操作手册或者相关文档放在某个报表的初始画面,供实际操作者在线查阅,当然这个功能也同样类似于模板的下载,这里就以在线预览(直接打开)为例进行说明。
231 0
|
前端开发 JavaScript 数据库
如何使用 Restful ABAP Programming 编程模型开发一个支持增删改查的 Fiori 应用(二)
Restful ABAP Programming 编程模式是 ABAP 这门编程语言在不断向前进化的过程中,诞生的一门新的编程模型,简称为RAP模型。
164 0
如何使用 Restful ABAP Programming 编程模型开发一个支持增删改查的 Fiori 应用(二)
|
程序员 BI
也谈SAP业务顾问如何避免被ABAP开发顾问怒打
也谈SAP业务顾问如何避免被ABAP开发顾问怒打
也谈SAP业务顾问如何避免被ABAP开发顾问怒打
abap开发function module时使用tables传递参数报错过时的解决方法
如下图,我写了一个Function Module我要在tables中添加一个参数TABLES参数已过时不管怎么点击保存按钮,一直报错,怎么办呢?不管是不是过时,狂点回车,就保存了
1749 0
|
小程序
ABAP开发基础知识:11)子程序的建立与调用
ABAP子程序(Subrouting)是包含在程序中的一段具有一定功能的代码,能够将某个功能作为一个小程序包含在主程序中,以方便程序分析及阅读。特别是一此程序中多次用到的功能,可以简化代码,增加程序的可读性且便于维护。
1495 0