Lab Activity Domain n Data Element
Lab Activity Domain n Data Element
Business Example
As part of your development project, you want to create several global data types that can
be accessed by other project members. Use the SAP system to create domains and several
data elements. Then create an executable program that uses the data elements whose
technical properties are defined by domains.
Create Two Domains:
Create two domains so that you can use them later in data elements.
1. Execute the transaction SE11.
2. Create a domain with the name ZDO_10NUM_## on the initial screen of the ABAP
Dictionary.
a. Set the domain's properties so that it can contain 10-digit decimal numbers and
allow negative values. Of these 10 digits, 2 digits should be reserved for the
decimal places. Save the domain as a local object and activate it.
3. On the ABAP Dictionary: Initial Screen, create a domain with the name
ZDO_30CHAR_##.
a. The domain can have a maximum of 30 text characters and lowercase letters
should be permitted in the input fields.
4. Save the domain as a local object and activate it.
Create Data Elements and Use the Defined Domains for Technical Properties
1. Start transaction SE11.
2. Create a data element ZLASTNAME## for the surname of a person and use a suitable
domain. The data element can have maximum of 30 characters.
3. Create a data element (ZFIRSTNAME##) for the first name of a person and use the
domain ZDO_30CHAR_##.
4. Create a data element (ZASSETS##) for assets and use the domain ZDO_10NUM_##.
5. Create a data element (ZLIABILITIES##) for liabilities and use the domain
ZDO_10NUM_##.