Powered By

Free XML Skins for Blogger

Powered by Blogger

Saturday, October 11, 2008

In SAP SYSTEM FIELDS

ABCDE Constant: Alphabet (A,B,C,...)
APPLI SAP applications
BATCH Background active (X)


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)


This field indicates if the transaction was called in a Batch Input session or by an online user. To test it, a batch input session must be created. From Release 3.1g the next procedure can be used.

Create a report which displays this system field
Create a Transaction code for this report
Use transaction SHDB to record a the previous transaction
Press the Overview button and choose the 'generate program' function.
Running the previously generated program it will create a Batch Input session
Now call transaction SM35 and process the created Batch Input in foreground.

It should display an 'X' for system field SY-BINPT.

BREP4 Background SUBMIT: Root name of request report
BSPLD Background SUBMIT: List output to spool
CALLD CALL mode active (X)

This field indicates if the transaction was called from another transaction.
Create a report which displays this system field
Create a Transaction code for this report
Create a new report containing the next ABAP command: CALL TRANSACTION tcode. Where tcode is the Transaction code you created. When you run this report, it should display an 'X' for system field SY-CALLD.


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

WRITE: SY-COLNO, ',', SY-LINNO, 'Cursor position (column, row).'.
CPAGE Current page number
WRITE: / 'SY-CPAGE:', SY-CPAGE LEFT-JUSTIFIED.

CPROG Runtime: Main program

WRITE: /5 'Main program:' RIGHT-JUSTIFIED, 40 SY-CPROG.

CTABL Exchange rate table from currency conversion
CTYPE Exchange rate type 'M','B','G' from CURRENCY CONVERSION
CUCOL Cursor position (column)

WRITE: / 'SY-CUCOL:', SY-CUCOL LEFT-JUSTIFIED.

CUROW Cursor position (line)
CUROW Cursor position (line)

WRITE: / 'SY-CUROW:', SY-CUROW LEFT-JUSTIFIED.

DATAR Flag: Data received

In transaction programming this field indicates the change of data on the screen. In the PBO part you may set default values of the input fields of the dynpro. In the PAI part you can check if they were changed. If SY-DATAR is set, then the user has modified or entered new data on the screen.


DATLO Local date for user
DATUM System: Date
DATUT Global date related to UTC (GMT)
DAYST Summertime active ? ('daylight saving time')
DBCNT Number of elements in edited dataset with DB operations
WRITE: /12 'Number of selected records:', SY-DBCNT CENTERED.
DBNAM Logical database for ABAP/4 program
DBSYS System: Database system
DCSYS System: Dialog system
DSNAM Runtime: Name of dataset for spool output
DYNGR Screen group of current screen
DYNNR Number of current screen
FDAYW Factory calendar weekday
FDPOS Location of a string

SEARCH T FOR 're'.
READ TABLE T INDEX SY-TABIX.
WRITE: / SY-TABIX, T-FIELD.
SKIP.
WRITE: /9 'At the example of sy-tabix, Row', (3) SY-TABIX, ',' ,
'keyword ''re'' found at off-set position:', (3) SY-FDPOS.

FMKEY Current function code menu
HOST Host

INDEX Number of loop passes
DO 5 TIMES.
WRITE: SY-INDEX.
ENDDO.

LANGU SAP logon language key
LDBPG Program: ABAP/4 database program for SY-DBNAM
LILLI Number of current list line

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.
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.
LISTI Number of current list line
* SY-LISTI is the index of the previous list
WRITE: / 'SY-LISTI:', SY-LISTI LEFT-JUSTIFIED.


LOCDB Local database exists
LOCOP Local database operation
LOOPC Number of LOOP lines at screen step loop
LSIND Number of secondary list
* SY-LSIND is the index of the current list

WRITE: / 'SY-LSIND:', SY-LSIND LEFT-JUSTIFIED.

