메뉴 건너뛰기

SAP 한국 커뮤니티



ABAP 시스템 필드 용도별 정리본

icarus 2007.12.01 18:25 조회 수 : 5544

ABAP 시스템 필드를 각각의 용도별로 정리한 자료입니다.


첨부 파일 참조하시기 바랍니다...








ABAP SYSTEM FIELDS

 

Current SAP system information



sy-dbsys : Central database system e.g. ORACLE, INFORMIX

sy-host  : Name of the application server, e.g. KSAP0001, HS01234

sy-opsys : Operating system of the application server, e.g. SOLARIS, HP-UX

sy-saprl : SAP System release, e.g. 30D, 46C

sy-sysid : Name of SAP System, e.g. SO1, K99

 

Current user session information

sy-langu : Single-digit language key, e.g. D, E, F. Either user logon language or set

           by the SET LOCALE LANGUAGE statement.

sy-mandt : Client number the user has logged on with, e.g. 401, 800

sy-modno : External session indexing. The first session has the value zero. Increases

           by 1 for new sessions which are opened with the Create session function or

           by calling a transaction with the prefix /o in the command field of the

           standard toolbar.

sy-uname : User logon name, e.g. IPSJUNGDK

 

Date and time information

sy-datlo : Local date for user, e.g. 19990723, 20000422

sy-datum : Application server date, e.g. 19990723, 20000422

sy-dayst : "X" during daylight saving time, otherwise empty

sy-fdayw : Factory calendar weekday, Mondays = 1, ..., Fridays = 5

sy-timlo : Local time for user, e.g. 152557

sy-tzone : Time difference from Greenwich  Mean Time(UTC) in seconds, e.g. 3600, 10800

sy-uzeit : Application server time, e.g. 152558

sy-zonlo : User time zone, e.g. CET, UTC

 

Current ABAP program information

sy-calld : Set to 'X" if the program is called through CALL TRANSACTION,

           CALL DIALOG or SUBMIT ...[AND RETURN]. Empth if the program has been

           started by LEAVE TO TRANSACTION or by a transaction code from a screen.

sy-cprog : In externally called procedures it is the name of the calling program,

           otherwise the name of the current program. If an externally called procedure

           calls another external procedure, sy-cprog retains the name of the first

           main program and is not set to the name of the main program of the other caller.

sy-dbnam : For executable programs the linked logical database.

sy-dyngr : Current screen group. In the Screen Painter several screens can be assigned

           to a common group which, for example, can be used to consistently modify all

           screens of this group.

sy-dynnr : Current screen number. During selection screen processing it it the current

           selection screen. During list processing it is the number of the container

           screen, during processing of a subscreen (including tabs) the number of the

           subscreen.

sy-ldbpg : With executable programs it is the database program of the linked logical

           database.

sy-repid : Name of the current ABAP program. With externally called procedures it is the

           name of the main program of the procedure. If sy-repid is passed to an external

           procedures as an actual parameter, the formal parameter is set to the name of the

           main program of the procedure and not the name of the caller.

sy-tcode : Name of the current transaction code.

 

Batch and batch input processing information

sy-batch : Set to "X" in an ABAP program running in the background, otherwise empth.

sy-binpt : Set to "X" during the processing of batch input sessions and in ABAP programs

           called with CALL TRANSACTION USING, otherwise empth.

 

ABAP programming - constants

sy-abcde : Contains the alphabet. Can be used to provide specific access to individual

           letters irrespective of the code page through an offset specification.

sy-uline : Contains a horizontal line (length 255) for list outputs.

sy-vline : Contains a vertical line "|" for list outputs.

 


ABAP programming - loop processing

sy-index : Contains the number of previous loop passes including the current pass in DO and

           WHILE loops.

 


ABAP programming - character string processing

sy-fdpos : Found location for operations with character-type fields.

 

ABAP programming - internal tables

sy-tabix : Most recently addressed row of and internal (index) table. Set to zero when

           a hashed table is accessed.

sy-tfill : With the DESCRIBE TABLE, LOOP AT and READ TABLE statements, sy-tfill is filled

           with the number of rows of the internal table.

