Skip to content

Commit da8d950

Browse files
committed
resolve merge conflict
2 parents 5527f25 + eae81ce commit da8d950

70 files changed

Lines changed: 679 additions & 245 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.circleci/config.yml

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,27 @@
1-
version: 2
2-
jobs:
3-
build:
4-
timezone:
5-
America/Los_Angeles
6-
docker:
7-
- image: circleci/node:9.6.1
8-
steps:
9-
- checkout
10-
- restore_cache:
11-
key: dependency-cache-{{ checksum "package.json" }}
12-
- run:
13-
name: Install dependencies
14-
command: npm install --production
15-
- save_cache:
16-
key: dependency-cache-{{ checksum "package.json" }}
17-
paths:
18-
- node_modules
19-
- run:
20-
name: Run test tool
21-
command: npm run test
22-
no_output_timeout: '20m'
23-
notify:
24-
webhooks:
25-
# gitter hook
26-
- url: https://webhooks.gitter.im/e/15f197634234d80a32fa
27-
1+
version: 2
2+
jobs:
3+
build:
4+
timezone:
5+
America/Los_Angeles
6+
docker:
7+
- image: circleci/node:9.6.1
8+
steps:
9+
- checkout
10+
- restore_cache:
11+
key: dependency-cache-{{ checksum "package.json" }}
12+
- run:
13+
name: Install dependencies
14+
command: npm install --production
15+
- save_cache:
16+
key: dependency-cache-{{ checksum "package.json" }}
17+
paths:
18+
- node_modules
19+
- run:
20+
name: Run test tool
21+
command: npm run test
22+
no_output_timeout: '20m'
23+
notify:
24+
webhooks:
25+
# gitter hook
26+
- url: https://webhooks.gitter.im/e/15f197634234d80a32fa
27+

.spelling

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,7 @@ uncurried
209209
unpartitioned
210210
UTC
211211
util
212+
Velotics
212213
VirtualBox
213214
virtualization
214215
VMware

tutorials/abap-dev-adt-create-cds-view/abap-dev-adt-create-cds-view.md

