Saturday, May 3, 2014

System Fields in SAP ABAP Complete List

SAP ABAP System Fields Complete List
System Fields in SAP ABAP Complete List, SAP ABAP system fields list on Screens, Selection Screen, System Fields, Date and Time, Lists. Welcome to SAP ABAP Interview Questions.



List of SAP ABAP System Fields


Sapabapiq.com presenting an post on list of available system fields in SAP ABAP. This post consists of system fields from Screens, Selection Screen, System Fields, Date and Time related system fields and Lists system fields. Read this complete article to know the all system fields available for ABAP programmers.

SAP ABAP System fields for SCREENS


System fields are set at the PAI (Process After Input) event for every screen.
These can be also used for interactive list processing, except for SY-DATAR, SY-LOOPC, and SY-STEPL.


SY-CUCOL: Horizontal cursor position Counting starts at column 2

SY-CUROW: Vertical cursor position Counting starts at row 1

SY-DATAR: Set to X at time of PAI if at least one screen input field was changed by the user or other data transfer, otherwise empty.

SY-LOOPC: Number of rows currently displayed in a screen table (table control).

SY-SCOLS: Number of columns in current screen.

SY-SROWS: Number of rows in current screen.

SY-STEPL: Index of current row in a screen table (table control). Is set at every loop pass. Outside a loop, for example during the POV(Process On Value Request) event for a table row, SY-STEPL is not set appropriately.

SY-TITLE: Text that appears in the title bar of the screen. For selection screens and lists this is the program name, otherwise SAP R/3. Can be set during PBO (Process Before Output) using SET TITLEBAR.

SY-UCOMM: Function code that triggered the event PAI. Every user action that triggers PAI is assigned a unique function code, with one exception: Choosing Enter triggers PAI and different function codes can be transferred to SY-UCOMM:

• If there is an entry in the command field of the standard toolbar, this is transferred to SY-UCOMM as the function code.

• If there is no entry in the command field and a function code is assigned to the ENTER key, this function code is transferred to SY-UCOMM.

• If the command field does not contain an entry and no function code is assigned to the ENTER key, it is empty and the content of SY-UCOMM is not affected.



SAP ABAP Selection Screens System Fields


SY-SLSET: Variant used to fill the selection screen.


System Fields.

SY-SUBRC       : RETURN VALUE AFTER ABAP STATEMENTS

SY-INDEX        : LOOPS,CURRENT LOOP PASS

SY-TABIX        : INTERNAL TABLE,CURRENT LINE INDEX

SY-TFILL         : INTERNAL TABLE,CURRENT NO. OF LINES

SY-LILLI          : LIST PROCESSING,CURRENT LIST LINE

SY-LSIND        : LIST PROCESSING , DETAILS LIST INDEX

SY-DBCNT       : DB OPERATIONS,NO. OF TABLE LINES PROCESSED

SY-CPROG      : ABAP PROGRAM,CALLER IN EXTERNAL PROCEDURES

SY-DATUM     : DISPLAYS CURRENT DATE

SY-DYNNR      : ABAP PROGRAM,NO. OF CURRENT SCREEN

SY-TLENG       : LINE LENGTH

SY-STEPL       : LOOP INFORMATION IN TABLE CONTROL

SY-LOOPC      : LOOP INFORMATION IN TABLE CONTROL

SY-FDPOS      : CONTAINS OFF SETS FOR THE FOUND STRING

SY-DBSYS      : Database system 

SY-DYNGR : Screen group of current screen 

SY-DYNNR :  Number of current screen 

SY-MSGID : Message ID 

SY-MSGNO : Message number 

SY-MSGTY : Message type (E,I.W,...) 

SY-MSGV1 : Message variable 

SY-MSGV2 : Message variable 

SY-MSGV3 : Message variable 

SY-MSGV4 : Message variable 

SY-PAGNO : Runtime: Current page in list

SY-PFKEY :  Current GUI Status

SY-COLNO :  Current List Column

SY-LINCT :  Page Length of List

SY-LINNO :  Current Line in List

SY-LINSZ :  Line width of list

SY-MACOL :  Number of Columns on Left Margin of Print List

SY-BINPT :  Program Running Under Batch Input

SY-MODNO :  Index of External Session




SAP ABAP System Fields for Date and Time


The following system fields are always set automatically. If necessary, the GET TIME statement synchronizes the application server time with that of the database server and writes it to the system field SY-UZEIT. SY-DATUM and the system fields for the local time zone, that is SY-TIMLO, SY-DATLO, and SY-ZONLO are also reset.


SY-DATLO: Local date of user, for example 19981129, 19990628.

SY-DATUM: Current (application server) date, for example 19981130, 19990627.

SY-DAYST: During daylight saving time X, otherwise empty.

SY-FDAYW: Factory calendar weekday, Sunday 0 ... Saturday 6.

SY-TIMLO: Local time of user, for example 154353, 225312.

SY-TZONE: Time difference to Greenwich Mean Time (UTC) in seconds, for example 3600, 10800.