sy-tleng : With the DESCRIBE TABLE, LOOP AT and READ TABLE statements, sy-tleng is filled

           with the  row size of the internal table.

sy-toccu : With the DESCRIBE TABLE, LOOP AT and READ TABLE statements, sy-toccu is filled

           with the value of the initial memory requirement for the internal table.

     

ABAP programming - database access

sy-dbcnt : SQL statements set the contents of sy-dbcnt to the number of table lines

           processed.

 

ABAP programming - return value

sy-subrc : Return value set by many ABAP statements. Generally speaking, contents of zero

           means that the statement has been executed without any problems. Depending on

           which statement sy-subrc was set with, in the event of an error the cause can

           be derived from the corresponding value.

 

ABAP programming - general screens

sy-cucol : Horizontal cursor position. Numbering starts at column 2.

sy-curow : Vertical cursor position. Numbering starts at row 1.

sy-datar : Contains "X" at PAI if at least one screen input field has been modified by the

           user or by another data transfer, otherwise empty.

sy-loopc : Number of rows currently displayed in a screen table (table control)

sy-pfkey : GUI status of the current screen.

sy-scols : Number of columns of current screen.

sy-srows : Number of rows of current screen.

sy-stepl : Index of current row in a screen table (table control). Set for every loop pass.

sy-title : Text which appears in the title bar of the screen.

sy-ucomm : Function ocde which has triggered the PAI event.

 

ABAP programming - selection screens

sy-slset : Variant which has been used to fill a selection screen.

 

ABAP programming - list generation

sy-colno : Current column in list generation. Numbering starts at 1.

sy-linct : List page length. sy-linct is zero for standard lists of any given length and

           is not equal to zero for lists with a fixed page length.

sy-linno : Current line in list generation. Numbering starts at 1 and takes the page header

           into account.

sy-linsz : List line width. In the absence of other factors, this is the standard

           window width.

sy-pagno : Current page during list generation.

sy-tvar0 ~ sy-tvar9 : Values can be assigned to these system fields in the program. At the

           TOP-OF-PAGE event the contents of sy-tvar0 to sy-tvar9 replace the placehoders in

           the list and column headers of the program.

sy-wtitl : set to "N" in the REPORT, PROGRAM, and FUNCTION-POOL statements if the

           NO STANDARD PAGE HEADING addition is used, otherwise empth.

 

ABAP programming - interactive list processing

sy-cpage : Page number of the uppermost page displayed on the list in which the event has

           been triggered. Numbering starts at 1.

sy-lilli : Line of which the event has been triggered. Numbering starts at 1 and takes the

           page header into account.

sy-lisel : Contents of the linie on which the event has been triggered (restricted to the

           first 255 characters).

sy-listi : Index of the list on which the event has been triggered.

sy-lsind : Index of the list which is in the process of being generated (basic list: 0,

           details lists: > 0). For each interactive list event sy-lsind is automatically

           increased by one. sy-lsind may be modified in the ABAP program in order to

           navigate between details lists.

sy-staco : Number of the first displayed column of the list on which the event has been

           triggered. Numbering starts at 1.

sy-staro : Number of the uppermost displayed line of the uppermost displyed page on the list

           on which the event has been triggered. Numbering starts at 1.

           The page header is not taken into account.

 

ABAP programming - printing lists

sy-callr : During printing, this field contains a value which displays where printing was

           started, e.g. NEW-PAGE for program-driven printing of RSDBRUNT for printing from

           the selection screen.

sy-prdsn : Contains the name of the spool file during printing

sy-spono : Contains the name of the spool number during printing

sy-marow : Contains the number of lines on the top border during printing

sy-macol : Contains the number of columns on the left border during printing

 

ABAP programming - messages

sy-msgid : Contains the message class after the MESSAGE statement

sy-msgno : Contains the message number after the MESSAGE statement

sy-msgty : Contains the message type after the MESSAGE statement

sy-msgv1 ~ sy-msgv4 : Contains the field contents used for the message placehoders after the

           MESSAGE statement.