Lines changed: 36 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: Create a CDS View (ABAP)
2+
title: Create a CDS view (ABAP)
33
description: You will learn how to use the Core Data Services (CDS) tools in ABAP in Eclipse.
44
primary_tag: topic>abap-development
55
tags: [ tutorial>beginner, topic>abap-development ]
@@ -16,98 +16,77 @@ tags: [ tutorial>beginner, topic>abap-development ]
1616
### You will learn
1717
In the following exercise you will learn how to use the new Core Data Services (CDS) tools in ABAP in Eclipse. CDS is an extension of the ABAP Dictionary that allows you to define semantically rich data models in the database and to use these data models in your ABAP programs. CDS is a central part of enabling code push-down in ABAP applications.
1818
You will add the following:
19+
1920
- SELECT statement
2021
- CASE statement
2122
- WHERE clause
23+
2224
You can find more information about CDS in the [ABAP keyword documentation](https://help.sap.com/doc/abapdocu_751_index_htm/7.51/en-US/abencds.htm) and the [SAP Community](https://www.sap.com/community/topic/abap.html).
2325

2426
---
2527
[ACCORDION-BEGIN [Step 1: ](Create a CDS view)]
26-
1. In the context menu of your package choose **New** and then choose **Other ABAP Repository Object**.
27-
28-
![Image depicting step1-newObject](step1-newObject.png)
29-
30-
2. Select **Data Definition**, then choose **Next**.
28+
1. In the context menu of your package choose **New** and then choose **Other ABAP Repository Object**.
29+
![Image depicting step1-newObject](step1-newObject.png)
3130

32-
![Image depicting step2-DataDef](step2-DataDef.png)
31+
2. Select **Data Definition**, then choose **Next**.
32+
![Image depicting step2-DataDef](step2-DataDef.png)
3333

34-
3. Enter the following values, then choose **Next**:
35-
36-
- Name = **`Z_INVOICE_ITEMS`**
37-
- Description = **Invoice Items**
38-
39-
![Image depicting step3-enterValues](step3-enterValues.png)
40-
41-
4. Accept the default transport request (local) by simply choosing **Next** again.
34+
3. Enter the following values, then choose **Next**:
35+
- Name = **`Z_INVOICE_ITEMS`**
36+
- Description = **Invoice Items**
37+
![Image depicting step3-enterValues](step3-enterValues.png)
4238

39+
4. Accept the default transport request (local) by simply choosing **Next** again.
4340
![Image depicting step4-AcceptTransportRequest](step4-AcceptTR.png)
4441

45-
5. Select the entry **Define View**, then choose **Finish**
46-
47-
![Image depicting step5-defineView](step5-defineView.png)
48-
42+
5. Select the entry **Define View**, then choose **Finish**
43+
![Image depicting step5-defineView](step5-defineView.png)
4944

5045
[ACCORDION-END]
5146

5247
[ACCORDION-BEGIN [Step 2: ](Enter the data source)]
53-
5448
The new view appears in an editor. In this editor, enter the following values:
5549

56-
1. Enter `ZINVOICEITEMS` as the SQL view name.
57-
58-
2. Enter the CDS view `sepm_sddl_so_invoice_item` as the data source for your view.
59-
60-
3. Use code completion (keyboard shortcut **CTRL+SPACE**) to get proposals for the data source.
61-
62-
![Image depicting step6-enterDataSourceEtc](step6-enterDataSourceEtc.png)
50+
1. Enter `ZINVOICEITEMS` as the SQL view name.
51+
2. Enter the CDS view `sepm_sddl_so_invoice_item` as the data source for your view.
52+
3. Use code completion (keyboard shortcut **CTRL+SPACE**) to get proposals for the data source.
53+
![Image depicting step6-enterDataSourceEtc](step6-enterDataSourceEtc.png)
6354

6455
> Note: The SQL view name is the internal/technical name of the view which will be created in the database. `Z_Invoice_Items` is the name of the CDS view which provides enhanced view-building capabilities in ABAP. You should always use the CDS view name in your ABAP applications.
6556
6657

6758
[ACCORDION-END]
6859

6960
[ACCORDION-BEGIN [Step 3: ](Edit the SELECT statement)]
70-
7161
You will now insert the fields `currency_code` and `gross_amount` into the SELECT list as follows:
7262

73-
1. Trigger code completion in the SELECT list (by clicking on the SELECT list and using keyboard shortcut **CTRL+SPACE**), then double click on the entry **Insert all elements - template**. All the elements (fields and associations) of the underlying data source are inserted into the SELECT list.
74-
75-
2. Remove all the elements in the SELECT list which were inserted by the code completion apart from `currency_code` and `gross_amount`. Remember to separate the elements in the SELECT statement with a comma.
76-
77-
![Image depicting step7A-InsertAll-crop](step7A-insertAll-crop.png)
78-
79-
![Image depicting step7-Select1](step7-Select1.png)
80-
63+
1. Trigger code completion in the SELECT list (by clicking on the SELECT list and using keyboard shortcut **CTRL+SPACE**), then double click on the entry **Insert all elements - template**. All the elements (fields and associations) of the underlying data source are inserted into the SELECT list.
64+
2. Remove all the elements in the SELECT list which were inserted by the code completion apart from `currency_code` and `gross_amount`. Remember to separate the elements in the SELECT statement with a comma.
65+
![Image depicting step7A-InsertAll-crop](step7A-insertAll-crop.png)
66+
![Image depicting step7-Select1](step7-Select1.png)
8167

8268
[ACCORDION-END]
8369

8470
[ACCORDION-BEGIN [Step 4: ](Use an existing CDS association)]
71+
You will now model the relationships between data sources by using some existing CDS associations. You can use associations in path expressions to access elements (fields and associations) in related data sources without specifying JOIN conditions. You can now display the element info by positioning the cursor on the data source name **`sepm_sddl_so_invoice_item`** and choosing **F2**.
8572

86-
You will now model the relationships between data sources by using some CDS associations. You can use associations in path expressions to access elements (fields and associations) in related data sources without specifying JOIN conditions. You can now display the element info by positioning the cursor on the data source name **`sepm_sddl_so_invoice_item`** and choosing **F2**.
87-
88-
1. To see the related data sources that can be accessed using associations, scroll down.
89-
90-
2. To see details about the target data source of the association header, choose the hyperlink **`sepm_sddl_so_invoice_header`**
91-
73+
To see the related data sources that can be accessed using associations, scroll down.
74+
To see details about the target data source of the association header, choose the hyperlink **`sepm_sddl_so_invoice_header`**.
9275
![Image depicting step8-CdsAssociations](step8-CdsAssociations.png)
9376

94-
9577
[ACCORDION-END]
9678

97-
[ACCORDION-BEGIN [Step 5: ](Add Fields from existing associations)]
98-
79+
[ACCORDION-BEGIN [Step 5: ](Add fields from existing associations)]
9980
You will now add fields of related data sources to the SELECT list of `Z_Invoice_Items`, using the associations in path expressions. Each element in the path expression must be separated by a period.
10081

101-
1. Add the `company_name` of the business partner to the SELECT list using the associations **header** and **buyer** in a path expression
102-
2. You will get an error, "Field header must be included in the selection list together with field `SEPM_SDDL_SO_INVOICE_ITEM.SALES_ORDER_INVOICE_KEY`". Resolve this by adding the field **`sepm_sddl_so_invoice_item.sales_order_invoice_key`** to the Select statement.
103-
3. Add the `payment_status` from the invoice header to the SELECT list using the association **header**
104-
105-
![Image depicting step9-AddFields](step9-AddRelatedFields.png)
82+
1. Add the `company_name` of the business partner to the SELECT list using the associations **header** and **buyer** in a path expression
83+
2. You will get an error, "Field header must be included in the selection list together with field `SEPM_SDDL_SO_INVOICE_ITEM.SALES_ORDER_INVOICE_KEY`". Resolve this by adding the field **`sepm_sddl_so_invoice_item.sales_order_invoice_key`** to the Select statement.
84+
3. Add the `payment_status` from the invoice header to the SELECT list using the association **header**
85+
![Image depicting step9-AddFields](step9-AddRelatedFields.png)
10686

10787
[ACCORDION-END]
10888

10989
[ACCORDION-BEGIN [Step 6: ](Add a CASE statement)]
110-
11190
If the invoice has been paid, you want to set the `payment_status` to X (true). Do this by implementing a CASE statement
11291

11392
```ABAP
@@ -124,17 +103,14 @@ end as payment_status
124103
[ACCORDION-BEGIN [Step 7: ](Add a WHERE clause)]
125104
You will now filter the results so that only invoice items with `currency_code = 'EUR'` are retrieved.
126105

127-
1. Add a WHERE clause:
128-
106+
1. Add a WHERE clause:
129107
```ABAP
130108
WHERE currency_code = 'EUR'
131109
```
110+
![Image depicting step12-WHERE](step12-WHERE.png)
132111

133-
![Image depicting step12-WHERE](step12-WHERE.png)
134-
135-
2. Save and activate the data definition by choosing **Save** (`Ctrl+S`) and **Activate** (`Ctrl+F3`).
136-
137-
![Image depicting step14-saveAndActivate](step14-saveAndActivate.png)
112+
2. Save and activate the data definition by choosing **Save** (`Ctrl+S`) and **Activate** (`Ctrl+F3`).
113+
![Image depicting step14-saveAndActivate](step14-saveAndActivate.png)
138114

139115
[ACCORDION-END]
140116

@@ -169,7 +145,8 @@ define view Z_Invoice_Items_2
169145
170146
where currency_code = 'EUR'
171147
```
172-
148+
Open the CDS View in the Data Preview by choosing **F8**. Your CDS View should look like this:
149+
![Image depicting step 15-data-preview](step 15-data-preview.png)
173150

174151
[ACCORDION-END]
175152

17.3 KB
Loading

tutorials/abap-dev-adt-create-data-element/abap-dev-adt-create-data-element.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ tags: [ tutorial>beginner, topic>abap-development ]
1010
- **Tutorials:**
1111
[Create an ABAP class](https://www.sap.com/developer/tutorials/abap-dev-create-new-class.html)
1212

13-
## Next Steps: Optional
13+
## Next Steps: Recommended
1414
- [Create `ABAPDoc` comments in your class](https://www.sap.com/developer/tutorials/abap-dev-create-abapdoc.html)
1515

1616
## Details
@@ -28,8 +28,12 @@ Go back to your ABAP Dictionary structure `zso_invoice_item` and change the type
2828

2929
![Image depicting step24-change-field-type](step24-change-field-type.png)
3030

31-
Since the data element `zso_invoice_payment_status` does not exist, you get a syntax error, which you will fix using a quick fix:
31+
Since the data element `zso_invoice_payment_status` does not exist, you get a syntax error, which you will fix using a quick fix below.
32+
33+
[ACCORDION-END]
3234

35+
[ACCORDION-BEGIN [Step 2: ](Create a data element from scratch)]
36+
Note: If you are not following this whole tutorial series, but simply want to create a data element
3337

3438
[ACCORDION-END]
3539

0 commit comments

Comments
 (0)