Skip to content

Commit 3f880b9

Browse files
Merge pull request #2551 from julieplummer20:main
Main Fixed test q; deleted foreign key info
2 parents 1f4e906 + d7aef7a commit 3f880b9

File tree

1 file changed

+8
-13
lines changed

1 file changed

+8
-13
lines changed

tutorials/abap-dev-create-table/abap-dev-create-table.md

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,15 @@ time: 75
1111

1212
## Prerequisites
1313
- You have a valid instance of one of the following:
14-
- SAP Business Technology Platform (BTP) ABAP Environment. For more information, see **Tutorial**: [Create Your First ABAP Console Application](abap-environment-console-application), steps 1-2. On this instance, you have pulled the SAP ABAP Flight Reference Scenario. To pull this reference scenario from `Github`, see [ Downloading the ABAP Flight Reference Scenario](https://help.sap.com/viewer/923180ddb98240829d935862025004d6/Cloud/en-US/def316685ad14033b051fc4b88db07c8.html)
15-
- On-premise [SAP AS ABAP Platform 1909, developer edition in SAP Cloud Appliance Library (CAL)](https://cal.sap.com/subscription?sguid=7bd4548f-a95b-4ee9-910a-08c74b4f6c37)
14+
- SAP Business Technology Platform (BTP) ABAP Environment. For more information, see **Tutorial**: [Create Your First ABAP Console Application](abap-environment-console-application), steps 1-2.
15+
- On-premise, .e.g. [ABAP Cloud Developer Trial, 2022](https://community.sap.com/t5/technology-blogs-by-sap/abap-cloud-developer-trial-2022-available-now/ba-p/13598069)
1616
- **Tutorial**: [Create an ABAP Project in ABAP Development Tools (ADT)](abap-create-project)
17-
17+
- On this instance, you have pulled the SAP ABAP Flight Reference Scenario. To pull this reference scenario from `Github`, see [Downloading the ABAP Flight Reference Scenario](https://help.sap.com/viewer/923180ddb98240829d935862025004d6/Cloud/en-US/def316685ad14033b051fc4b88db07c8.html)
1818

1919

2020
## You will learn
2121
- How to create a table in ABAP, representing a table in your database
22-
<!-- - How to create a reusable **domain**, which provides technical attributes for data elements -->
22+
- How to create a reusable **domain**, which provides technical attributes for data elements
2323
- How to create an elementary data type, or **data element**
2424
- How to fill the table with three rows of test data
2525

@@ -41,8 +41,6 @@ The table in this tutorial will store bank account details for customers. The ta
4141
> Throughout this tutorial, replace `###` or `000` with your initials or group number.
4242
4343

44-
---
45-
4644
### Create table
4745

4846
Create a table in your package:
@@ -79,7 +77,7 @@ There are 3 ways to create a field for a database table:
7977

8078
- Use an **existing data element**: The most powerful: A data element describes both the technical and semantic attributes of a field, such as a currency, or a customer name. You can define properties such as search help and (translatable) column header, and then use the same data element in many contexts. You often define the technical attributes of the data element in a domain, so they can be reused.
8179

82-
- Create a **new data element**: If you want to reuse the benefits of data elements - i.e. semantic attributes such as reuse of translatable column headers or a check table, but a suitable one does not exist yet.
80+
- Create a **new data element**: If you want to reuse the benefits of a data element - that is, semantic attributes, such as reuse of translatable column headers - but a suitable one does not exist yet.
8381

8482
<!-- border -->
8583
![overview-domain-dtel](overview-domain-dtel.png)
@@ -178,8 +176,6 @@ Now add the key field **`bank_name`**, based on a new data element, `z_bank_name
178176
key client : abap.clnt not null;
179177
key account_number : abap.numc(8) not null;
180178
key bank_name : z_bank_name_###;
181-
@AbapCatalog.foreignKey.keyType : #KEY
182-
@AbapCatalog.foreignKey.screenCheck : false
183179
bank_customer_id : /dmo/customer_id not null;
184180
city : /dmo/city;
185181
balance : abap.curr(16,2);
@@ -243,7 +239,7 @@ Before you activate the table, change the technical settings at the top as follo
243239

244240

245241
### Save and activate table code
246-
<!-- remove for key -->
242+
247243
Now, save (`Ctrl+S`) and activate (`Ctrl+F3`) your table. Your code should look like this:
248244

249245
```ABAP
@@ -255,8 +251,6 @@ Now, save (`Ctrl+S`) and activate (`Ctrl+F3`) your table. Your code should look
255251
define table zaccounts_### {
256252
key client : abap.clnt not null;
257253
key account_number : abap.numc(8) not null;
258-
@AbapCatalog.foreignKey.keyType : #KEY
259-
@AbapCatalog.foreignKey.screenCheck : false
260254
bank_customer_id : /dmo/customer_id not null
261255
bank_name : z_bank_name_###;
262256
city : /dmo/city;
@@ -286,7 +280,8 @@ Finally, you will fill the table with three rows of test data:
286280

287281
2. Enter a name **`ZCL_FILL_ACCOUNTS_###`** and description for your class (replacing `###` with your group number or initials).
288282

289-
<!-- border -->![step15b-name-class](step15b-name-class.png)
283+
<!-- border -->
284+
![step15b-name-class](step15b-name-class.png)
290285

291286
3. Assign a transport request and choose **Finish**.
292287

0 commit comments

Comments
 (0)