Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
ABCDE APPLI BATCH Constant: Alphabet (A,B,C,...) SAP applications 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 BATZM BATZO BATZS BATZW BINPT Background SUBMIT: Daily Background SUBMIT: Monthly Background SUBMIT: Once Background SUBMIT: Immediately Background SUBMIT: Weekly 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 o o o o 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
BSPLD CALLD
Background SUBMIT: List output to spool CALL mode active (X) This field indicates if the transaction was called from another transaction. o o 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
Rate specification/result field (CURRENCY CONVERT) Table rate from currency conversion Date of rate from currency conversion Current column during list creation WRITE: SY-COLNO, ',', SY-LINNO, 'Cursor position (column, row).'.
CPAGE
CPROG
Exchange rate table from currency conversion Exchange rate type 'M','B','G' from CURRENCY CONVERSION Cursor position (column) WRITE: / 'SY-CUCOL:', SY-CUCOL LEFT-JUSTIFIED.
CUROW
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.
Local date for user System: Date Global date related to UTC (GMT) Summertime active ? ('daylight saving time') Number of elements in edited dataset with DB operations WRITE: /12 'Number of selected records:', SY-DBCNT CENTERED.
Logical database for ABAP/4 program System: Database system System: Dialog system Runtime: Name of dataset for spool output Screen group of current screen Number of current screen Factory calendar weekday 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.
Current function code menu Host Number of loop passes DO 5 TIMES. WRITE: SY-INDEX. ENDDO.
SAP logon language key Program: ABAP/4 database program for SY-DBNAM Number of current list line AT LINE-SELECTION. DETAIL.
* 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 LOCOP LOOPC LSIND Local database exists Local database operation Number of LOOP lines at screen step loop Number of secondary list * SY-LSIND is the index of the current list WRITE: / 'SY-LSIND:', SY-LSIND LEFT-JUSTIFIED. LSTAT MACDB Interact.: Status information for each list level Program: Name of file for matchcode access
MACOL MANDT MARKY MAROW MODNO MSGID MSGLI MSGNO MSGTY MSGV1 MSGV2 MSGV3 MSGV4 OPSYS
Number of columns from SET MARGIN Client number from SAP logon Current line character for MARK No. of lines from SET MARGIN statement Number of alternative modi Message ID Interact.: Message line (line 23) Message number Message type (E,I.W,...) Message variable Message variable Message variable Message variable System: Operating system
PAART PAGCT PAGNO PDEST PEXPI PFKEY PLIST PRABT PRBIG PRCOP PRDSN PREFX PRIMM PRNEW PRREC PRREL PRTXT REPID RTITL SAPRL SCOLS SLSET SPONO SPONR
Print: Format Page size of list from REPORT statement Runtime: Current page in list Print: Output device Print: Spool retention period Runtime: Current F key status Print: Name of spool request (list name) Print: Department on cover sheet Print: Selection cover sheet Print: Number of copies Print: Name of spool dataset ABAP/4 prefix for background jobs Print: Print immediately Print: New spool request (list) Print: Recipient Print: Delete after printing Print: Text for cover sheet Program: Name of ABAP/4 program Print: Report title of program to be printed System: SAP Release Columns on screen Name of selection set Runtime: Spool number for list output Runtime: Spool number from TRANSFER statement
Lines on screen Interact.: List displayed from column Interact.: Page displayed from line Number of LOOP line at screen step Return value after specific ABAP/4 statements ABAP/4: Call type for SUBMIT System: SAP System ID Runtime: Current line of an internal table SEARCH T FOR 're'. READ TABLE T INDEX SY-TABIX.
TCODE TFDSN TFILL TIMLO TIMUT TITLE TLENG TMAXL TNAME TOCCU TPAGI TSTLO TSTUT TTABC TTABI TVAR0 TVAR1 TVAR2 TVAR3 TVAR4 TVAR5 TVAR6 TVAR7 TVAR8 TVAR9 TZONE UCOMM
Session: Current transaction code Runtime: Dataset for data extracts Current number of entries in internal table Local time for user Global time related to UTC (GMT) Title of ABAP/4 program Line width of an internal table Maximum number of entries in internal table (?) Name of internal table after an access (?) OCCURS parameter with internal tables Flag indicating roll-out of internal table to paging area (?) Timestamp (date and time) for user Timestamp (date and time) related to UTC (GMT) Number of line last read in an internal table (?) Offset of internal table in roll area (?) Runtime: Text variable for ABAP/4 text elements Runtime: Text variable for ABAP/4 text elements Runtime: Text variable for ABAP/4 text elements Runtime: Text variable for ABAP/4 text elements Runtime: Text variable for ABAP/4 text elements Runtime: Text variable for ABAP/4 text elements Runtime: Text variable for ABAP/4 text elements Runtime: Text variable for ABAP/4 text elements Runtime: Text variable for ABAP/4 text elements Runtime: Text variable for ABAP/4 text elements Time difference from 'Greenwich Mean Time' (UTC) in seconds Interact.: Command field function entry
ULINE UNAME UZEIT VLINE WAERS WILLI WINCO WINDI WINRO WINSL WINX1 WINX2 WINY1 WINY2 WTITL XCODE ZONLO
Constant: Underline (---------...) Session: SAP user from SAP logon System: Time Constant: Vertical bar T001: Company code currency after reading B segment Number of current window line Cursor position in window (column) Index of current window line Cursor position in window (line) Interact.: Selected window line Window coordinate (column left) Window coordinate (column right) Window coordinate (line left) Window coordinate (line right) Standard page header indicator Extended command field Time zone of user
OSS1
OY19 S001 S002 SA38 SCAT SCU0 SE01 SE09 SE10 SE10
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 SE74 SE75 SE76 SE77
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) SAPscript format conversion SAPscript Settings SAPscript Translation Layout Sets SAPscript Translation Styles
SE82 SE84 SE85 SE86 SE87 SE88 SE91 SE92 SE93 SE93 SEU
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. HR Report to delete audit data from the PCL4 Audit Cluster. Delete all info for an employee number, including cluster data and infotypes View/Delete data from PCL1 Cluster View/Delete data from PCL2 Cluster
RPUP3D00/10 RPUP4D00/10 RSABAPIV RSAVGL00 RSBDCBTC RSBDCDRU RSBDCOS0 RSBDCSUB RSBTCDEL RSSDOCTB RSCLTCOP RSDBCREO RSINCL00 RSNASTED RSORAREL RSPARAM RSPO0041 RSRSCAN1 RSSNAPDL RSTBSERV RSTXFCON RSTXSCRP RSTXSCRP RSTXSCRP
View/Delete data from PCL3 Cluster View/Delete data from PCL4 Cluster Mass print/display of ABAP/4 help text Table adjustment across clients Submit a BDC job with an internal batch number and wait for the end of the batch input session. Prints the contents of a Batch Input session. No options for error transactions only. Execute UNIX commands. Looks similar to the old SAPMSOS0 program that disappeared in 3.0 Release batch input sessions automatically Clean the old background job records R/3 Table Manual - prints a list of all fields in the selected tables with the field name and the field documentation. Copy tables across clients Clean batch input session log Extended program list Process message control output for entries in the NAST table Get the Oracle Release Display all instance parameters Removing old spooling objects Search source code for a given string. Will also search includes. Also see RKCTSEAR and RPR_ABAP_SOURCE_SCAN. Clean the old ABAP error dumps Compare a contents of a table between clients Converts SAPScript page formats Save a SAPScript layout set to disk, and load it back into SAP. Transport SAPscript files across systems Upload and download
SAPScript layout sets RSTXTPDF4 RSTXTRAN Pass the spool number of a report's output to this program to have the output converted to PDF format. Add standard texts to a transport so they can be moved between systems . RSUSR003 RSUSR006 RSWBO052 RSWBO060 Check the passwords of users SAP* and DDIC in all clients List users last login Change development class of a sapscript (provided by Alan Cecchini) put objects into a request and transport it to any other system
10
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.
11
*--------------------------------------------------------------* 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. WHEN 200. IF SSCRFIELDS-UCOMM = 'FC01'. SUB-DYNNR = 100. ELSEIF SSCRFIELDS-UCOMM = 'FC02'. SUB-DYNNR = 300.
12
ENDIF. WHEN 300. IF SSCRFIELDS-UCOMM = 'FC01'. SUB-DYNNR = 200. ELSEIF SSCRFIELDS-UCOMM = 'FC02'. SUB-DYNNR = 100. ENDIF. ENDCASE.
To fetch all the material which starting with 'abc' from mara
SELECT matnr FROM mara WHERE matnr LIKE 'abc%' OR matnr LIKE 'ABC%'.
Particular
Example
Example
13
Finance Tables: Contains I A Meaning Open Item Closed Item Example BSID BSAD
Ends S D K
14