a important system fields from the syst structure978-3-642-57225...330 appendix code functionality...

22
Appendix A Imp rtant System Fie ds fr m the SYST Structure The system fields are grouped according to application and sorted alphabetically within the ap- plication. The system fields used most often are emphasized. ,,\ ·,kill I le'I,,1 I 1\ I'" I" t I I ,k'llllll: I ----- ._- Internal tables SY-TABIX INT4 10 Runtime: Current line of an internal table SY-TFILL INT4 10 Current number of entries in internal table SY-TLENG INT4 10 Line width of an internal table SY-TMAXL INT4 10 Maximum number of entries in internal table SY-TNAME CHAR 30 Name of internal table after an access SY-TOCCU INT4 10 OCCURS parameter for internal tables SY-TPAGI INT4 10 Flag indicating roll-out of internal table SY-TTABC INT4 10 Number of line last read in an internal table SY-TTABI INT4 10 Offset of internal table in the roll area Program SY-CPROG CHAR 8 Runtime: Main program SY-DBNAM CHAR 2 Logical database for executable ABAP programs SY-FDPOS INT4 10 Location of a found string SY-FMKEY CHAR 3 Current function code menu SY-INDEX INT4 10 Number of loop passes SY-LDBPG CHAR 8 Program: ABAP database program for SY-DB SY-MACDB CHAR 4 Program: ABAP database program for SY-DB SY-REPID CHAR 8 Program: Name of ABAP program SY-SUBRC INT4 10 Return value after specific ABAP/4 state SY-SUBTY RAW 1 ABAP: Call type for SUBMIT SY-TCODE CHAR 4 Session: Current transaction code SY-TITLE CHAR 70 Title of ABAP program SY-UCOMM CHAR 70 Interact.: Command field function entry SY-XCODE CHAR 70 Extended command field

Upload: dinhhanh

Post on 13-Apr-2018

213 views

Category:

Documents


0 download

TRANSCRIPT

Appendix

A Important System Fields from the SYST Structure

The system fields are grouped according to application and sorted alphabetically within the ap­plication. The system fields used most often are emphasized.

,,\ ·,kill I le'I,,1 I 1\ I'" I" t I ~!l1 I

,k'llllll: I ----- ._-

Internal tables SY-TABIX INT4 10 Runtime: Current line of an internal table SY-TFILL INT4 10 Current number of entries in internal table SY-TLENG INT4 10 Line width of an internal table SY-TMAXL INT4 10 Maximum number of entries in internal table SY-TNAME CHAR 30 Name of internal table after an access SY-TOCCU INT4 10 OCCURS parameter for internal tables SY-TPAGI INT4 10 Flag indicating roll-out of internal table SY-TTABC INT4 10 Number of line last read in an internal table SY-TTABI INT4 10 Offset of internal table in the roll area

Program SY-CPROG CHAR 8 Runtime: Main program SY-DBNAM CHAR 2 Logical database for executable ABAP programs SY-FDPOS INT4 10 Location of a found string SY-FMKEY CHAR 3 Current function code menu SY-INDEX INT4 10 Number of loop passes SY-LDBPG CHAR 8 Program: ABAP database program for SY-DB SY-MACDB CHAR 4 Program: ABAP database program for SY-DB SY-REPID CHAR 8 Program: Name of ABAP program SY-SUBRC INT4 10 Return value after specific ABAP/4 state SY-SUBTY RAW 1 ABAP: Call type for SUBMIT SY-TCODE CHAR 4 Session: Current transaction code SY-TITLE CHAR 70 Title of ABAP program SY-UCOMM CHAR 70 Interact.: Command field function entry SY-XCODE CHAR 70 Extended command field

326 Appendix

System Field Type .~ngth Meaning Lists SY-COLNO INT4 10 Current column durin~ list creation SY-CPAGE INT4 10 Current page number SY-CUCOL INT4 10 Cursor position (column) SY-CUROW INT4 10 Cursor position (line) SY-LILLI INT4 10 Number of current list line SY-LINCT INT4 10 Number of list lines SY-LINNO INT4 10 Current line for list creation SY-LINSZ INT4 10 Current line for list creation SY-LISEL CHAR 255 Interact.: Selected line SY-LISTI INT4 10 Number of current list line SY-LSIND INT4 10 Number of secondary list SY-LSTAT CHAR 16 Interact.: Status information for each list SY-PAGCT INT4 10 Do not use this field any more SY-PAGNO INT4 10 Runtime: Current pa~e in list SY-STACO INT4 10 Interact.: List displayed from column SY-STARO INT4 10 Interact.: Pa~e displayed from line SY-WTITL CHAR 1 Standard page header indicator

