0% found this document useful (0 votes)
67 views

SAP R/3 Document: System Fields List

This document provides a list of system fields in SAP R/3 and examples of how to use some of them. It describes fields like SY-DATUM for the current date, SY-TCODE for the current transaction code, SY-PAGNO for the current page number, and others. It also gives examples demonstrating how to use fields like SY-LINNO, SY-COLNO, SY-INDEX, and SY-TABIX in reports, selections, and internal tables.

Uploaded by

Joy Dey
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as RTF, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
67 views

SAP R/3 Document: System Fields List

This document provides a list of system fields in SAP R/3 and examples of how to use some of them. It describes fields like SY-DATUM for the current date, SY-TCODE for the current transaction code, SY-PAGNO for the current page number, and others. It also gives examples demonstrating how to use fields like SY-LINNO, SY-COLNO, SY-INDEX, and SY-TABIX in reports, selections, and internal tables.

Uploaded by

Joy Dey
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as RTF, PDF, TXT or read online on Scribd
You are on page 1/ 4

SAP R/3 Document : System Fields List

System fields
Constant: Alphabet (A,B,C,...) Example : System fields I REPORT ZBCTCB93 NO STANDARD PAGE HEADING. DETAIL. WRITE: /5 'Logon name of the user: ' RIGHT-JUSTIFIED, 40 SYUNAME. WRITE: /5 'Logon client: ' RIGHT-JUSTIFIED, 40 SY-MANDT. WRITE: /5 'Logon language: ' RIGHT-JUSTIFIED, 40 SY-LANGU. WRITE: /5 'Current date: ' RIGHT-JUSTIFIED, 40 SY-DATUM. WRITE: /5 'Current time: ' RIGHT-JUSTIFIED, 40 SY-UZEIT. WRITE: /5 'Current transaction: ' RIGHT-JUSTIFIED, 40 SY-TCODE. WRITE: /5 'Main program: ' RIGHT-JUSTIFIED, 40 SY-CPROG. SKIP. WRITE: /5 'SAP System ID: ' RIGHT-JUSTIFIED, 40 SY-SYSID. WRITE: /5 'SAP Release: ' RIGHT-JUSTIFIED, 40 SY-SAPRL. WRITE: /5 'Host: ' RIGHT-JUSTIFIED, 40 SY-HOST. WRITE: /5 'Operating system: ' RIGHT-JUSTIFIED, 40 SY-OPSYS. WRITE: /5 'Database system: ' RIGHT-JUSTIFIED, 40 SY-DBSYS. SKIP TO LINE 20. POSITION 10. WRITE: SY-COLNO, ',', SY-LINNO, 'Cursor position (column, row).'. WRITE: 'New:', SY-COLNO,',',SY-LINNO. SKIP. SY-ULINE = '------ Underline ------'. ULINE (23). WRITE: /5 'Vertical bar:', SY-VLINE. TOP-OF-PAGE. DETAIL. WRITE: 2 'Report Title: ', SY-TITLE(20). WRITE: 'Page Number: ', SY-PAGNO. SKIP.

ABCDE

APPLI SAP applications Background active (X)

EXAMPLE : BATCH
REPORT ZBCTCB99 NO STANDARD PAGE HEADING. PARAMETERS: TEST.

SAP R/3 Document : System Fields List


DETAIL. IF SY-BATCH EQ SPACE. WRITE: / 'Report was started on-line'. WRITE: / 'Using variant:', SY-SLSET. ELSE. WRITE: / 'Report was started in background'. ENDIF. BATZD Background SUBMIT: Daily BATZM Background SUBMIT: Monthly BATZO Background SUBMIT: Once BATZS Background SUBMIT: Immediately BATZW Background SUBMIT: Weekly BINPT Batch input active (X) BREP4 Background SUBMIT: Root name of request report BSPLD Background SUBMIT: List output to spool CALLD CALL mode active (X) CALLR Print: ID for print dialog function CCURS Rate specification/result field (CURRENCY CONVERT) CCURT Table rate from currency conversion CDATE Date of rate from currency conversion

COLNO Current column during list creation Current page number CPAGE EXAMPLE :
REPORT ZBCTCB90 NO STANDARD PAGE HEADING

SAP R/3 Document : System Fields List


LINE-COUNT 20 LINE-SIZE 80. TABLES: T000. DETAIL. DO 5 TIMES. SELECT * FROM T000. WRITE: / T000-MANDT, T000-MTEXT. ENDSELECT. NEW-PAGE. ENDDO. TOP-OF-PAGE. WRITE: / 'Page', SY-PAGNO. AT LINE-SELECTION. DETAIL. * SY-LSIND is the index of the current list WRITE: / 'SY-LSIND:', SY-LSIND LEFT-JUSTIFIED. * SY-LISTI is the index of the previous list WRITE: / 'SY-LISTI:', SY-LISTI LEFT-JUSTIFIED. * SY-LILLI is the number of the selected line in the absolute list WRITE: / 'SY-LILLI:', SY-LILLI LEFT-JUSTIFIED. * SY-CUROW is the position of the selected line on the screen WRITE: / 'SY-CUROW:', SY-CUROW LEFT-JUSTIFIED. * SY-CUCOL is the position of the cursor in the window WRITE: / 'SY-CUCOL:', SY-CUCOL LEFT-JUSTIFIED. SKIP. WRITE: / 'SY-CPAGE and SY-STAR0 do not depend on the cursor position'. SKIP. * SY-CPAGE is the currently displayed page of the list WRITE: / 'SY-CPAGE:', SY-CPAGE LEFT-JUSTIFIED.

SAP R/3 Document : System Fields List


* SY-STARO FIELD(10), is the number of the topmost actual list line displayed * on END the current OF T. page. DATA: WRITE: NUM / 'SY-STARO:', TYPE N. SY-STARO LEFT-JUSTIFIED. DETAIL. SKIP. * sy-linct * contents and sy-linsz of the selected describes line a page of the list WRITE: WRITE: / 'Example / 'SY-LISEL:', of sy-linct SY-LISEL. and sy-linsz'. SKIP. CPROG Runtime: Main program WRITE: / SY-LINCT, 'line and', (3) SY-LINSZ, 'column is a page'. CTABL Exchange rate table from currency conversion * sy-index works in do-enddo and while-endwhile loops. * ittype contains the number of loop passes. CTYPE Exchange rate 'M','B','G' from CURRENCY CONVERSION WRITE: /'Example of sy-index'. CUCOL Cursor position (column) . SKIP. CUROW Cursor position (line) . DO 5 TIMES. Flag: Data received WRITE: SY-INDEX. ENDDO. SY-DATAR

DATAR

* sy-tabix programming is the index number of the currently In transaction this field indicates the processed change of row data on the screen. In the PBO part you set the default value of the input fields of the dynpro. In the for you an internal table PAI*part can check if they were changed. If SY-DATAR is set, then the user has SKIP. modified or entered new data on the screen.

WRITE: /'Example of sy-tabix'. DATLO Local date for user SKIP. DATUM System: Date T-FIELD = 'One'. APPEND T. DATUT Global date related to=UTC (GMT) T-FIELD 'Two'. APPEND T. DAYST Summertime active ?= ('daylight saving time') T-FIELD 'Three'. APPEND T. Number T-FIELD of elements = 'Four'. in edited APPEND dataset T. with DB operations

EXAMPLE T-FIELD : = 'Five'. APPEND T. DBCNT


WRITE: /'Example of sy-tabix I'. REPORT ZBCTCB92. SKIP. TABLES: T000. LOOP AT T. DATA: BEGIN OF T OCCURS 0,

You might also like