Warning: include_once(http://erpgenie.com/_borders/topabap.htm) [function.include-once]: failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in /var/www/vhosts/erpgenie.com/httpdocs/abaptips/templates/rhuk_solarflare_ii/index.php on line 52

Warning: include_once() [function.include]: Failed opening 'http://erpgenie.com/_borders/topabap.htm' for inclusion (include_path='.:') in /var/www/vhosts/erpgenie.com/httpdocs/abaptips/templates/rhuk_solarflare_ii/index.php on line 52

Login

Login to view more content!!!





Lost Password?
No account yet? Register

Registered Access

Poll

What area of ABAP are you interested in?
 
Home arrow Tips and Tricks arrow General arrow ABAP System Fields
ABAP System Fields PDF Print E-mail
User Rating: / 0
PoorBest 
Written by Kevin Wilson   
Thursday, 17 July 2008

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.

Alphabetical Overview

The following table lists the definitions of the structure SYST in the ABAP Dictionary alphabetically.

Name

Type

Length

Use

Description

ABCDE

CHAR

26

Constants

Alphabet (A,B,C,...)

BATCH

CHAR

1

Background processing

Program runs in the background

BINPT

CHAR

1

Batch input

Program runs under batch input

CALLD

CHAR

1

ABAP Program

Call mode of ABAP program

CALLR

CHAR

8

Printing Lists

ID for print dialog function

COLNO

INT4

10

Creating Lists

Current column in the list

CPAGE

INT4

10

List processing

Current page number

CPROG

CHAR

40

ABAP Program

External procedure call

CUCOL

INT4

10

Screens

Horizontal cursor position at PAI

CUROW

INT4

10

Screens

Vertical cursor position at PAI

DATAR

CHAR

1

Screens

Displays user input

DATLO

DATS

8

Date and time

Local date of user

DATUM

DATS

8

Date and time

Current (application server) date

DAYST

CHAR

1

Date and time

Daylight saving time flag

DBCNT

INT4

10

Database accesses

Number of processed table rows

DBNAM

CHAR

20

ABAP Program

Linked logical database

DBSYS

CHAR

10

R/3 System

Name of central database system

DYNGR

CHAR

4

ABAP Program

Screen group of current screen

DYNNR

CHAR

4

ABAP Program

Number of current screen

FDAYW

INT1

3

Date and time

Factory calendar weekday

FDPOS

INT4

10

Character strings

Offset in character strings

HOST

CHAR

8

R/3 System

Name of application server

INDEX

INT4

10

Loops

Current loop pass

LANGU

LANG

1

R/3 System

Current language

LDBPG

CHAR

40

ABAP Program

Program of logical database

LILLI

INT4

10

List processing

Selected list row

LINCT

INT4

10

Creating Lists

Page length of list

LINNO

INT4

10

Creating Lists

Current row

LINSZ

INT4

10

Creating Lists

Column width of list

LISEL

CHAR

255

List processing

Content of selected row

LISTI

INT4

10

List processing

Index of selected list

LOOPC

INT4

10

Screens

Number of rows visible in table

LSIND

INT4

10

List processing

Index of detail list

LSTAT

CHAR

16

List processing

ID for list levels

MACOL

INT4

10

Printing Lists

Columns from SET MARGIN statement

MANDT

CLNT

3

R/3 System

Client number from logon

MAROW

INT4

10

Printing Lists

Rows from SET MARGIN statement

MODNO

CHAR

1

R/3 System

Index of external modes

MSGID

CHAR

20

Messages

Message class

MSGLI

CHAR

60

Messages

Message line

MSGNO

NUMC

3

Messages

Message number

MSGTY

CHAR

1

Messages

Message type

MSGV1

CHAR

50

Messages

Message variable

MSGV2

CHAR

50

Messages

Message variable

MSGV3

CHAR

50

Messages

Message variable

MSGV4

CHAR

50

Messages

Message variable

OPSYS

CHAR

10

R/3 System

Operating system of application server

PAART

CHAR

16

Print parameters

Print formatting

PAGNO

INT4

10

Creating Lists

Current page:

PDEST

CHAR

4

Print parameters

Output device

PEXPI

NUMC

1

Print parameters

Retention period

PFKEY

CHAR

20

Screens

Current GUI status

PLIST

CHAR

12

Print parameters

Name of spool request

PRABT