0% found this document useful (0 votes)
64 views11 pages

ABAP Programming: MINS298c Fall 1998

This document provides an overview of various ABAP programming concepts including: 1) Hiding variables in ABAP using the hide command which temporarily stores variables in a hide area accessed via events. 2) Primitive pagination in ABAP using language-dependent headers/labels or default single logical page of 60,000 lines with override events. 3) Creating windows in ABAP using window commands specifying starting and ending positions. 4) Generating messages in ABAP using message types and the message command with variables represented by an ampersand. 5) Potential presentation topics on additional ABAP concepts like events, dialog boxes, and logical databases.

Uploaded by

sathish
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
64 views11 pages

ABAP Programming: MINS298c Fall 1998

This document provides an overview of various ABAP programming concepts including: 1) Hiding variables in ABAP using the hide command which temporarily stores variables in a hide area accessed via events. 2) Primitive pagination in ABAP using language-dependent headers/labels or default single logical page of 60,000 lines with override events. 3) Creating windows in ABAP using window commands specifying starting and ending positions. 4) Generating messages in ABAP using message types and the message command with variables represented by an ampersand. 5) Potential presentation topics on additional ABAP concepts like events, dialog boxes, and logical databases.

Uploaded by

sathish
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
You are on page 1/ 11

ABAP Programming

MINS298c
Fall 1998
Overview
• Hiding in ABAP
• Primitive Pagination
• ABAP does Windows
• Making Messages
• Assignments
Hiding in ABAP (p.366)
• Hide Command
– temporarily stores variables
– Hide Area related by line number
– recalled at AT LINE-SELECTION event

Hide area
Display area
Write: / airline, fnumber. airline-cost
Hide: / airline-cost. airline fnumber airline-cost
airline fnumber airline-cost
airline fnumber airline-cost
airline fnumber airline-cost
airline fnumber airline-cost
airline fnumber
Hiding in ABAP
• Hide Command
– temporarily stores variables
– Hide Area related by line number
– recalled at AT LINE-SELECTION event

Hide area
Display area
Write: / airline, fnumber. airline-cost
Hide: / airline-cost. airline fnumber airline-cost
airline fnumber airline-cost
cursor > airline
airline
fnumber
fnumber
airline-cost
airline-cost
AT LINE-SELECTION airline fnumber airline-cost
write: / airline-cost. airline fnumber
Primitive Pagination (p.374)
• Language Dependent
– Headers & Labels
• Default
– one “logical page” of 60,000 lines
– list header from text elements - Title and Heading
• Overrides
– Events: TOP-OF-PAGE: END-OF-PAGE: NEW-PAGE
– “NO STANDARD PAGE HEADING” clause
– LINE-COUNT clause
ABAP does Windows (p364)
• Window command
– starting at x1 y1
– ending at x2 y2 1 X 80
1

24
ABAP does Windows (p364)
• Window command
– starting at 10 10
– ending at 20 20 1 x1 x2 80
1 10 20
y1 10

y2 20
24
Making Messages (p.440)
• Message Types
• a - abnormal end ABEND; no chance to correct
• e - error; cannot continue asks for possible correction
• w - warning; choice to continue or re-enter data
• i - information; display only
• s - success; displays message
• Message command
– MESSAGE messid
– The ‘&’ sign represents variables for the message
from the program
Message Example

my_name = ‘Bne’. 001


001 Wrong entry &
if my_name ne ‘Ben’.
MESSAGE e001 my_name.
endif.

Wrong entry Bne

cont new
Assignments
• Add the code necessary to the currency
program to catch the currencies that do not
convert and to print these on a separate page
so that the output appears on multiple
pages. Use the new-page, end-of-page, and
top-of-page events
• Change the currency program to send an
error message to the user as appropriate
when the exchange rate does not exist for a
currency.
Possible Presentation Topics
• AT USER COMMAND
• GUI Design
• Variants
• Dialog boxes - List of useful ones
• List of events - List of most used
• Field Symbols
• AT CURSOR
• Frames
• Logical Databases
• Uploading and downloading files
• ABAP Query
• Using Object Browser to develop a program
• Demonstrating efficiency of conditionals
• User and formula exits

You might also like