ABAP Programming: MINS298c Fall 1998
ABAP Programming: MINS298c Fall 1998
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
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