LSTAT Interact.: Status information for each list level
MACDB Program: Name of file for matchcode access
MACOL Number of columns from SET MARGIN
MANDT Client number from SAP logon
MARKY Current line character for MARK
MAROW No. of lines from SET MARGIN statement
MODNO Number of alternative modi
MSGID Message ID
MSGLI Interact.: Message line (line 23)
MSGNO Message number
MSGTY Message type (E,I.W,...)
MSGV1 Message variable
MSGV2 Message variable
MSGV3 Message variable
MSGV4 Message variable
OPSYS System: Operating system
PAART Print: Format
PAGCT Page size of list from REPORT statement
PAGNO Runtime: Current page in list
PDEST Print: Output device
PEXPI Print: Spool retention period
PFKEY Runtime: Current F key status
PLIST Print: Name of spool request (list name)
PRABT Print: Department on cover sheet
PRBIG Print: Selection cover sheet
PRCOP Print: Number of copies
PRDSN Print: Name of spool dataset
PREFX ABAP/4 prefix for background jobs
PRIMM Print: Print immediately
PRNEW Print: New spool request (list)
PRREC Print: Recipient
PRREL Print: Delete after printing
PRTXT Print: Text for cover sheet
REPID Program: Name of ABAP/4 program
RTITL Print: Report title of program to be printed
SAPRL System: SAP Release
SCOLS Columns on screen
SLSET Name of selection set
SPONO Runtime: Spool number for list output
SPONR Runtime: Spool number from TRANSFER statement
SROWS Lines on screen
STACO Interact.: List displayed from column
STARO Interact.: Page displayed from line
STEPL Number of LOOP line at screen step
SUBRC Return value after specific ABAP/4 statements
SUBTY ABAP/4: Call type for SUBMIT
SYSID System: SAP System ID
TABIX Runtime: Current line of an internal table


SEARCH T FOR 're'.
READ TABLE T INDEX SY-TABIX.

TCODE Session: Current transaction code
TFDSN Runtime: Dataset for data extracts
TFILL Current number of entries in internal table
TIMLO Local time for user
TIMUT Global time related to UTC (GMT)
TITLE Title of ABAP/4 program
TLENG Line width of an internal table
TMAXL Maximum number of entries in internal table (?)
TNAME Name of internal table after an access (?)
TOCCU OCCURS parameter with internal tables
TPAGI Flag indicating roll-out of internal table to paging area (?)
TSTLO Timestamp (date and time) for user
TSTUT Timestamp (date and time) related to UTC (GMT)
TTABC Number of line last read in an internal table (?)
TTABI Offset of internal table in roll area (?)
TVAR0 Runtime: Text variable for ABAP/4 text elements
TVAR1 Runtime: Text variable for ABAP/4 text elements
TVAR2 Runtime: Text variable for ABAP/4 text elements
TVAR3 Runtime: Text variable for ABAP/4 text elements
TVAR4 Runtime: Text variable for ABAP/4 text elements
TVAR5 Runtime: Text variable for ABAP/4 text elements
TVAR6 Runtime: Text variable for ABAP/4 text elements
TVAR7 Runtime: Text variable for ABAP/4 text elements
TVAR8 Runtime: Text variable for ABAP/4 text elements
TVAR9 Runtime: Text variable for ABAP/4 text elements

TZONE Time difference from 'Greenwich Mean Time' (UTC) in seconds
UCOMM Interact.: Command field function entry
ULINE Constant: Underline (---------...)
UNAME Session: SAP user from SAP logon
UZEIT System: Time
VLINE Constant: Vertical bar
WAERS T001: Company code currency after reading B segment
WILLI Number of current window line
WINCO Cursor position in window (column)
WINDI Index of current window line
WINRO Cursor position in window (line)
WINSL Interact.: Selected window line
WINX1 Window coordinate (column left)
WINX2 Window coordinate (column right)
WINY1 Window coordinate (line left)
WINY2 Window coordinate (line right)
WTITL Standard page header indicator
XCODE Extended command field
ZONLO Time zone of user

No comments:

Archives