SY-UZEIT: Current (application server) time, for example 164353, 215312.

SY-ZONLO: Time zone of user, for example CET, UTC.




SAP ABAP System Fields in Lists



SY-LSIND     : Index of the list for current event for basic list = 0.

SY-LISTI      : Index of the list level from which the event was triggered

SY-LILLI       : Absolute number of the line from which the event was triggered

SY-LISEL      : Contents of the line from which the event was triggered

SY-CUROW  : Position of the line in the window from which the event was triggered (counting starts with 1)

SY-CUCOL    : Position of the column in the window from which the event was triggered (counting starts with 2)

SY-CPAGE    : Page number of the first displayed page of the list from which the event was triggered

SY-STARO   : Number of the first line of the first page displayed of the list from which the event was triggered (counting starts with 1). This line may contain the page header.

SY-STACO   : Number of the first column displayed in the list from which the event was triggered (counting starts with 1)

SY-UCOMM : Function code that triggered the event

SY-PFKEY    : Status of the list currently being displayed.




Please share if you know any other system fields in SAP by using below comment box, it'll help fellow readers.

"You found the information helpful and want to say thanks? Your donation is enough to inspire us to do more. Thanks a bunch!"

0 comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Categories

ABAP (1) ABAP Interview Questions (112) ABAP Open SQL Statements (1) ABAP Syntax Rules (6) ABAP WORKBENCH (2) ABAP-Interview-Questions (52) ALE IDOC (6) ALE IDOC Interview Questions (6) ale-idoc (6) ALE-IDOC-Interview-Questions (19) ALV Interview Questions (5) ALV-Interview-Questions (22) BADI (2) BAPI (1) BAPI Interview Questions (1) BAPI-Interview-Questions (14) BDC (6) BDC Interview Questions (6) BDC-Interview-Questions (9) big data (2) big data interview questions (1) Classical Reports Interview Question (3) Classical-Reports-Interview-Questions (22) Conditional Statements (1) Cross Applications (3) Cross-Applications (14) Data Dictionary (22) Data Type Questins (1) Data types (1) Data-Dictionary (48) Data-Type-Questins (6) Dialog programming (5) Dialog Programming Interview Questions (4) Dialog-Programming (30) DOMAIN Interview Questions (1) Domain-Interview-Questions (8) Function Module (2) hadoop (2) hadoop interview questions (2) hdfs (1) IDoc Tutorials (6) Interactive Report Interview Questions (4) Interactive-Reports-Interview-Questions (22) Internal Tables (1) interview questions (1) Lock Object Interview Questions (1) Lock-Objects-Interview-Questions (10) Logical Database (1) Modularization Interview Questions (4) Modularization-Interview-Questions (25) Module Pool Programming (5) Module-Pool-Programming (39) modules in sap (1) Object Oriented ABAP (19) Object Oriented ABAP Interview Questions (15) object-oriented-abap (2) Object-Oriented-ABAP-Interview-Questions (34) OOABAP (9) Reports (14) Reports Interview Questions (9) Reports-Interview-Questions (19) RFC (1) RFC Interview Questions (1) RFC-Interview-Questions (14) RICEF (1) RICEF Objects (1) SAP (4) SAP ABAP (4) SAP ABAP Interview Questions (42) SAP ABAP Introduction (46) SAP ABAP Message Types (2) SAP BADI Interview Questions (2) SAP Basics (71) SAP Books (2) SAP Certification (1) SAP CONSULTANTS (5) SAP CRM (1) SAP ENHANCEMENTS (3) SAP EXITS (2) SAP EXITS ( SAP ENHANCEMENTS ) Interview Questions (1) SAP Free Books (1) SAP HR (2) SAP Lock Object (1) sap modules (2) SAP Open SQL Statements (1) SAP R/3 Architecture (4) SAP Search help (1) SAP Smartforms (1) SAP Smartforms Interview Questions (2) SAP Tables (5) SAP Tcodes (10) SAP Views (1) SAP Webdynpro ABAP (12) SAP Work Processors (2) SAP Workflow (3) SAP-BADI-Interview-Questions (11) SAP-Enhancements (39) SAP-Exits (39) SAP-Exits-Enhancements-Interview Questions (3) SAP-HANA (1) SAP-HANA-Interview-Questions (1) SAP-Smartforms-Interview-Questions (2) SAP-Workflow (3) Scripts (3) Scripts Interview Questions (2) Scripts-Interview-Questions (32) Search Help Interview Questions (1) Search-Help-Interview-Questions (9) Smartforms (1) Table Maintenance Generator (1) Table-Maintenance-Generator (4) Tables in SAP (2) Tables Interview Questions (3) Tables-Interview-Questions (3) Type Group Interview Questions (1) Type-Group-Interview-Questions (7) Variable Declaration (1) Views Interview Questions (1) Views-Interview-Questions (5) Webdynpro (12) what is big data (1)

Protected Blog

 
This blog is not affiliated to SAP AG |SAP is trademark of SAP AG |The information collected from various sources use information with your own risk.