What Is Abap
What Is Abap
Netweaver AS (Application
Server) combines which
SAP calls two
"personalities" because
WebDynpro (pronouced
"web din pro") for ABAP
and WebDynpro for Java
use the same meta model.
WebDynpro components,
views, models, and
controllers have the same
semantics in both ABAP
and Java.
To invoke the Screen Painter tool, use tcode SE51 or from the
Object Navigator tool.
Screen attributes include its number (default to 0100 for the first
screen), short description, subsequent screen number, and type
of screen:
o normal
o subscreen
o modal (pop-up) dialog box
o selection
Command summary
Operation Commands Description
Object MOVE variable1 TO -
assignment variable2 assigns values to
data objects to a variable. It
works like the equal sign
(=).
MOVE-CORRESPONDING ...
TO ...
WRITE TO passes values to
variables (mainly to fill
character fields).
CLEAR resets a data object
to the initial value
appropriate to its data type.
Numeric compute var3 = var1 - var2 -
operations subtract var2 from var1
add var1 to var2
divide var1 by var2
multiply var1 by var2
Individual MODULE, PERFORM, CALL These create a
modularization FUNCTION, new user
units CALL SCREEN, context:
CALL TRANSACTION,
CALL DIALOG,
SUBMIT (CALL FUNCTION IN
UPDATE TASK,
CALL FUNCTION IN
BACKGROUND TASK,
CALL FUNCTION STARTING
NEW TASK)
database access SELECT * INTO TABLE -
tableB FROM dbTableA.
endselect.
EXEC SQL
Internal table APPEND, -
operations COLLECT,
READ TABLE�WITH KEY�,
INSERT ... INDEX ...
SORT,
BINARY SEARCH
delete internal REFRESH, -
tables and release FREE
memory
Workbench
Programming Environment:
SW01 Business Object Builder
• Debugging
• Organizing
ABAP Editor
o table type
o tables
o views
o data elements
o domains (value ranges)
o structures (hierarchy)
o lock objects
o online help information
o search help information
A SAPscript form is a
template that supplies
the layout (for example,
page size) and content
(for example, sales data
for an invoice) for
business forms.
A form is made up of
pages, which contains
several windows (header,
address, main, etc.). Text
elements are formatted
with paragraph formats
(which define font and
tab positions) and
character formats (such
as bold).
Activate "Accessibility
Checks Active" by clicking
on the checkbox.
1. INITIALIZATION.
2. SELECTION-SCREEN.
3. START-OF-SELECTION. where select statements retrieve
data.
4. TOP-OF-PAGE.
5. END-OF-PAGE.
6. END-OF-SELECTION.
ABAP Functionality
The functionality of an
ABAP program
include:
o Receive
requests and
messages.
o Present user
interface (title
bar, menu bar,
standard &
application
toolbars,
function keys).
o Present screen
elements
(iViews push
bottons, radio
buttons,
checkboxes,
input fields,
scroll fields).
o Obtain user
input in fields,
mouse
movements,
etc.
o Make
calculations and
edits.
o Access
databases.
o web services
(send
responses).
o Log activities.
o Exit.
Classic Sections and Events
1. INITIALIZATION.
2. SELECTION-SCREEN.
3. START-OF-SELECTION. where select statements retrieve
data.
4. TOP-OF-PAGE.
5. END-OF-PAGE.
6. END-OF-SELECTION.
Interactive report
programs provide menus
for user interaction. When
the user clicks on a row
within a basic list created
using a select statement
within the start-of-
selection section, code
under section at line-
selection. is invoked to
create a secondary list.
13 = Shift F1
14 = Shift F2
15 = Shift F3
16 = Shift F4
17 = Shift F5
18 = Shift F6
19 = Shift F7
20 = Shift F8
21 = Shift F9
22 = Shift F10
23 = Shift F11
24 = Shift F12
at user-
command.
if sy-ucomm=20 .
The SAP R/3 Style Guide maintained by the SAP Design Guild
provides standards for accessible user interaction design of
functions, UI elements (Screens, application and task menus,
Fields, Checkboxes, Radio Buttons, Drop-Down List Boxes, Lists,
Tables, Trees), hot keys, and presentation of dialogues and texts.
Java Development
WebDynpro ABAP
WebDynpro Java
eCATT
In principle, the entire ABAP instruction set is available for use within
inline ABAP code (CREATE, CALL, DATA, SUBMIT, etc.).
eCATT stores its data in R/3 databases and can be controlled by Test
Workbench, the Object Navigator (SE80), or externally through the
BC-eCATT interface.
Test modules can refer to spreadsheets providing various data that are
updated in CATT Maintenance mode.
However, eCATT is less suited for testing lists and display results,
menu paths, online help (F1, F4), free-form editor functions, and
transactions that contain the statement LEAVE TO TRANSACTION.
ABAP Trace
gross time is
the total time
required for
the call, which
includes times
of all
modularization
units and
ABAP
statements
net time is
the gross time
minus the
time required
for the called
modularization
units and for
separately
specified ABAP
statements
For
statements
such as
APPEND, the
gross time
equals the net
time
If the gross
time differs
from the net
times for such
statements,
the call
contains other
calls or
modularization
units
Call hierarchy
displays statements
in chronological
order of execution.
Efficient ABAP Coding Strategies
• After each BAPI call, check the message that came back to see
whether the BAPI call was successful. All BAPIs are supposed to
use a RETURN parameter instead of throwing ABAP exceptions.
However, different BAPIs use different structures with different
field names for the RETURN parameter.
• Be smart about the amount of data retrieved from the database.
RFCs
sRFC Synchronous Used by CALL FUNCTION
RFC most BAPI DESTINATION
clients
aRFC Asynchronous - CALL FUNCTION STARTING
(Parallel) RFC NEW TASK
tRFC Transactional transfer ALE CALL FUNCTION IN
RFC Used to (Application BACKGROUND TASK
save function Link
calls in one Enabling)
LUW (Logical Intermediate
Units of Work) Documents
and start the (IDocs)
LUW afterward
asynchronously.
qRFC Queued - CALL FUNCTION
synchronized "TRFC_SET_QUEUE_NAME"
RFC in a +
specified CALL FUNCTION IN
sequence BACKGROUND TASK
through
QIN/QOUT
queues used
within a 3-
phase process.
RFC RFC with SAP - -
with GUI support
dialog (dialog step)
BAPIs are RFMs that follow additional rules (as defined in the SAP
BAPI Programming Guide) and are defined as object type
methods in SAP's Business Object Repository (BOR).
IDocs