Window SY-SCOLS INT4 10 Standard page header indicator SY-SROWS INT4 10 Lines on screen SY-WILLI INT4 10 Number of current window line SY-WINCO INT4 10 Cursor position in window (column) SY-WINDI INT4 10 Index of current window line SY-WINRO INT4 10 Cursor position in window (line) SY-WINSL CHAR 79 Interact.: Selected window line SY-WINXI INT4 10 Window coordinate (column left) SY-WINX2 INT4 10 Window coordinate (column right) SY-WINYI INT4 10 Window coordinate (line left) SY-WINY2 INT4 10 Window coordinate (line right)

SY-Dynpro SY-DYNGR CHAR 4 Screen group of current screen SY-DYNNR CHAR 4 Number of current screen SY-LOOPC INT4 10 Number of LOOP lines at screen step loop SY-STEPL INT4 10 Number of LOOP line at screen step

A Important System Fields from the SYST Structure 327

Print SY-CALLR CHAR 8 Print: ID for print dialog function SY-PAART CHAR 16 Print: F onnat SY-PDEST CHAR 4 Print: Output device SY-PEXPI NUMC 1 PRINT: Spool retention period SY-PLIST CHAR 12 Print: Name of spool request (list name) SY-PRABT CHAR 12 Print: Department on cover sheet SY-PRBIG CHAR 1 Print: Selection cover sheet SY-PRCOP NUMC 3 Print: Number of copies SY-PRDSN CHAR 6 Print: Name of spool dataset SY-PRIMM CHAR 1 PRINT: Print immediately SY-PRNEW CHAR 1 PRINT: New spool request (list) SY-PRREC CHAR 12 Print: Recipient SY-PRREL CHAR 1 PRINT: Delete after printing SY-PRTXT CHAR 68 Print: Text for cover sheet SY-RTITL CHAR 70 Print: Report title of print program

Date time SY-DAYST CHAR 1 Is 'daylight saving time' active? SY-FDAYW INTI 3 Factory calendar weekday SY-TSTLO NUMC 14 User's timestamp SY-TZONE INT4 10 Time difference from Greenwich Mean Time SY-ZONLO CHAR 6 User's timezone

Currency/rate SY-CCURS DEC 9 Rate specification/result field (CURRENCY CONVERT) SY-CCURT DEC 9 Table rate from currency conversion SY-CDATE DATS 8 Date of rate from currency conversion SY-CTABL CHAR 4 Exchange rate table from currency conversion SY-CTYPE CHAR 1 Exchange rate type 'M','B','G' from CURRENCY CONY. SY-WAERS CUKY 5 TOO 1: Company code currency after reading

System SY-APPLI RAW 2 SAP applications SY-BATCH CHAR 1 Batch active (X) SY-BINPT CHAR 1 Batch-input active (X) SY-CALLD CHAR 1 Call-mode active (X) SY-DATUM DATS 8 SYSTEM: Current date SY-DBSYS CHAR 10 System: Database system SY-DCSYS CHAR 4 System: Dialog system SY-HOST CHAR 8 Host

328 Appendix

SY-LANGU LANG 1 Language key from SAP logon SY-MANDT CLNT 3 Client number from SAP logon SY-MODNO CHAR 1 Number of alternative sessions SY-OPSYS CHAR 10 System: Operating system SY-SAPRL CHAR 4 System: SAP release SY-SYSID CHAR 8 System: SAP system ID SY-UNAME CHAR 12 Session: SAP user from SAP logon SY-UZEIT TIMS 6 SYSTEM: Time

Batch SY-BATZD CHAR 1 Background SUBMIT: Daily SY-BATZM CHAR 1 Background SUBMIT: Monthly SY-BATZO CHAR 1 Background SUBMIT: One-off SY-BATZS CHAR 1 Background SUBMIT: Immediately SY-BATZW CHAR 1 Background SUBMIT: Weekly SY-BREP4 CHAR 4 Background SUBMIT: Root name of request SY-BSPLD CHAR 1 Background SUBMIT: List output to spool SY-PREFX CHAR 3 ABAP prefix for background jobs

Runtime SY-ABCDE CHAR 26 Constant: Alphabet (A,B,C, ... ) SY-DATAR CHAR 1 Flag: Data received SY-DSNAM CHAR 8 Runtime: Name of dataset for spool output SY-PFKEY CHAR 8 Runtime: Current PF key status SY-SPONO NUMC 5 Runtime: Spool number for list output SY-SPONR NUMC 5 Runtime: Spool number from TRANSFER statement SY-TFDSN CHAR 8 Runtime: Dataset for data extracts

