‎2008 Feb 23 10:27 AM
‎2008 Feb 23 10:28 AM
The ABAP system fields are active in all ABAP programs. They are filled by the runtime environment, and you can query their values in a program to find out particular states of the system. Although they are variables, you should not assign your own values to them, since this may overwrite information that is important for the normal running of the program. However, there are some isolated cases in which you may need to overwrite a system variable. For example, by assigning a new value to the field SY-LSIND, you can control navigation within details lists.
The names and data types of the system fields are contained in the ABAP Dictionary structure SYST. To address them in an ABAP program, use the form SY-<fieldname>. Within screen flow logic, you can also use the form SYST-<fieldname>.
Regards,
Satya
‎2008 Feb 23 10:28 AM
The ABAP system fields are active in all ABAP programs. They are filled by the runtime environment, and you can query their values in a program to find out particular states of the system. Although they are variables, you should not assign your own values to them, since this may overwrite information that is important for the normal running of the program. However, there are some isolated cases in which you may need to overwrite a system variable. For example, by assigning a new value to the field SY-LSIND, you can control navigation within details lists.
The names and data types of the system fields are contained in the ABAP Dictionary structure SYST. To address them in an ABAP program, use the form SY-<fieldname>. Within screen flow logic, you can also use the form SYST-<fieldname>.
Regards,
Satya
‎2008 Feb 23 11:37 AM
Hi,
The system variables contain system information. You can use all the system SY fields in CATT. The names of the SY fields are in the Dictionary structure SYST.
Examples of system fields:
SY-LANGU (logon language)
SY-UZEIT (current time)
SY-DATUM (current date)
SY-UNAME (user name)
Regards,
swami.
‎2008 Feb 23 12:27 PM
ABAP system fields are always available in ABAP programs. The runtime system fills them according to context. They can then be used in programs to query the system status. System fields are variables but you should always treat them as though they were constants, and only read them. If you change their values, important information for the flow of the program may be lost. In exceptional circumstances, system fields may be overwritten in an ABAP program to control the system for example, SY-LSIND (for navigating to a detail list).
With one exception the names and data types of the system fields are stored in the ABAP Dictionary in the SYST structure and realized as components of the predefined structure SY in ABAP programs.
The system field SY-REPID is not part of SYST or SY. Instead, every program contains the predefined constants SY-REPID and SYST-REPID, which both contain the name of the corresponding program. Furthermore, there are two predefined types of the same name, SY-REPID and SYST-REPID.
All system fields are addressed using SY field name and their types using SYST field name.
here is a list of some important system variables
INDEX
SYINDEX
INT4
10
0
Loops, number of current pass
PAGNO
SYPAGNO
INT4
10
0
List creation, current page
TABIX
SYTABIX
INT4
10
0
Internal table, current line index
TFILL
SYTFILL
INT4
10
0
Internal tables, current number of lines
DBCNT
SYDBCNT
INT4
10
0
DB operations, number of table lines processed
FDPOS
SYFDPOS
INT4
10
0
Character strings, offset in character string
COLNO
SYCOLNO
INT4
10
0
List creation, current column of list
LINCT
SYLINCT
INT4
10
0
List processing, page length of list
LINNO
SYLINNO
INT4
10
0
List creation, current line
LINSZ
SYLINSZ
INT4
10
0
List creation, width of list
SUBRC
SYSUBRC
INT4
10
0
Return value, return value after ABAP statements
LILLI
SYLILLI
INT4
10
0
List processing, current list line
LSIND
SYLSIND
INT4
10
0
List processing, details list index
STEPL
SYSTEPL
INT4
10
0
Screens, current table line index
LOOPC
SYLOOPC
INT4
10
0
Screens, number of lines visible in table
LANGU
SYLANGU
LANG
1
0
R/3 System, current language
MANDT
SYMANDT
CLNT
3
0
R/3 System, client number from logon
DBSYS
SYDBSYS
CHAR
10
0
R/3 System, name of central database system
SYSID
SYSYSID
CHAR
8
0
R/3 System, name of R/3 System
SAPRL
SYSAPRL
CHAR
4
0
R/3 System, system release
TCODE
SYTCODE
CHAR
20
0
ABAP program, current transaction code
DATUM
SYDATUM
DATS
8
0
Date and time, current (application server) date
UCOMM
SYUCOMM
CHAR
70
0
Screens, function code triggered by PAI
UZEIT
SYUZEIT
TIMS
6
0
Dat and time, current application server time
UNAME
SYUNAME
CHAR
12
0
R/3 System, user logon name
MSGLI
SYMSGLI
CHAR
60
0
Messages, message line
TITLE
SYTITLE
CHAR
70
0
Screens, title text
LISEL
SYLISEL
CHAR
255
0
List processing, contents of selected line
ULINE
SYULINE
CHAR
255
0
Constants, horizontal line with length 255
MSGID
SYMSGID
CHAR
20
0
Messages, message class
MSGID
SYMSGID
CHAR
20
0
Messages, message class
MSGTY
SYMSGTY
CHAR
1
0
Messages, message type
MSGNO
SYMSGNO
NUMC
3
0
Messages, message number
MSGV1
SYMSGV
CHAR
50
0
Messages, message variables
MSGV2
SYMSGV
CHAR
50
0
Messages, message variables
MSGV3
SYMSGV
CHAR
50
0
Messages, message variables
MSGV4
SYMSGV
CHAR
50
0
Messages, message variables
VLINE
SYVLINE
CHAR
1
0
Constants, vertical bar
HOST
SYHOST
CHAR
32
0
R/3 System, Name of application server
the link is
http://abaplovers.blogspot.com/2008/02/list-of-important-system-variables.html
do reward if helpful
‎2008 Feb 23 2:24 PM
system variables are available to the every abap program.these system variables are available in syst table in the abap dictionery.system variables means system defaultly provides some variables to your program.theses system variables are available to every abap program.no need to import any table or package for this purpose. defaultly available to the every program.the system variables are look like this sy-.....,or syst-.......
in old vertions system variables use like syst-...... .and now in new vertions useing like sy-.......there is nothing difference between two of them.