Download presentation
Presentation is loading. Please wait.
1
SAP AG CSU Chico MINS298c ABAP/4 Programming Gail Corbitt Fall 1998 Chapter 1-3
2
SAP AG CSU Chico Chapters 1-3 Some Key Features Repository Concept (development workbench) Beginning Program
3
SAP AG CSU Chico Key Features Advanced Business Application Program Multi language Interpretive Language Event Driven Reusability Data Objects Subroutines (which are called ??? in ABAP)
4
SAP AG CSU Chico Multi-Language Documentation Titles & Headers Text Symbols Selection Text Text Fields Message Texts
5
SAP AG CSU Chico Re-usability Patterns Subroutines Data Objects Structures
6
SAP AG CSU Chico Repository Concept Data Models Dictionary Types Table Structures Programs Screens Functions Patterns More... Developers Users
7
SAP AG CSU Chico Repository Concept Developer Group 1 Users Developer Group 2
8
SAP AG CSU Chico Program A Program has: Source code Text elements title selection text text symbols Variants Attribute Documentation
9
SAP AG CSU Chico A Program Source Code Type Title Status Application Dev. Class Repository Attributes Variants Text elements
10
SAP AG CSU Chico Attributes (For now) Program Name Convention ZZ##EX** ## is your assigned number ** is assignment number Program Type 1 (one) : Interactive Development Class $TMP Local Object
11
SAP AG CSU Chico Editor for Source Code Two ways to get there editor Object Browser Three editor modes command pc pc with line numbering
12
SAP AG CSU Chico Basic Language Constructs Reserved or Key words such as MOVE, WRITE, DATA Elementary Data Types: Character -- CFloating Point -- F Integer -- INumeric Text -- N Date -- DPacked Decimal -- P Time -- THexadecimal -- X Construction Concept Record - fixed number of related fields/data objects Internal Table - variable number of related records
13
SAP AG CSU Chico Basic Language Constructs Cont Non-Elementary Data Types (User Defined) Example: Types t_phone (20) type C. Data customer_phone type t-phone. Data Object: (not defined explicitly) attributes and entities References: uses key word LIKE copies attributes of one data object into another
14
SAP AG CSU Chico Basic Syntax for Source Code Statements not case sensitive Keyword + series of space delimited words ends with period can span multiple lines Literals are identified between single quotes Comments * in first column of line inline after double quote
15
SAP AG CSU Chico Basic Syntax for Source Code Colon notation implies “repeat verb/ABAP reserved word” Example 1: Write var-1. Write var-2. Write var-3. Write: var-1, var-2, var-3. Example 2: Write ‘The answer is: ‘. Write var-1. Write: ‘The answer is: ‘, var-1.
16
SAP AG CSU Chico Some Verbs REPORT program name REPORT ZZ99DB01 DATA var(length) TYPE Curr_date(20) TYPE C Curr_date LIKE sy-datum Assignment MOVE ‘XYZ’ to Curr_date. Curr_date = ‘XYZ’. Write WRITE / column position(length) dataname
17
SAP AG CSU Chico Basic Compile Environment Check = Syntax check Save = records current version of source code Generate = Compiles and generates object code Execute (does NOT save) = Runs or if does not exist generates and runs Drill Down X Y Z editor buffers Help
18
SAP AG CSU Chico Assignment #1 Create a program to display the following information on the screen when executed Current Date Current Time Client Number Username Language Key System ID R/3 Release Database System Operating System >>> 1 item per line <<<
19
SAP AG CSU Chico Assignment #2 Copy the program ZZ99DB01 (Debug 01) to your own program name. Edit and fix the compile error(s). Include the PATTERN DEMO_PATTERN in the program. Change the title to include your name
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.