Messages SY-MSGID CHAR 2 Message-ID SY-MSGLI CHAR 60 Interact.: Message line (line 23) SY-MSGNO NUMC 3 Message-Number SY-MSGTY CHAR 1 Message-Type (E, I, W, ... 2 SY-MSGVl CHAR 50 Message variable SY-MSGV2 CHAR 50 Message variable SY-MSGV3 CHAR 50 Message variable SY-MSGV4 CHAR 50 Message variable

B Important Transaction Codes 329

B Important Transaction Codes

The following table contains important transaction codes. These codes can be used in the fol­lowing manner to invoke transactions:

• Start the transactions using the command field with one of the prefixes In invoke transaction in the same mode 10 invoke transaction in a new mode /h invoke transaction in debug mode

• Start the transaction from an area menu • Start the transaction from a program using

START TRANSACTION CALL TRANSACTION

Code Functionality

SOO Short message

SA38 ABAP Reporting

SA39 SA38 for Parameter Transaction

SAR Maintain Transaction Codes

SARO Display Standard Reporting Tree

SCCO Client Copy

SDll Data Modeler

SDMO Dynamic Menu (old)

SDWO ABAP/4 Development WB Initial Screen SEOI Transport Organizer SE09 Workbench Organizer SEll ABAP/4 Dictionary Maintenance SEl2 ABAP/4 Dictionary Display SE13 Maintain Technical Settings (Tables) SE14 Utilities for Dictionary Tables SE15 ABAP/4 Repository Information System

SE16 Data Browser

SEl7 General Table Display

SE30 ABAP Runtime Analysis

SE36 ABAP/4: Logical Databases SE37 ABAP/4: Function Modules SE38 ABAP/4: Editor SE39 Split-screen Editor: Program Compare SE41 Menu Painter SE43 Maintain Area Menu

330 Appendix

Code Functionality ··1

SE51 Screen Painter SE80 Repository Browser SE86 ABAP/4 Repository Information System SEU Repository Browser SM02 System Messages SM04 User Overview SM12 Display and Delete Locks SM21 System Log SM30 Call View Maintenance SM31 Table Maintenance SM35 Batch Input Monitoring SM36 Define Background Job SM37 Background Job Overview SM50 Work Process Overview SM64 Release of an Event SM65 Background Processing Analysis Tool SM66 System-wide Work Process Overview SM67 Job Scheduling SM68 Job Administration SOOO SAPoffice: Short message SUOl User Maintenance SU02 Maintain Authorization Profiles SU03 Maintain Authorizations

C Programs 331

C Programs

The listed programs are described in the indicated chapters. The list created for each report is also described. The table data in Appendix D can be used to check the listings. The programs are grouped according to level of difficulty: easy, medium and difficult.

It

ZI 00 01 Download source code with log medium

ZR 06 01 6 Internal fields and basic calculations easy ZR 06 02 6 Internal fields and functions easy ZR 06 03 6 Date arithmetic easy ZR 06 04 6 Output statements easy ZR 06 05 6 IF -Statement easy ZR 06 06 6 String operators easy ZR 06 07 6 Logical operators easy ZR_0608 6 CASE statement easy ZR 06 09 6 DO loop easy ZR 06 10 6 WHILE loop easy ZR 06 11 6 Structures defined with INCLUDE STRUCTURE easy ZR 06 12 6 Structures defined with LIKE easy ZR 06 13 6 Internal tables: LOOP and WHILE easy ZR 06 14 6 Internal tables: APPEND easy ZR 06 15 6 Internal tables: MODIFY and DELETE ea~

ZR 06 16 6 Complex data types medium ZR 06 17 6 Field symbols easy ZR 06 21 6 Selection of partners with ZIP-code like 9% easy ZR 06 22 6 Select all accounts into an internal table easy ZR 06 23 6 Combined SELECTs and view medium ZR 06 24 6 COMMIT WORK and ROLLBACK WORK easy ZR 06 25 6 Dynamic select medium ZR 06 26 6 Native SQL with subselect to DB/2 medium ZR 06 27 6 Native SQL to DB/2 easy

ZR 07 01 7 Event control in reports easy ZR 07 02 7 Details lists medium ZR 07 03 7 Control break with ON CHANGE OF medium ZR_07_04 7 Control break with AT NEW medium

332 Appendix

ZR 08 01 8 Macro definitions for program generation easy ZR 08 02 8 Form with table parameters easy ZR 08 03 8 Forms with complex parameters medium ZR 08 04 8 Recursive calculation of faculties medium ZR 08 05 8 Recursive path search inside a net difficult ZR 08 06 8 Call of a reports with SUBMIT medium ZR 08 07 8 EXPORT TO MEMORY and SET PARAMETER easy ZR 08 08 8 IMPORT FROM MEMORY and GET PARAMETER easy ZR 08 09 8 Report on ZDF logic database medium

ZM 09 01 9 Screen elements in dialog programs easy ZM 09 02 9 Calculator medium ZM 09 03 9 Dialog for document entry difficult ZR 09 04 9 Two table controls on one screen difficult

ZR 10 01 10 Creating and starting a batch job medium ZR 10 02 10 Reading a job log medium

ZR 11 01 11 Read a file from the workstation, output to appl. server easy ZR 11 02 11 Download of a report with line numbers medium ZR 11 03 11 Split lines into single fields medium ZR 11 04 11 Generating a logical file interface difficult ZR 11 05 11 Buffered reading of a control table difficult ZR 11 06 11 Processing data with ZLF logical file interface medium

ZR 12 01 12 Create batch input folders from a file medium ZR 12 02 12 Batch input using CALL TRANSACTION medium

ZR 13 01 13 RFC call between two Rl3 systems medium ZR 13 02 13 ABAP as OLE client on an EXCEL server medium ZR_13_03 13 ABAP as OLE client with WinWord medium

D Sample Tables 333

D Sample Tables

ZPOSTK Table

Field Key Type/ Data Element Domain Significance l Length MANDT x CLNT 3 MANDT MANDT Client PSTKY X NUMC 3 PSTKY DE PSTKY - DO Posting key

ZPOSTKYT Table

Field Key Type/Len. Data Element Domain Significance I MANDT X CLNT 3 MANDT MANDT Client

SPRAS X LONG1 SPRAS SPRAS Language key

PSTKY X NUMC 3 PSTKY DE PSTKY DO Posting key

PSTKYT CHAR 20 PSTKYT DE PSTKYT_ DO Posting key text

MANDT LANGU PSTKY PSTKYT I 101 E 1 Part benefits

101 E 2 Prepayment

1 01 E 3 Manua l posting

101 E 4 Delay interest

101 E 5 Payment on account

101 E 6 Illness

101 E 7 Back- payment

101 E 8 Net premium , ,,,

'" 0 D~ -F " ,,,",,.iI

334 Appendix

ZPARTNER Table

Field Key Type I Data £le- Domain Significance Length ment I

MANDT X CLNT 3 MANDT MANDT Client PARTNO R X NUMC B ZPARTNO DE PARTNO DO Partner number SNAME CHAR 15 ZSNAME DE CHAR1S Second name FNAME CHAR 15 ZFNAME DE CHAR15 First name TITLE CHAR 10 ZTITLE DE CHARlO Title SEX CHAR 1 ZSEX DE ZSEX DE Sex STREET CHAR 30 ZSTREET DE STREET DO Street TOWN CHAR 16 ZTOWN DE CHAR 1 6 Town ZIP CHAR S ZZ I P DE CHARS ZIP - code

MANDT PARTNO LNAME FNAME TITLE SEX STREET TOWN ZIP-CODE

101 1000 St one Sharon Mrs. F P.O. Box 4123 Hollywood 90028 101 100 1 Stone Paul Mr . Dr . M P. O. Box 4123 Hollywood 90028 101 1002 Bl ack Frank Mr. M 6000 Uni Park- San Bernadino 92407

way 101 1003 Bl ack J ane Mrs. Dr . F 6000 Uni Park- San Bernadino 92407

way 101 1004 Huesing Wanda Mrs. F 5550 Carpente- Carpenteria 93013

ria Avenue 101 1005 Wolf Peter Mr . M 2229 East Uni - Pheonix 85034

versity Drive 101 1006 Wolf Mary- Mrs . Dr. F 2229 East Uni - Phoenix 85034

Ann versity Drive 101 1007 Smith John Mr . M 1105 Santa Bar- Santa Barbara 90028

bara Street 101 1008 Hernandez Migue l Mr. Dr. M 732 Union Romeoville 60441 101 1009 Hernandez Maria Mrs . F 733 Union Romeoville 60441 101 1010 Li Anh Mrs . F P. O. Box 5422 Hattisburg 39406

D Sample Tables 335

ZPRODUCT Table

Pield Key Type/ Data 81e- Domain Significance I Length ment

MANDT x CLNT 3 MANDT MANDT Client PRODNO X NUMC 8 ZPRODNO DE ZPRODNR DO Product number PRODGRP CHAR 5 ZPRODGRP DE ZPRODGR DO Product group PRODTXT CHAR 20 ZPRODTXT DE CHAR20 Product text

MANDT PRODNO PRODGRP PRODTXT I 101 2000 PI Third-party insurance

101 2001 PI Third-party insurance

101 2002 PI Car third-party insurance

101 2003 PI Car third-party insurance

101 2004 PI Car fully-comprehensive insurance

101 2005 PI Car fully-comprehensive insurance

101 2006 PI Car fully-comprehensive insurance

101 2007 PI Passenger insurance

101 2008 LI Life insurance

101 2009 LI Life insurance

101 2010 LI Term life insurance

101 2011 LI Pension plan

101 2012 LI Pension plan

101 2013 LI Group insurance

336 Appendix

ZCONTRACT Table

Field Key Type I Data Ble- Domain Significance 1 Length ment

MANDT x CLNT 3 MANDT MANDT Client CONTNO X NUMC 8 ZCONTNO DE ZCONTNO DO Contract number PARTNO NUMC 8 ZPARTNO DE ZPARTNO DO Partner number PRODNO NUMC 8 ZPRODNO DO ZPRODNO DO Product number ACCNO NUMC 8 ZACCNO DO ZACCNO DO Account number STARTDAT DATS 8 ZSTARTDAT DE DATE Starting date of contract ENDDAT DATS 8 ZENDDAT DE DATE End date of contract BASAM CURR 13 ZBASAM DE CURRV13 Basic amount CURRKY CUKY 5 CURRKY DE WAERS Currency key OFFERV CHAR 1 - ZOFFERV_DE XFELD Offer validity

MANDT CONTNO PARTNR PRODNO ACCNO STARTDAT BNDDAT BASAM ct7t1JUtY O .... BRV 101 3000 1001 2001 4001 19960723 20060712 1200 USD 101 3001 1002 2002 4002 19960723 20060712 1450 USD X 101 3002 1003 2003 4003 19960723 20060712 1700 USD 101 3003 1004 2004 4004 19960723 20060712 1950 USD 101 3004 1001 2005 4005 19960723 20060712 2200 USD 101 3005 1001 2006 4001 19960723 20060712 2450 USD 101 3006 1005 2002 4007 19960723 20060712 2700 USD 101 3007 1006 2004 4008 19960723 20060712 2950 USD 101 3008 1007 2003 4009 19960723 20060712 3200 USD 101 3009 1008 2001 4010 19960723 20060712 3450 USD 101 3010 1009 2005 4012 19960723 20060712 3700 USD 101 3011 1010 2705 4130 19960723 20060712 3950 USD 101 3012 1001 2006 4014 19960723 20060712 4200 USD 101 3013 1010 2004 4010 19960723 20060712 4450 USD X 101 3014 1005 2000 4002 19960723 20060712 4700 USD 101 3015 1008 2001 4003 19960723 20060712 4950 USD 101 3016 1001 2002 4004 19960723 20060712 5200 USD 101 3017 1009 2005 4005 19960723 20060712 5450 USD X

D Sample Tables 337

ZACCOUNT Table

Field Key Type I Data Element Domain Significance l Lenqth MANDT x CLNT 3 MANDT MANDT Client ACCNO X NUMC 8 ZACCNO DE ZACCNO DO Account number ACCTP CHAR 1 ZACCTP DE YKONTNO DO Account type BLOCK CHAR 1 ZBLOCK DE XFELD Account blocked

MANDT ACCNO ACCTP BLOCK 101 4000 P

101 4001 P

101 4002 P 101 4003 P X

101 4004 K

101 4005 P

101 4006 P X

101 4007 K

101 4008 P

101 4009 P

101 4010 P

101 4011 P

101 4012 P

338 Appendix

ZDOCHD Table

Field Key Type I Data Element Domain Significance l Length MANDT x CLNT 3 MANDT MANDT Client DOCNO X NUMC 8 ZDOCNO DE ZDOCNO DE Document number CCODE CHAR 4 BUKRS BUKRS Company code CONTNO NUMC 8 ZCONTNO DE EZCONTNO DO Contract number ACCNO NUMC 8 ZACCNO DE EYKONTNR DO Account number DOCTYPE CHAR 5 ZDOCTYP DE ZDOCTYP DO Document type CURRKY CUKY 5 CURRKY WAERS Currency key PSTDAT OATS 8 ZPSTDAT DE DATE Postinq date DOCTXT CHAR 20 ZDOCTXT DE ECHAR20 Document text

NAND DOCN CCODS CONTNO ACCNO DOCTY CORRKY PSTDAT BBLTXT DOCT 5000 1 3001 4001 EB USD 19960824 Doctext01

101 5001 1 3001 4001 EB USD 19960824 Doctext02

101 5002 1 3002 4001 ER USD 19960824 Doctext03

101 5003 1 3003 4002 EB USD 19960824 Doctext04

101 5004 1 3003 4002 EB USD 19960824 Doctext05

101 5005 1 3004 4003 EB USD 19960824 Doctext06

101 5006 1 3007 4004 FB USD 19960824 Doctext07

101 5007 1 3007 4011 EB USD 19960824 Doctext08

101 5008 1 3007 4012 EB USD 19960824 Doctext09

101 5009 1 3006 4003 EB USD 19960824 Doctext10

101 5010 1 3003 4008 FB USD 19960824 Doctext11

101 5011 1 3005 4010 EB USD 19960824 Doctext12

101 5012 1 3005 4010 EB USD 19960824 Doctext13

101 5013 1 3005 4005 EB USD 19960824 Doctext14

101 5014 1 3005 4005 EB USD 19960824 Doctext15

101 5015 1 3006 4001 ER USD 19960824 Doctext16

101 5016 1 3010 4007 FB USD 19960824 Doctext17

101 5017 1 3011 4007 ER USD 19960824 Doctext18

101 5018 1 3012 4007 EB USD 19960824 Doctext19

D Sample Tables 339

ZDOCITEM Table

Field Key Type/Len Data Ele- Domain Significance I MANDT X CLNT 3 MANDT MANDT Client DOCNO X NUMC B ZDOCNO DE ZDOCNO DO Document number - -ITEMNO X NUMC 3 ZITEMNO DE NUMC3 Item number

PSTKY NUMC 3 ZPSTKY DE - ZPSTKY DO Posting key AMOUNT CURR 13 ZAMOUNT DE CURRV13 Amount -

ENDDAT OATS B ZENDDAT DE DATE End date -ITEMTXT CHAR 20 ZITEMTXT DE CHAR20 Item text

MANDl' BBldDt POSNR BUGRD WRBTR PABDAT POSTXT 101 5006 2 6 50 19970415 Itemtext025 101 5007 1 7 2950 19970515 Itemtext026 101 5007 2 2 100 19970515 Itemtext027 101 5008 1 3 2950 19970615 Itemtext028 101 5009 1 5 2700 19970801 Itemtext029 101 5009 2 5 100 19970801 Itemtext030 101 5010 1 1 1950 19970201 Itemtext031 101 5011 1 9 2450 19970720 Itemtext032 101 5011 2 4 200 19970720 Itemtext033 101 5011 3 6 10 19970720 Itemtext034 101 5012 1 7 2450 19970820 Itemtext035 101 5012 2 7 50 19970820 Itemtext036 101 5013 1 2 2450 19970301 Itemtext037 101 5014 1 1 2450 19970301 Itemtext038 101 5014 2 9 50 19970301 Itemtext039 101 5015 1 3 2700 19970525 Itemtext040 101 5016 1 2 3700 19970513 Itemtext041 101 5016 2 5 60 19970513 Itemtext042 101 5017 1 5 3950 19970606 Itemtext043 101 5018 1 7 4200 19970201 Itemtext044

340 Appendix

E Diskette Contents

The diskette for the book contains the TRANSP and UPLOAD directories.

TRANSP Directory All development objects (domains, data elements, tables, matchcodes, logical databases, mes­sage classes, programs, etc.) used in the examples for this book have been assigned to the ZABP development class. The TRANSP directory contains all the files needed for a transport of the Y ABP development class into (unknown) Rl3-system DUM (Dummy). The following steps must be performed:

• First use FTP (WinFTP) to copy the following files in binary mode to the Rl3 transport di­rectory "/usr/sap/trans" (UNIX) or "drive\USR\SAP\TRANS" (Windows NT): - D900172.BVl to /usr/sap/trans/data (correspondingly for Windows NT) - R900172.BVl to /usr/sap/trans/data (correspondingly for Windows NT) - K900172.BVI to /usr/sap/trans/cofiles (correspondingly for Windows NT) In UNIX, all file names must be stored in uppercase and <sid>adm as owner.

• The order with the name "BVIK900172" then must be placed in the import buffer of the customer system: - Login as <sid>adm - cd /usr/sap/trans/bin - tp addtobuffer BVIK900172 <SID> Then start the import with the following command: - tp import BVIK900I72 <SID> client=<targetclient> UI Because the "DUM" SID was exported, the UI unconditional mode is significant.

UPLOAD Directory The UPLOAD directory contains all source code for the sample programs of the book (reports, includes, module pools, procedures, function modules). The Upload command can be used to load individual source code into the Workbench editor. The procedure is particularly suitable for those reports that do not access the tables of the ZABP development class, e.g., for the ZR_I L04 report to generate logical file interfaces.

The ZLF.XLS Excel folder also contains all sample tables. The ErstelleAsciiDateiO Excel macro, also contained in this folder, can be used to write these sample tables into a text file ZLF.TXT. The ZR_l L06 report can import this file into the system once the tables have been created.

Bibliography

Buck-Emden, RUdiger; Galimov, JUrgen: SAP Rl3 System - A Client Server Technology Addison-Wesley, 1996

Hanusch, Thomas; Matzke, Bernd; Perez, Mario: SAP Rl3 On The Internet Addison-Wesley, 1998

Keller, Gerhard; Teufel,Thomas: SAP Rl3 Process Oriented Implementation Iterative Process Prototyping Addison-Wesley, 1997

Kretschmer, RUdiger; Weiss, Wolfgang: SAP Rl3 Development with ABAPI4 Sybex, 1996

Matzke, Bernd: ABAPI4. The Programming Language of SAP's System Rl3 Addison-Wesley, 1996

Will, Liane; Hienger, Christiane; StraBenburg, Frank; Himmer, Rocco: SAP Rl3 - Administration Addison-Wesley, 1997

Index

A ABAP/457 ABAP/4 processor 120 ABAP/4 Workbench see Workbench AND 73 APPEND 91 area menus 48 ASCENDING 93 ASSIGN 98 ATEND 133 ATFIRST 133 ATLAST 133 AT LINE-SELECTION 122 ATNEW 133 AT SELECTION-SCREEN INPUT 121 AT SELECTION-SCREEN OUTPUT 121 AT USER-COMMAND 122 authorization 181

B background processing 241

- external workflow 253 -job log 254,255 -, parallel 252

basic list 127 batch input 285

- BDC OKCODE 291 - CALL TRANSACTION 293 - process sessions 291 - session creation

- BDC CLOSE GROUP 287 - -- session management 290 - sessions 287

batch processing 241 BDC OKCODE 291 BDCDATA 286 BEGIN OF COMMON PART 150 breakpoint 319

c CALL TRANSACTION 293 CASE 70 case differentiation 70 Character string functions 66 CHECK 70,80 CLEAR 64 CLIENT SPECIFIED 102 client-server system 1 comments 61 CommittedRead 111 COMMITWORK 109 COMPUTE 64 CONSTANTS 67 CONTINUE 70, 79 control instructions 70

CHECK 79 CONTINUE 79 IF 79

conversion exits 174

D DATA 62 Data Dictionary 21

- data elements 29 - domains 30 initial screen 21 lock objects 32 matchcodes 33 objects 21 structures 27 table fields 29 tables 22 type groups 36 views 27

Data Modeler 36 data models 38 entity types 36 relationships 37 specialization 38

data models 38

344

database commands see Open SQL 100

database tables TABLES 100

DATASET CLOSE 258 DELETE 258 OPEN 258 READ 258 WRITE 258

date arithmetic 66 DDIC see Data Dictionary debugger 318

-, symbolic 318 DECIMALS 62 declaration 62 DEFINE 137 DELETE 94, 109 DESCENDING 93 DESCRIBE TABLE 88 desktop integration 301 details list 127 development class 42 dialog program 183

create 185 events 183 program attributes 185

dialog transactions 183 DO 70,76 domains 30 dynpro 187

dynpro attributes 187 fields 189 layout 189

dynpro attributes 187 dynpro flow control 193

E editor 53 ELSEIF 71 END OF COMMON PART 150 END-OF-PAGE 122 END-OF-SELECTION 122 entity types 36 Event control 119 events 120 EXEC SQL 115

-PERFORMING 115 EXIT 70,80 EXPORT 153

F fault localization 313 Felder 62 field strings 80

declaration 80 LIKE 84 MOVE-CORRESPONDING 83 processing 81

field symbols 98 FIELD-SYMBOLS 98 file interface

logical 267 file interfaces

- on the application server 257 - PC files 259 , logical

generate 275 processing program 275

-, logical - select options 275

logical database program 269 structure 268

flow control 193 FORM 139 forms

external, invocation of 150 Forms

complex parameters 144 recursive 146

function group lists 45 function groups 166

global data 168 includes 168

function module call 171

function modules 167 - test 315 conversion exits 174 ENQUEUE, DEQUEUE 177 exceptions 171 interface 167 messages 170 number ranges 180

functions 65

G GET 122 GET LATE 122 GET PARAMETER 154

Index

Index 345

graph Logical database 47,155 directed 147 control program 165

graphs 147 processing program 163 path search 149 PUT 161

group change 132 read program 156 selection options 156

H structure description 155 logical operators 73

HIDE 128 LOOP 89 loop instruction

DO 76 loop instructions 76

- WHILE 78 IF 70 IMPORT 153 INCLUDE 139 M Includes 46 INITIALIZATION 121 macros

INSERT 93,108 placeholder 137

internal tables 86,91 Macros 137

declaration 87 DEFINE 137

DELETE 94 Matchcodes 33

INSERT 93 memory management

MODIFY 94 -, dynamic 57

READ TABLE 89 Menu Painter 55

SORT 93 message classes 47

Isolation Level 111 MODIFY 94, 109 MODIFYLINE 132 MOVE 64,83

J MOVE-CORRESPONDING 83

job control - create job 242 N -job log 248 - job status 247 Native SQL 115

- joblist 246,247 - EXEC SQL 115

- program steps 244 NEW-PAGE 69

- programming 249 NO-GAP 68

- target computer 252 NOT 73

job log 248 number ranges 48

JOB_CLOSE 249 JOB_OPEN 249 0

L Object Browser 41 Object Linking And Embedding see OLE

LIKE 63,84 OCCURS 87

lock objects 32 OLE

locking 110 - ABAP/4 as OLE server 311

logical - commands 301

expression 73 - CALL METHOD 301

parentheses 73 - CREATE OBJECT 301

transform 73 - FREE OBJECT 301

346

- GET PROPERTY 301 - SET PROPERTY 301

- with Excel 303 - with WORD 305

ON CHANGE OF 132 Open SQL 100

-, dynamic 112 COMMIT WORK 109 DELETE 109 INSERT 108 MODIFY 109 ROLLBACK WORK 109 SELECT 102 UPDATE 108

operating systems operators

for string comparison 72 OPTIONS 122 OR 73

p

PARAMETERS 122 PBO see PROCESS BEFORE OUTPUT PERFORM 140 PERFORMING 115 PF-nn 122 POV see PROCESS ON VALUE REQUEST pretty printer 314 PROCESS AFTER INPUT 194 PROCESS BEFORE OUTPUT 194 program analysis 313 program list 45 PUSHBUTTON 124

R Rl3 1 READ LINE 132 Read lock 110 READ TABLE 89 recursive 146 Relational operators 71 relationships 37 Remote Function Call refer to RFC Report 119

basic list 127 flow chart 120 group change 132 interactive 119 list processing 127 menu 126

selection screen 122 texts 125 variant 125 WRITE 127

RFC 295 - between Rl3 systems 295 - external RFC clients 298 - external RFC server 298 - with external systems 296

ROLLBACKWORK 109 runtime analysis 321 runtime errors 317

s SAP 1 SCROLL LIST 131 sector 1 SELECT 102

nested 106 selection screen 122 SELECTION-SCREEN 122 session management 290 SETPARAMETER 154 short dump 317 SKIP 69 SORT 93 Specialization 38 SQL Trace 321 stack 143 START-OF-SELECTION 121 structures 27,57 SUBMIT 152 SY-LSIND 128 SY-REPID 138 system architecture system field

SY-FDPOS 73 System field

SY-REPID 138 system fields

SY-INDEX 79 SY-LISEL 128 SY-LSIND 128 SY-TABIX 89 SY-TFILL 92

System fields 60 system variable

SY-DBCNT 104

Index

Index

T Table definitions 100 table fields 29 tables 22 TABLES 100 TIMES 76 TOP-OF-PAGE 121 Transactions 47 type groups 36 types

-, user-defined 57 TYPES 96

u ULINE 69 UncommittedRead III UPDATE 108

v VALUE 62 variant 125 Views 27

w WHERE lO2 WHILE 70,78 Workbench 41

editor 53 Menu Painter 55 where-used list 52

WRITE 67, 127 Write lock 11 0 WS DOWNLOAD 260

347