You are on page 1of 16

Terms to Remember

Program A series of ABAP/4 statements Report: An ABAP/4 program whose output is a list Module Pool: A dialog program which is a collection of screens List: The output generated by an ABAP/4 report program
L&T Information Technology Limited - Confidential

Reporting and ABAP/4 Development


Reporting

ABAP/4 Development
L&T Information Technology Limited - Confidential

Programming Environment The ABAP/4 Editor

L&T Information Technology Limited - Confidential

Programming Environment Online Debugging

L&T Information Technology Limited - Confidential

Basic Functions of the ABAP/4 Editor


Syntax Check

Find and Repeat Find


Standard toolbar

Toggles from display to change mode

Undo

ABAP/4 Help

Preferred Editor Mode: PC Mode (point and Click) with line numbering Other options include: - PC mode without line numbering - Command Mode

Cut, copy and paste to and from a buffer

Program source entry area

L&T Information Technology Limited - Confidential

The PROGRAM Menu Option

L&T Information Technology Limited - Confidential

The EDIT Menu Option

L&T Information Technology Limited - Confidential

The GOTO Menu Option

L&T Information Technology Limited - Confidential

The UTILITIES Menu Option

L&T Information Technology Limited - Confidential

The BLOCK/CLIPBOARD Menu Option

L&T Information Technology Limited - Confidential

Basic ABAP/4 Program Syntax

DATA COUNT TYPE I.

DATA TITLE(25). MOVE 1 TO COUNT. MOVE President TO TITLE. WRITE TITLE. WRITE COUNT.
Statement.

ABAP/4 Program

Word 1

Word 2

Word 3

Word 4

Key word

Parameter, field, or constant

L&T Information Technology Limited - Confidential

Chaining Statements in ABAP/4

DATA COUNT TYPE I.

DATA TITLE(25). MOVE 1 TO COUNT. MOVE President TO TITLE. WRITE TITLE. DATA: WRITE COUNT.

COUNT TYPE I, TITLE(25).

MOVE: 1 TO COUNT, President TO TITLE. WRITE: TITLE, COUNT.

L&T Information Technology Limited - Confidential

Comments in ABAP/4

A double quotation mark () anywhere on a line makes everything that follows a comment.

An asterisk (*) in column 1 makes the entire line a comment line.

L&T Information Technology Limited - Confidential

ABAP/4 Program Structure

Program Name Area Use REPORT for listing programs Use PROGRAM for online programs

Declaration Section Used for defining tables, variables and constants

Statement Section Used for coding executable ABAP/4 statement

L&T Information Technology Limited - Confidential

ABAP/4 Program Attributes

Program title is required


Type: 1 I M F S Online Program Include Program Module Pool Function Module Subroutine Pool

Application: S U V Y Z * Basis EDM (Enterprise Data Model) Sales and Distribution Customer Head Office Customer Branch For all Applications

L&T Information Technology Limited - Confidential

Starting an ABAP/4 Program

From the ABAP/4 Editor: With the program displayed, ProgramExecute

An Alternative Method: From the System Menu, choose Services Reporting to launch the program

One Final Method: From the ABAP/4 Editor: Initial Screen, type the program name, then click on the Execute push-button L&T Information Technology Limited - Confidential