Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

abt SYSTEM GENERATED FIELDS

Former Member
0 Likes
1,157

hi experts , plz tell me details abt system generated fields, what is dat system generated fields ? and how we can create own fields, in the table maintainence, ?

give some link n pdf info u have also?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
986

Hi,

System generated fields are fields which are filled by the system itself when you are executing the programs.

Suppose if you consider date, the field name is SY-DATUM. the system internally holds the current date in this field .You can use this field at any time in the program.

These fields are maintained in the structure "SYST".

GO TO data dictionary and type 'SYST" in the table.

You can create fields similar to sytem fields.

Eg data type sy-datum.

Please go through the following link.

[http://help.sap.com/saphelp_46c/helpdata/en/7b/fb96c8882811d295a90000e8353423/content.htm]

Reward points if helpful.

Thanks and Regards.

5 REPLIES 5
Read only

Former Member
0 Likes
987

Hi,

System generated fields are fields which are filled by the system itself when you are executing the programs.

Suppose if you consider date, the field name is SY-DATUM. the system internally holds the current date in this field .You can use this field at any time in the program.

These fields are maintained in the structure "SYST".

GO TO data dictionary and type 'SYST" in the table.

You can create fields similar to sytem fields.

Eg data type sy-datum.

Please go through the following link.

[http://help.sap.com/saphelp_46c/helpdata/en/7b/fb96c8882811d295a90000e8353423/content.htm]

Reward points if helpful.

Thanks and Regards.

Read only

Former Member
0 Likes
986

ABAP system fields exist in all ABAP programs. The runtime system fills them with values, depending on the context of the program, and you can query their values to find out about the state of the system. Although they are variables, you should only read from them. If you change them, you may overwrite information that is important for the next stage of running the program. There are cases in which you can control how the system behaves by overwriting the value of a system field (for example, using SY-LSIND to navigate in detail lists). The names and data types of system fields are stored in the structure SYST in the ABAP Dictionary. E. g. sy-subrc, sy-lsind etc.

here is the link for system fields

link:[http://www.erpgenie.com/abap/systemfields.htm]

link:[http://sap.niraj.tripod.com/id36.html]

reward if helpfull

raam

Read only

Former Member
0 Likes
986

hi,

All system fields are stored in the structure SYST.

some of the important system fields are:

all these are start with SY- (or) SYST-.

ex: sy-datum,syst-datum.

DATUM System: Date

DBCNT Number of elements in edited dataset with DB operations

DYNGR Screen group of current screen

DYNNR Number of current screen

INDEX Number of loop passes

LANGU SAP logon language key

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.

PAGNO Runtime: Current page in list

SUBRC Return value after specific ABAP/4 statements

TABIX Runtime: Current line of an internal table

TCODE Session: Current transaction code

TOCCU OCCURS parameter with internal tables

UCOMM Interact.: Command field function entry

ULINE Constant: Underline (----


...)

UNAME Session: SAP user from SAP logon

UZEIT System: Time

VLINE Constant: Vertical bar

thanks,

raji

reward if helpful.

Read only

0 Likes
986

my prb is not system fields , i already know dat , prb is that we have a field that we have to create system generated , i dont know how we can create dat field system generated , so tell me how we can do dat?is there any use of range to make system generated?

Read only

0 Likes
986

hay rahul,

u cannot create system generated fields yaar.

they are only for internal purpose. we can create our own fields in SE11.

System genersted fields are for internal purpose like

SY-DATUM - GIVES THE SYSTEM DATE

SY-UZEIT - GIVES THE SYSTEM TIME

SY-UNAME - GIVES THE USER NAME

reward if helpful

raam