Sie sind auf Seite 1von 2

Exercise 01- Create Basic ABAP Dictionary Objects

Unit: Introduction to SAP Environment


Topic: ABAP Dictionary
Estimated Completion Time: 60 minutes

Overview:
This exercise will require participants to use the ABAP Dictionary transactions to
create two new tables and a number of supporting data elements. Participants will
link the two tables via a foreign key.

Instructions:

1. Create two transparent tables, a Room table named ZZPHRM## and a Time table
named ZZPHTT## (where ## = 2 digit student logon id).
Delivery class-A
Table Maintenance- yes
Data Class-APPL0
Size Category-0.
Table descriptions are provided below.

2. Create data elements whenever a data element is not supplied. For newly
created data elements, create new domains. Data elements and domains may
have the same name. Name data elements starting with ZZPH##fname (where
## = 2 digit student logon id and fname = field name).

3. Connect the Room table to the Time table using the Value Table and Check Table
features of the domain and field foreign key.

4. Generate a maintenance dialog for each table (Go to Utilities Table


Maintenance Generator). Use ZZPHF## as the function group name. Use 9000
and 9010 as Overview Screen and Single Screen numbers for the first table and
9100 and 9110 as Overview Screen and Single Screen numbers for the second
table. For both tables use authorization group- &NC& (no authorization check).

5. Populate both the Room and Time tables using transaction SM30.
Room Table: ZZPHRM##

Field Name Type Length Primary Data Element Domain Value


Key
Client CLNT 03 yes MANDT

Room CHAR 03 yes ZZPH##fname ZZPH##fname


Number
Seats NUMC 04 No ZZPH##fname ZZPH##fname 1 thru 9999

Room Type CHAR 04 No ZZPH##fname ZZPH##fname Values


Description
LECT Lecture

PCWK
PC-Workshop

RNTB Round Table

HSTB Horse-Shoe
Table

SMNR Seminar

Room Fee CURR 12 No ZZPH##fname ***CURR12


Currency Key CUKY 05 No WAERS

***Double-click on field name and refer to Table ZZPHRM## and the name of the next field (Currency
Key) as Check Table

Time Table: ZZPHTT##

Field Name Type Length Primary Data Element Domain Value


Key
Client CLNT 03 yes MANDT

Room CHAR 03 yes ZZPH##fname ZZPH##fname


Number
Weekday CHAR 03 yes ZZPH##fname ZZPH##fname Mon, Tue, Wed,
(allow Thu, Fri, Sat
lower
case
input)
Time NUMC 02 Yes ZZPH##fname ZZPH##fname 08-21
Faculty CHAR 04 No ZZPH##fname CHAR04
Course CHAR 10 No ZZPH##fname CHAR10
Number
Comments CHAR 20 No ZZPH##fname ZZPH##fname
(allow
lower
case
input)

Das könnte Ihnen auch gefallen