登录 注册
当前位置:主页 > 资源下载 > 10 > ABAP Programming Standards ABAP Programming Standards下载

ABAP Programming Standards ABAP Programming Standards下载

  • 更新:2024-09-21 20:11:56
  • 大小:450KB
  • 推荐:★★★★★
  • 来源:网友上传分享
  • 类别:Access - 数据库
  • 格式:DOC

资源介绍

Table of Contents INTRODUCTION: ABAP/4 DEVELOPMENT STANDARDS 5 ABAP/4 PROGRAMMING STANDARDS 6 HARD CODING 6 INTERNATIONAL CONSIDERATIONS 6 Date Formats 6 Currency Output Formats 7 Paper Size 7 AUTHORIZATION CHECKING 7 Reports (Read only) 7 Update Programs 8 Adding Authorization Checks 8 COMMENTS 8 STATEMENT FORMATTING 8 Code Formatting 8 Chaining 8 INCLUDE CODE 8 MESSAGES 8 OTHER REPORT STANDARDS 9 DATA ACCESS 9 DATA UPDATE 9 Non-Configuration Tables 10 SUBROUTINES 10 Internal Subroutines (Forms) 10 External Subroutines 10 STANDARDS FOR SPECIFIC STATEMENTS 10 AT PFnn Statement 10 CHECK Statement 10 DATA Statement 10 IF Statement 11 MOVE-CORRESPONDING Statement 11 PARAMETER Statement 12 SORT Statement 12 Batch Data Input 12 Variants 12 Lock objects 12 CHECK, EXIT, REJECT, STOP 12 COLLECT 12 TABLE ACCESS 12 Program Structure 13 Screen Definitions 13 GUI Interfaces 13 Pop-up Windows 13 OK-CODE (SY-UCOMM) 13 CODE EFFICIENCY STANDARDS 14 SELECT: SELECT * VS. SELECT SINGLE* 14 SELECT: SELECT * WITH CHECK 14 SELECT: SELECT STATEMENT "HIT SET" 15 SELECT: SELECTING ENTIRE TABLES 15 SELECT: SELECTING CERTAIN FIELDS 15 SELECT: NESTED SELECTS 15 SELECT: RANGE TABLES 16 SELECT: VIEW VS. NESTED SELECTS FOR JOINS 17 SELECT: TABLE BUFFERING 17 SELECT: COLUMN VS. ROW UPDATES 17 INDEX DESIGN 17 INTERNAL TABLES: READING A SINGLE RECORD 18 INTERNAL TABLES: SORTING 18 INTERNAL TABLES: SELECT INTO VS. APPEND 19 INTERNAL TABLES: SELECT - ENDSELECT VS. INTERNAL TABLE 19 INTERNAL TABLES: LOADING AND READING 19 INTERNAL TABLES: READ BINARY VS. COLLECT 19 INTERNAL TABLES: SEARCHING 20 INTERNAL TABLES: KEY FIELDS ON READ 21 INTERNAL TABLES: NUMBER OF ENTRIES 21 INTERNAL TABLES: EXPLICIT WORK AREAS 21 INTERNAL TABLES: SORTING 23 INTERNAL TABLES: DELETING RECORDS 23 LOGIC: NESTED IFS 23 LOGIC: CASE VS. IF 23 LOGIC: MOVE-CORRESPONDING 23 LOGIC: LOOP/WHERE VS. LOOP/CHECK 24 LOGIC: WHILE VS. DO LOOPS 24 LOGIC: PERFORM WITH INDEX 24 LOGICAL DATABASE 24 GENERAL: DEAD CODE 24 GENERAL: FIELD LENGTH 24 GENERAL: STRLEN AND CHECK SUMS 25 GENERAL: TYPED PARAMETERS 25 GENERAL: TYPED FIELD SYMBOLS 25 GENERAL: FIELD TYPES FOR VARIABLES 25 DON’T MIX TYPES UNLESS ABSOLUTELY NECESSARYABAP LESSONS LEARNED 25 ABAP LESSONS LEARNED 26 ADAPTEC-SPECIFIC STANDARDS 27 MODULE POOL REPORT FORMAT 27 INTERACTIVE REPORT FORMAT 30 BDC PROGRAM FORMAT 33 APPENDIX 37 TEMPLATE SCREEN FLOW LOGIC STRUCTURE 37 Flow Logic 37 Process Before Output Modules 37 Process After input modules 37 DYNPRO PROCESSING LOGIC: ALLOWED KEY WORDS 39 MODULE, FIELD, SELECT AND VALUES 39 MODULE 39 PROCESSING LOGIC COMMANDS 39 PROCESSING CONTROL EXPANDED INFORMATION 40 ON INPUT 40 ON CHAIN-INPUT 40 ON REQUEST 40 ON CHAIN-REQUEST 40 ON *-INPUT 40 AT EXIT-COMMAND 40 AT CURSOR-SELECTION 40 General Rules 40 AT EXIT-COMMAND 41 FIELD 41 ON INPUT 42 ON CHAIN-INPUT 42 ON REQUEST 42 ON CHAIN-REQUEST 42 ON *-INPUT 42 AT CURSOR-SELECTION 42 WITH'xxxx' 42 SELECT 42 FIELD VALUES (). 43 CHAIN. ... . ENDCHAIN 43 LOOP ... ENDLOOP 43 CALLSUBSCREEN 44 CALL CUSTOMER-SUBSCREEN 44 SAP BASIS TRANSACTIONS 45 GLOSSARY OF TERMS AND ACRONYMS 48 MAIN GLOSSARY OF TERMS 48 ALPHABETICAL OVERVIEW OF ABAP/4 51 CLASSIFICATION OF ABAP/4 KEY WORDS BY FUNCTIONAL AREA 58 CLASSIFICATION OF ABAP/4 KEY WORDS BY TYPE 61 Declarative Key Words 61 Event Key Words 61 Control Key Words 62 Comments 66 Include Other Program Components 66