Professional Documents
Culture Documents
______________________________________________
Exercise # 1
Topic: ABAP Data Dictionary
Objective: To be able to practice how to create domains, data element, tables, views
and search help
2. When you create objects, a dialog box from the correction and transport
system is displayed. Please specify local objects.
Naming Convention: Y - test object
TAB - table/ DOM - domain / DEL - Data Element / VIEW - View / SH - search
help
DESC - free field (to describe the table)
XX - trainee number
Domain YDOM_DESCXX
Date
YDEL_DESCXX
Element
Table YTAB_DESCXX
View YVIEW_DESCXX
Search
YSH_DESCXX
Help
____________________________________________________________________________________
Exercise 1.1 In the transaction code SE11 (ABAP Dictionary) Create a domain.
Data No of
Domain
Type Char.
YDOM_ADD00 char 20
YDOM_TEL00 char 10
YDOM_RSRVNO00 char 10
Exercise 1.2 Create a Data Element
Table Structure 1:
Table Structure 2:
SPFLI-CARRID
SPFLI-CONNID
SPFLI-CITYFROM
SPFLI_CITYTO
SFLIGHT-FLDATE
SFLIGHT-SEATOCC
SFLIGHT-SEATSMAX
Selection Method: Search for views: (use the database view that was created in Exercise 1.4)
Search help paramter: CARRID, CONNID and FLDATE.
Expected Objects:
Five (5) objects (domain, data element, table and view, search help)
ABAP Training Exercise
______________________________________________
Exercise # 2
Topic: Simple Report Program
Objective: To be able to practice how to create a simple report
2. When you create objects, a dialog box from the correction and transport
system is displayed. Please specify local objects.
Naming Convention: YDESCXX
Y - test object
DESC - free field (to describe the table)
XX - trainee number
____________________________________________________________________________________
In the transaction code SE38 (ABAP Editor), create a program named YWRITEXX (XX - trainee
number).
In the transaction code SE93 (Maintain Transaction), create a transaction code named
YEXER02XX (XX - trainee number).
INPUT: NONE
PROCESS:
1. Create a program that will show the current date, time and the user id who execute it.
2. Create a box. Enclose text in a box.
3. Remove page heading.
4. Add format to text:
a. Date - Orange
b. Time - Red
c. User - Green
OUTPUT:
Expected Objects:
2. When you create objects, a dialog box from the correction and transport
system is displayed. Please specify local objects.
Naming Convention: YDESCXX
Y - test object
DESC - free field (to describe the table)
XX - trainee number
____________________________________________________________________________________
In the transaction code SE38 (ABAP Editor), create a program named YIMABAPXX (XX - trainee
number).
In the transaction code SE93 (Maintain Transaction), create a transaction code named
YEXER03XX (XX - trainee number).
TITLE: My Profile
INPUT: NONE
PROCESS:
OUTPUT:
Expected Objects:
Exercise # 4
Topic: Simple Arithmetic
Objective: To be able to practice how to create a simple program using different
operators
2. When you create objects, a dialog box from the correction and transport
system is displayed. Please specify local objects.
Naming Convention: YDESCXX
Y - test object
DESC - free field (to describe the table)
XX - trainee number
____________________________________________________________________________________
In the transaction code SE38 (ABAP Editor), create a program named YARITHXX (XX - trainee
number).
In the transaction code SE93 (Maintain Transaction), create a transaction code named
YEXER04XX (XX - trainee number).
TITLE: ARITHMETIC
INPUT: NONE
PROCESS:
e. Write the result. Combine all the equation into one statement. Make sure it
should be the same result as d.
Example:
a. SUM = 14.
b. QUOTIENT = 7
c. DIFFERENCE = 6
d. PRODUCT = 600
e. RESULT = 600
Expected Objects:
2. When you create objects, a dialog box from the correction and transport
system is displayed. Please specify local objects.
Naming Convention: YDESCXX
Y - test object
DESC - free field (to describe the table)
XX - trainee number
____________________________________________________________________________________
Create a program that will let you perform arithmetic computation with Parameters. You will enter value
for computation
In the transaction code SE38 (ABAP Editor), create a program named YPARAMETERXX (XX -
trainee number).
In the transaction code SE93 (Maintain Transaction), create a transaction code named
YEXER05XX (XX - trainee number).
TITLE: PARAMETERS
INPUT:
a. Write the sum of two even numbers by adding the first two valued entered in the
parameter
b. Write the quotient of the two even numbers ( in letter a ). Divide it by 2.
c. Write the difference. Subtract the quotient ( letter b ) by 1.
d. Write the product. Multiply the difference by the value 3rd parameter ( letter c )
e. Write the result. Combine all the equation into one statement. Make sure it should
be the same result as d.
Example:
1st Parameter = 10
2nd Parameter = 4.
3rd Parameter = 100.
a. SUM = 14.
b. QUOTIENT = 7.
c. DIFFERENCE = 6
d. PRODUCT = 600
e. RESULT = 600
Expected Objects:
2. When you create objects, a dialog box from the correction and transport
system is displayed. Please specify local objects.
Naming Convention: YDESCXX
Y - test object
DESC - free field (to describe the table)
XX - trainee number
____________________________________________________________________________________
Create a program that will Calculate the date base on the parameters.
In the transaction code SE38 (ABAP Editor), create a program named YDATEXX (XX - trainee
number).
In the transaction code SE93 (Maintain Transaction), create a transaction code named
YEXER06XX (XX - trainee number).
INPUT:
PROCESS:
Expected Objects:
Exercise # 7
Topic: Control Statements
Objective: To be able to practice control statements
2. When you create objects, a dialog box from the correction and transport
system is displayed. Please specify local objects.
Naming Convention: YDESCXX
Y - test object
DESC - free field (to describe the table)
XX - trainee number
____________________________________________________________________________________
Create a program that will use logical expression , case statements, do and while loop.
In the transaction code SE38 (ABAP Editor), create a program named YCONTROLXX (XX - trainee
number).
In the transaction code SE93 (Maintain Transaction), create a transaction code named
YEXER07XX (XX - trainee number).
INPUT:
1. Compute number1 and number2 parameters based on the selected operators (radiobutton).
2. the result will be use as the number of times in do..enddo and while..endwhile statements.
(use both loop statement)
3. for Division option, there must be an error message, when the number2 parameter is equal to 0.
Expected Objects:
Exercise # 8a
Topic: Data Structure - Internal Table
Objective: To be able to practice the use of data structures (internal tables)
2. When you create objects, a dialog box from the correction and transport
system is displayed. Please specify local objects.
Naming Convention: YDESCXX
Y - test object
DESC - free field (to describe the table)
XX - trainee number
____________________________________________________________________________________
In the transaction code SE38 (ABAP Editor), create a program named YITTAB1XX (XX - trainee
number).
In the transaction code SE93 (Maintain Transaction), create a transaction code named
YEXER08aXX (XX - trainee number).
TABLES: SPFLI
INPUT: none
PROCESS:
Expected Objects:
Exercise # 8b
Topic: Data Structure - Internal Table w/ collect
Objective: To be able to practice the use of data structures (internal tables)
2. When you create objects, a dialog box from the correction and transport
system is displayed. Please specify local objects.
Naming Convention: YDESCXX
Y - test object
DESC - free field (to describe the table)
XX - trainee number
____________________________________________________________________________________
In the transaction code SE38 (ABAP Editor), create a program named YITTAB2XX (XX - trainee
number).
In the transaction code SE93 (Maintain Transaction), create a transaction code named
YEXER08bXX (XX - trainee number).
TABLES: SPFLI
INPUT: none
PROCESS:
CARRID, SEATSOCC
CARRID, SEATSOCC
Expected Objects:
Exercise # 9
Topic: SQL Statements
Objective: To be able to practice programming with SQL Statements . To Differentiate
the common SQL statements.
2. When you create objects, a dialog box from the correction and transport
system is displayed. Please specify local objects.
Naming Convention: YDESCXX
Y - test object
DESC - free field (to describe the table)
XX - trainee number
Create a program that will use different SQL statements. See the effect.
In the transaction code SE38 (ABAP Editor), create a program named YSQLXX (XX - trainee
number).
In the transaction code SE93 (Maintain Transaction), create a transaction code named
YEXER09XX (XX - trainee number).
INPUT:
PROCESS:
for rb1
Step 1: Create an internal table with the following
fields:
field reference
name field
carrid CARRID
Expected Objects:
2. When you create objects, a dialog box from the correction and transport
system is displayed. Please specify local objects.
Naming Convention: YDESCXX
Y - test object
DESC - free field (to describe the table)
XX - trainee number
____________________________________________________________________________________
Create a program that will use different SQL statements. See the effect.
In the transaction code SE38 (ABAP Editor), create a program named YSQL2XX (XX - trainee
number).
In the transaction code SE93 (Maintain Transaction), create a transaction code named
YEXER10XX (XX - trainee number).
INPUT:
Follow the input screen below
Field Label
Field Required
Reference POR /
Name (yes/no)
Description
carrid spfli-carrid Range Carrier ID no
spfli- Connection
connid Range no
connid ID
PROCESS:
Step 2: Revise the select statement. Use the select statement with where condition.
ex:
Expected Objects:
Exercise # 11a
Topic: SQL Statements - complex selection
Objective: To be able to practice programming with SQL Statements using inner join, for
all entries and distinct
2. When you create objects, a dialog box from the correction and transport
system is displayed. Please specify local objects.
Naming Convention: YDESCXX
Y - test object
DESC - free field (to describe the table)
XX - trainee number
____________________________________________________________________________________
Create a program that will use different complex SQL statements. See the effect
In the transaction code SE38 (ABAP Editor), create a program named YSQL3aXX (XX - trainee
number).
In the transaction code SE93 (Maintain Transaction), create a transaction code named
YEXER11aXX (XX - trainee number).
INPUT:
PROCESS:
a. SCARR
carname
b. SFLIGHT
planetype
fldate
price
c. SPFLI
cityfrom
cityto
ex:
Expected Objects:
Exercise # 11b
Topic: SQL Statements - complex selection
Objective: To be able to practice programming with SQL Statements using inner join, for
all entries and distinct
2. When you create objects, a dialog box from the correction and transport
system is displayed. Please specify local objects.
Naming Convention: YDESCXX
Y - test object
DESC - free field (to describe the table)
XX - trainee number
____________________________________________________________________________________
Create a program that will use different complex SQL statements. See the effect
In the transaction code SE38 (ABAP Editor), create a program named YSQL3aXX (XX - trainee
number).
In the transaction code SE93 (Maintain Transaction), create a transaction code named
YEXER11bXX (XX - trainee number).
PROCESS:
1. Copy YEXER11aXX.
2. Remove the existing select statement.
3. Use FOR ALL ENTRIES instead of INNERJOIN.
4. Select the following fields (carrid, connid, planetype, fldate and price)
5. Inner join SCARR and SFLIGHT tables only.
6. Conditions will be based on the given parameters
7. Output should be Carrier ID, Planetype, Flight Date and Price only.
Expected Objects:
Exercise # 11c
Topic: SQL Statements - complex selection
Objective: To be able to practice programming with SQL Statements using inner join, for
all entries and distinct
2. When you create objects, a dialog box from the correction and transport
system is displayed. Please specify local objects.
Naming Convention: YDESCXX
Y - test object
DESC - free field (to describe the table)
XX - trainee number
____________________________________________________________________________________
Create a program that will use different complex SQL statements. See the effect.
In the transaction code SE38 (ABAP Editor), create a program named YSQL3aXX (XX - trainee
number).
In the transaction code SE93 (Maintain Transaction), create a transaction code named
YEXER11cXX (XX - trainee number).
PROCESS:
1. Copy YEXER11aXX.
2. In the selection parameter, remove the flight date select option.
3. In the internal table, remove the ff fields: (plantype, fldate and price)
4. Remove the existing select statement.
5. Select the following fields (carrname, cityfrom and cityto)
6. Inner join SCARR and SPFLI tables only.
7. Use DISTINCT in the selection statement.
8. Conditions will be based on the given parameters (remaining two parameters)
9. Output should be Carrier Name, City From and City to only.
* if no record retrieve, an error message appear "No records found".
Expected Objects:
Exercise # 12a
Topic: At-Selection Screen and At-Selection Screen Output
Objective: To be able to practice the At Selection Command
2. When you create objects, a dialog box from the correction and transport
system is displayed. Please specify local objects.
Naming Convention: YDESCXX
Y - test object
DESC - free field (to describe the table)
XX - trainee number
____________________________________________________________________________________
Create a program that will use At-Selection Screen and At-Selection Screen Output
In the transaction code SE38 (ABAP Editor), create a program named YATSELECTIONXX (XX -
trainee number).
In the transaction code SE93 (Maintain Transaction), create a transaction code named
YEXER12XX (XX - trainee number).
INPUT:
Same process.
Add on:
1. Error message for subtraction and division.
OUTPUT:
no output
Expected Objects:
2. When you create objects, a dialog box from the correction and transport
system is displayed. Please specify local objects.
Naming Convention: YDESCXX
Y - test object
DESC - free field (to describe the table)
XX - trainee number
____________________________________________________________________________________
Create a program that will let you perform a simple dialog programming.
In the transaction code SE38 (ABAP Editor), create a program named YDIALOGXX (XX - trainee
number).
INPUT:
PROCESS:
OUTPUT:
Expected Objects:
ABAP Training Exercise
_____________________________________________
Exercise # 12c
Topic: Table Control
Objective: To be able to practice dialog programming using table control
2. When you create objects, a dialog box from the correction and transport
system is displayed. Please specify local objects.
Naming Convention: YDESCXX
Y - test object
DESC - free field (to describe the table)
XX - trainee number
____________________________________________________________________________________
Create a program that will let you perform a simple dialog programming with table control.
In the transaction code SE38 (ABAP Editor), create a program named YTABCONTROLXX (XX -
trainee number).
Refer to EXER11a.
INPUT:
Refer to EXER11a.
PROCESS:
Expected Objects:
ABAP Training Exercise
______________________________________________
Exercise # 13
Topic: Download Program
Objective: To be able to practice the download programming
2. When you create objects, a dialog box from the correction and transport
system is displayed. Please specify local objects.
Naming Convention: YDESCXX
Y - test object
DESC - free field (to describe the table)
XX - trainee number
____________________________________________________________________________________
Create a program that will let you perform a simple download program.
In the transaction code SE38 (ABAP Editor), create a program named YDOWNXX (XX - trainee
number).
INPUT:
PROCESS:
OUTPUT:
Expected Objects:
2. When you create objects, a dialog box from the correction and transport
system is displayed. Please specify local objects.
Naming Convention: YDESCXX
Y - test object
DESC - free field (to describe the table)
XX - trainee number
____________________________________________________________________________________
_______________________________________
Create a program that will let you perform a simple upload program.
In the transaction code SE38 (ABAP Editor), create a program named YUPXX (XX - trainee
number).
INPUT:
PROCESS:
OUTPUT:
Expected Objects:
2. When you create objects, a dialog box from the correction and transport
system is displayed. Please specify local objects.
Naming Convention: YDESCXX
Y - test object
DESC - free field (to describe the table)
XX - trainee number
____________________________________________________________________________________
_______________________________________
In the transaction code SE43 (Area Menu Maintenance), create an area menu named YAREAXX
(XX - trainee number).
Exercise # 16
Topic: Transport Request
Objective: To be able to be familiarize in the transport organizer
2. When you create objects, a dialog box from the correction and transport
system is displayed. Please specify local objects.
Naming Convention: YDESCXX
Y - test object
DESC - free field (to describe the table)
XX - trainee number
____________________________________________________________________________________
_______________________________________
Create a transport request for all the ABAP objects that was previously created.
One transport request for each exercise.