Você está na página 1de 14

Pankaj Pravin

List of 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.
o

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

Tcodes

Background SUBMIT: Root name of request report

Pankaj Pravin
BSPLD

Background SUBMIT: List output to spool

CALLD

CALL mode active (X)


This field indicates if the transaction was called from another
transaction.
o

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)


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

Tcodes

Local date for user

Pankaj Pravin
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.

Tcodes

Pankaj Pravin
* SY-LSIND is the index of the current list
WRITE: / 'SY-LSIND:', SY-LSIND LEFTJUSTIFIED.
* SY-LISTI is the index of the previous list
WRITE: / 'SY-LISTI:', SY-LISTI LEFTJUSTIFIED.
* SY-LILLI is the number of the selected line in
the absolute list
WRITE: / 'SY-LILLI:', SY-LILLI LEFTJUSTIFIED.
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

Tcodes

Interact.: Status information for each list level

Pankaj Pravin
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

Tcodes

Pankaj Pravin
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

Tcodes

Pankaj Pravin
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

List of SAP standard transaction Codes

OSS1

SAP Online Service System

OY19
S001

Compare Tables

S002
SA38
SCAT

System Administration.
Execute a program.

SCU0
SE01
SE09
SE10
SE10

Compare Tables
Old Transport & Corrections screen
Workbench Organizer
Customizing Organizer
Customizing organizer requests for user
(To release for transport enter user
name, press Enter. Select changed object
and select ReleaseSE10 New Transport &
Correction screen

Tcodes

ABAP Development Workbench

Computer Aided Test Tool

Pankaj Pravin
SE11

SE11
SE12
SE13
SE14
SE14
SE15
SE15
SE16
SE16
SE16
SE17
SE30
SE30
SE30
SE32
SE35
SE36
SE37
SE37
SE38
SE38
SE38
SE39
SE41
SE43
SE51
SE51
SE52
SE54
SE61
SE62
SE63
SE63
SE64
SE65
SE68
SE71
SE71
SE72
SE73

Tcodes

ABAP/4 Dictionary Maintenance SE12


ABAP/4 Dictionary Display SE13 Maintain
Technical Settings (Tables)
ABAP/4 Dictionary.
Dictionary: Initial Screen enter object
name
Access tables in ABAP/4 Dictionary.
ABAP/4 Dictionary: Database Utility.
Utilities for Dictionary Tables
ABAP/4 Repository Information System
ABAP/4 Repository Information System.
Data Browser
Data Browser: Initial Screen.
Display table contents
General Table Display
ABAP/4 Runtime Analysis
ABAP/4 Runtime Analysis: Initial Screen.
Run Time Analysis (press Tips and Tricks
button for good stuff)
ABAP/4 Text Element Maintenance
ABAP/4 Dialog Modules
ABAP/4: Logical Databases
ABAP/4 Function Library.
ABAP/4 Function Modules
ABAP Editor
ABAP/4 Editor.
ABAP/4 Program Development
Split screen Editor: Program Compare
Menu Painter
Maintain Area Menu
Screen Painter
Screen Painter: Initial Screen.
Parameterized screen painter call
Generate View Maintenance Module
R/3 Documentation
Industry utilities
Translate Short/Long Text.
Translation
Terminology
R/3 documents. Short text statistics SE66
R/3 Documentation Statistics (Test!)
Translation Administration
SAPscript layout set
SAPscript Layouts Create/Change
SAPscript styles
SAPscript font maintenance (revised)

Pankaj Pravin
SE74
SE75
SE76
SE77

SAPscript format conversion


SAPscript Settings
SAPscript Translation Layout Sets
SAPscript Translation Styles

SE78

Administration of Form Graphics

SE80
SE80
SE81

ABAP/4 Development Workbench


Repository Browser: Initial Screen.

SE82
SE84
SE85
SE86
SE87
SE88
SE91
SE92
SE93
SE93
SEU

SAP Application
Hierarchy
Customer Application Hierarchy
ABAP/4 Repository Information System
ABAP/4 Dictionary Information System
ABAP/4 Repository Information System
Data Modeler Information System
Development Coordination Info System
Maintain Messages
Maintain system log messages
Maintain Transaction Codes
Maintain Transaction.
Object Browser

List of Standard Reports


REKH0004

SAP demo program that shows how to do 2D, 3D, and 4D graphics.

RGUGBR00

Substitution/Validation utility

RHGEN00

Regen PD and PA inconsistencies

RHGRENZ0

Delimit IT1000 and related 1001s. Program will delete any 1001
infotypes whose start date is after the delimit date.

RHGRENZ1

Extend the end date on delimited records. Very useful when you
delimit a bunch of records incorrectly, and need to change the end date.

RHGRENZ2

Delimit IT1001 only.

RKCTSEAR

Search source code for up to two strings. Also see RSRSCAN1 and
RPR_ABAP_SOURCE_SCAN.

RPDTRA00

List all HR transactions.

RPR_ABAP_SOURCE_SCANSearch ABAP code for a string. Has many more options for selecting
the ABAPs to search than RSRSCAN1 or RKCTSEAR.
RPUAUD00

HR Report to list all logged changes for an employee. Uses the PCL4
Audit Cluster.

RPUAUDDL

HR Report to delete audit data from the PCL4 Audit Cluster.

Tcodes

Pankaj Pravin
RPUDELPN

Delete all info for an employee number, including cluster data and
infotypes

RPUP1D00/10

View/Delete data from PCL1 Cluster

RPUP2D00/10

View/Delete data from PCL2 Cluster

RPUP3D00/10

View/Delete data from PCL3 Cluster

RPUP4D00/10

View/Delete data from PCL4 Cluster

RSABAPIV

Mass print/display of ABAP/4 help text

RSAVGL00

Table adjustment across clients

RSBDCBTC

Submit a BDC job with an internal batch number and wait for the end
of the batch input session.

RSBDCDRU

Prints the contents of a Batch Input session. No options for error


transactions only.

RSBDCOS0

Execute UNIX commands. Looks similar to the old SAPMSOS0


program that disappeared in 3.0

RSBDCSUB

Release batch input sessions automatically

RSBTCDEL

Clean the old background job records

RSSDOCTB

R/3 Table Manual - prints a list of all fields in the selected tables with
the field name and the field documentation.

RSCLTCOP

Copy tables across clients

RSDBCREO

Clean batch input session log

RSINCL00

Extended program list

RSNASTED

Process message control output for entries in the NAST table

RSORAREL

Get the Oracle Release

RSPARAM

Display all instance parameters

RSPO0041

Removing old spooling objects

RSRSCAN1

Search source code for a given string. Will also search includes. Also
see RKCTSEAR and RPR_ABAP_SOURCE_SCAN.

RSSNAPDL

Clean the old ABAP error dumps

RSTBSERV

Compare a contents of a table between clients

RSTXFCON

Converts SAPScript page formats

RSTXSCRP

Save a SAPScript layout set to disk, and load it back into SAP.

RSTXSCRP

Transport SAPscript files across systems

RSTXSCRP

Upload and download


SAPScript layout sets

RSTXTPDF4

Pass the spool number of a report's output to this program to have the
output converted to PDF format.

RSTXTRAN

Add standard texts to a transport so they can be moved between


systems
.

RSUSR003

Check the passwords of users SAP* and DDIC in all clients

Tcodes

10

Pankaj Pravin
RSUSR006

List users last login

RSWBO052

Change development class of a sapscript (provided by Alan Cecchini)

RSWBO060

put objects into a request and transport it to any other system

Requirement:
Read a logical database (you must have data in those tables, now LFA1), fill up an internal
table. Sort the data by a given field and then display the internal table.
Solution:
report zldbread no standard page heading.
tables: lfa1.
data: begin of t occurs 0,
linfr like lfa1-lifnr,
name1 like lfa1-name1,
end of t.
start-of-selection.
get lfa1.
clear t.
move-corresponding lfa1 to t.
append t.
end-of-selection.
sort t by name1.
loop at t.
write: / t-name1, t-lifnr.
endloop.

A demo program to create subscreen in your ABAP Program


*
* This report will display the user last login date and time.
*
* Subscreen selection 1 : User Name 2 : Last Login Date 3 : Class Belong To
REPORT ZSUBSCREEN.
TABLES: USR02,
"Logon data
SSCRFIELDS. "FIELDS ON SELECTION SCREENS
*--------------------------------------------------------------* SUBSCREEN 1
*---------------------------------------------------------------

Tcodes

11

Pankaj Pravin
SELECTION-SCREEN BEGIN OF SCREEN 100 AS SUBSCREEN.
SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-010.
SELECT-OPTIONS: USERNAME FOR USR02-BNAME.
SELECTION-SCREEN END OF BLOCK B1.
SELECTION-SCREEN END OF SCREEN 100.
*--------------------------------------------------------------* SUBSCREEN 2
*--------------------------------------------------------------SELECTION-SCREEN BEGIN OF SCREEN 200 AS SUBSCREEN.
SELECTION-SCREEN BEGIN OF BLOCK B2 WITH FRAME TITLE TEXT-020.
SELECT-OPTIONS: LASTLOGI FOR USR02-TRDAT.
SELECTION-SCREEN END OF BLOCK B2.
SELECTION-SCREEN END OF SCREEN 200.
*--------------------------------------------------------------* SUBSCREEN 3
*--------------------------------------------------------------SELECTION-SCREEN BEGIN OF SCREEN 300 AS SUBSCREEN.
SELECTION-SCREEN BEGIN OF BLOCK B3 WITH FRAME TITLE TEXT-030.
SELECT-OPTIONS: CLASSTYP FOR USR02-CLASS.
SELECTION-SCREEN END OF BLOCK B3.
SELECTION-SCREEN END OF SCREEN 300.
* STANDARD SELECTION SCREEN FOR SCROLLING LEFT AND RIGHT
SELECTION-SCREEN: FUNCTION KEY 1,
FUNCTION KEY 2.
SELECTION-SCREEN: BEGIN OF TABBED BLOCK SUB FOR 15 LINES,
END OF BLOCK SUB.
START-OF-SELECTION.
SELECT * FROM USR02 WHERE BNAME IN USERNAME
AND ERDAT IN LASTLOGI
AND CLASS IN CLASSTYP.
WRITE: / 'User ', USR02-BNAME,
'Last Login Date ', USR02-TRDAT,
'Last Login Time ', USR02-LTIME,
'CLASS ', USR02-CLASS.
ENDSELECT.
END-OF-SELECTION.
INITIALIZATION.
* SCREEN ICON LEFT AND RIGHT
SSCRFIELDS-FUNCTXT_01 = '@0D@'.
SSCRFIELDS-FUNCTXT_02 = '@0E@'.
SUB-PROG = SY-REPID.
SUB-DYNNR = 100.
AT SELECTION-SCREEN.
CASE SY-DYNNR.
WHEN 100.
IF SSCRFIELDS-UCOMM = 'FC01'.
SUB-DYNNR = 300.
ELSEIF SSCRFIELDS-UCOMM = 'FC02'.
SUB-DYNNR = 200.
ENDIF.

Tcodes

12

Pankaj Pravin
WHEN 200.
IF SSCRFIELDS-UCOMM = 'FC01'.
SUB-DYNNR = 100.
ELSEIF SSCRFIELDS-UCOMM = 'FC02'.
SUB-DYNNR = 300.
ENDIF.
WHEN 300.
IF SSCRFIELDS-UCOMM = 'FC01'.
SUB-DYNNR = 200.
ELSEIF SSCRFIELDS-UCOMM = 'FC02'.
SUB-DYNNR = 100.
ENDIF.
ENDCASE.

How to find OK Codes


Goto menu bar -System--->Statusclick Gui Status ..
Expand all the nodes inside u will get all Function Code / ok code
for icons inside the in GUI menu Bar.

Sending Emails through SAP


We can send email using Function Module SO_NEW_DOCUMENT_ATT_SEND_API1

To fetch all the material which starting with 'abc' from mara
SELECT matnr FROM mara WHERE matnr LIKE 'abc%' OR matnr LIKE 'ABC%'.

Easy way to remember SAP Tables


Particular

Starts with

Example

Vendor

LFA1

Customer

KNA1, KONV

Sales

VBAK, VBAP

Bank

BKNF, BKPF

Purchasing

EKKO, EKPO

Material

MARA, MAKT, MARC

Master

T001, T001W

Tcodes

13

Pankaj Pravin
Particular

Header Table contains

Example

Item Table contains

Example

Sales,
Delivery,
Billing,
Purchasing

VBAK, LIKP,
VBRK, EKKO

VBAP, LIPS,
VBRP, EKKO

Finance Tables:
Contains

Meaning

Example

Open Item

BSID

Closed Item

BSAD

Ends

Meaning

Example

G/L Master Open Item

BSIS, BSAS

Customer related

BSID

Vendor related

BSIK

Tcodes

14

Você também pode gostar