Skip to content

Commit bbeca1e

Browse files
authored
Merge branch 'sap-tutorials:master' into master
2 parents 389ace0 + 46be70f commit bbeca1e

File tree

227 files changed

+289
-2157
lines changed

Some content is hidden

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

227 files changed

+289
-2157
lines changed

.vscode/settings.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
22
"SAP HANA Database Explorer.displaySapWebAnalyticsStartupNotification": false,
3-
"SAP HANA Database Artifacts.displaySapWebAnalyticsStartupNotification": false
3+
"SAP HANA Database Artifacts.displaySapWebAnalyticsStartupNotification": false,
4+
"SAP HANA SQLScript LSP.URL": "https://hana-cockpit.cfapps.us10.hana.ondemand.com"
45
}
Loading

tutorials/appgyver-configure-camera/appgyver-configure-camera.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,4 +101,4 @@ As an example:
101101

102102
If you can't find a barcode, here's an example:
103103

104-
![Barcode example](barcode.gif)
104+
![Barcode example](barcode.gif)

tutorials/appstudio-sapui5-integrationcard-create/appstudio-sapui5-integrationcard-create.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ Integration cards are UI elements which display concise pieces of information in
6262
<!-- border -->![Image depicting UI Integration Card template option](2-3.PNG)
6363

6464
4. Fill-in the required project details. Use the **Highlight Card** template, which creates an Integration card of type List and select Finish.
65-
>If you are following this tutorial as part of a workshop, please give your card a unique name. Your card name should be `#uid_products_by_category_card` where `#uid` is your unique identifier.
65+
>If you are following this tutorial as part of a workshop, please give your card a unique name. In this case your card name should be `wz<your unique identifier>_products_by_category_card`.
6666
6767
| Description | Value
6868
| :------------- | :-------------
@@ -156,10 +156,10 @@ In the next steps you edit the `manifest.json` file to configure the card.
156156

157157
**Results after Step 3:**
158158

159-
160159
The application displays dynamic data loaded from the SAP Gateway Demo System (ES5). Note, that the actual displayed products may differ depending on the current data in the ES5 demo system. You can also check the [manifest.json](https://raw.githubusercontent.com/SAPDocuments/Tutorials/master/tutorials/appstudio-sapui5-integrationcard-create/manifest_after_step3.json) file at this step. To learn more, see the [Destinations](https://sapui5.hana.ondemand.com/test-resources/sap/ui/integration/demokit/cardExplorer/webapp/index.html#/learn/features/destinations) and [Data](https://sapui5.hana.ondemand.com/test-resources/sap/ui/integration/demokit/cardExplorer/webapp/index.html#/learn/features/data) sections in the Card Explorer.
161160

162161

162+
163163
<!-- border -->![Image depicting the application showing dynamic data](3-4.PNG)
164164

165165
If you would like to deploy the card and see how it looks on SAP Build Work Zone, you can skip to Step 6 and deploy it. In the next steps you add card capabilities that can make your card more interactive.
@@ -286,9 +286,9 @@ To learn more, see the [Manifest Parameters](https://sapui5.hana.ondemand.com/te
286286

287287
**Results after Step 5:**
288288

289-
290289
If you have any issues you can check the [manifest.json](https://raw.githubusercontent.com/SAPDocuments/Tutorials/master/tutorials/appstudio-sapui5-integrationcard-create/manifest.json) file at this step. It is configured with destinations, parameters, and a filter.
291290

291+
292292
The application displays the products from the selected category:
293293

294294
<!-- border -->![Image depicting the application showing dynamic data, parameters, and a filter](5-5.PNG)

tutorials/cap-service-deploy/cap-service-deploy.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ The MBT Build tool uses the `mta.yaml` file that has been created using `cds add
112112
> In the previous step, you identified your API endpoint. If that has a format like `...us10-001...`, you need to add the following configuration to your `xs-security.json`:
113113
> ```json
114114
> "oauth2-configuration": {
115-
> "redirect-uris": ["https://*.cfapps.us10-001.hana.ondemand.com/**"]
115+
> "redirect-uris": ["https://*.us10-001.hana.ondemand.com/**"]
116116
> }
117117
> ```
118118
> For other API endpoints you'd need to adapt it accordingly.
@@ -146,7 +146,7 @@ The MBT Build tool uses the `mta.yaml` file that has been created using `cds add
146146
```
147147
This is the URL of the AppRouter, which enforces the authentication flow.
148148
149-
4. Open this URL in the browser and try out the provided links, for example, `.../catalog/Books`. Application data is fetched from SAP HANA. If enabled in step 1.3 you can also try the **Fiori preview**.
149+
4. Open this URL in the browser and try out the provided links, for example, `.../catalog/Books`. Application data is fetched from SAP HANA. If enabled in step 1.4 you can also try the **Fiori preview**.
150150
151151
<!-- border -->![application preview](application_cloud_fiori.png)
152152

tutorials/cp-cap-java-custom-handler/cp-cap-java-custom-handler.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ import org.springframework.stereotype.Component;
3939

4040
import com.sap.cds.services.cds.CdsCreateEventContext;
4141
import com.sap.cds.services.cds.CdsReadEventContext;
42-
import com.sap.cds.services.cds.CdsService;
42+
import com.sap.cds.services.cds.CqnService;
4343
import com.sap.cds.services.handler.EventHandler;
4444
import com.sap.cds.services.handler.annotations.On;
4545
import com.sap.cds.services.handler.annotations.ServiceName;
@@ -50,13 +50,13 @@ public class AdminService implements EventHandler {
5050

5151
private Map<Object, Map<String, Object>> products = new HashMap<>();
5252

53-
@On(event = CdsService.EVENT_CREATE, entity = "AdminService.Products")
53+
@On(event = CqnService.EVENT_CREATE, entity = "AdminService.Products")
5454
public void onCreate(CdsCreateEventContext context) {
5555
context.getCqn().entries().forEach(e -> products.put(e.get("ID"), e));
5656
context.setResult(context.getCqn().entries());
5757
}
5858

59-
@On(event = CdsService.EVENT_READ, entity = "AdminService.Products")
59+
@On(event = CqnService.EVENT_READ, entity = "AdminService.Products")
6060
public void onRead(CdsReadEventContext context) {
6161
context.setResult(products.values());
6262
}

tutorials/cp-cap-java-custom-logic/cp-cap-java-custom-logic.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ You will now add a method to the `OrdersService` Java class to decrease the stoc
6868
@Autowired
6969
PersistenceService db;
7070

71-
@Before(event = CdsService.EVENT_CREATE, entity = OrderItems_.CDS_NAME)
71+
@Before(event = CqnService.EVENT_CREATE, entity = OrderItems_.CDS_NAME)
7272
public void validateBookAndDecreaseStock(List<OrderItems> items) {
7373
for (OrderItems item : items) {
7474
String bookId = item.getBookId();
@@ -92,7 +92,7 @@ You will now add a method to the `OrdersService` Java class to decrease the stoc
9292
}
9393
}
9494

95-
@Before(event = CdsService.EVENT_CREATE, entity = Orders_.CDS_NAME)
95+
@Before(event = CqnService.EVENT_CREATE, entity = Orders_.CDS_NAME)
9696
public void validateBookAndDecreaseStockViaOrders(List<Orders> orders) {
9797
for (Orders order : orders) {
9898
if (order.getItems() != null) {
@@ -114,7 +114,7 @@ You will now add a method to the `OrdersService` Java class to decrease the stoc
114114
import com.sap.cds.ql.cqn.CqnUpdate;
115115
import com.sap.cds.services.ErrorStatuses;
116116
import com.sap.cds.services.ServiceException;
117-
import com.sap.cds.services.cds.CdsService;
117+
import com.sap.cds.services.cds.CqnService;
118118
import com.sap.cds.services.handler.annotations.Before;
119119
import com.sap.cds.services.persistence.PersistenceService;
120120

@@ -160,7 +160,7 @@ import com.sap.cds.ql.cqn.CqnSelect;
160160
import com.sap.cds.ql.cqn.CqnUpdate;
161161
import com.sap.cds.services.ErrorStatuses;
162162
import com.sap.cds.services.ServiceException;
163-
import com.sap.cds.services.cds.CdsService;
163+
import com.sap.cds.services.cds.CqnService;
164164
import com.sap.cds.services.handler.annotations.Before;
165165
import com.sap.cds.services.persistence.PersistenceService;
166166
@@ -177,7 +177,7 @@ public class OrdersService implements EventHandler {
177177
@Autowired
178178
PersistenceService db;
179179
180-
@Before(event = CdsService.EVENT_CREATE, entity = OrderItems_.CDS_NAME)
180+
@Before(event = CqnService.EVENT_CREATE, entity = OrderItems_.CDS_NAME)
181181
public void validateBookAndDecreaseStock(List<OrderItems> items) {
182182
for (OrderItems item : items) {
183183
String bookId = item.getBookId();
@@ -201,7 +201,7 @@ public class OrdersService implements EventHandler {
201201
}
202202
}
203203
204-
@Before(event = CdsService.EVENT_CREATE, entity = Orders_.CDS_NAME)
204+
@Before(event = CqnService.EVENT_CREATE, entity = Orders_.CDS_NAME)
205205
public void validateBookAndDecreaseStockViaOrders(List<Orders> orders) {
206206
for (Orders order : orders) {
207207
if (order.getItems() != null) {
@@ -281,7 +281,7 @@ Next, let's add a method to the `OrdersService` Java class to calculate the `net
281281
1. Add the following code to the class and make sure you **Save** the file:
282282

283283
```Java
284-
@After(event = { CdsService.EVENT_READ, CdsService.EVENT_CREATE }, entity = OrderItems_.CDS_NAME)
284+
@After(event = { CqnService.EVENT_READ, CqnService.EVENT_CREATE }, entity = OrderItems_.CDS_NAME)
285285
public void calculateNetAmount(List<OrderItems> items) {
286286
for (OrderItems item : items) {
287287
String bookId = item.getBookId();
@@ -368,7 +368,7 @@ Finally, add a method to the `OrdersService` Java class to calculate the `total`
368368
1. Add the following code to the class and make sure you **Save** the file:
369369

370370
```Java
371-
@After(event = { CdsService.EVENT_READ, CdsService.EVENT_CREATE }, entity = Orders_.CDS_NAME)
371+
@After(event = { CqnService.EVENT_READ, CqnService.EVENT_CREATE }, entity = Orders_.CDS_NAME)
372372
public void calculateTotal(List<Orders> orders) {
373373
for (Orders order : orders) {
374374
// calculate net amount for expanded items

tutorials/cp-cap-java-service-reuse/cp-cap-java-service-reuse.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ From the products service that you created in the previous tutorial, we just wan
4141
4242
```Shell/Bash
4343
mvn -B archetype:generate -DarchetypeArtifactId=cds-services-archetype -DarchetypeGroupId=com.sap.cds \
44-
-DarchetypeVersion=RELEASE \
44+
-DarchetypeVersion=RELEASE -DjdkVersion=11 \
4545
-DgroupId=com.sap.cap -DartifactId=bookstore
4646
```
4747
Loading

tutorials/hana-cloud-cap-add-authentication/hana-cloud-cap-add-authentication.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ The UAA will provide user identity, as well as assigned roles and user attribute
196196
197197
![CAP Service successful](cap_successful.png)
198198
199-
1. Finally change the ULR path to `/interaction_items/webapp/index.html`. You are now testing the Fiori free style application from the previous tutorial with data from the CAP service but all with authentication. You should also only be seeing a single record thanks to the data restriction we placed on the service as well.
199+
1. Finally change to the `Interaction_Items` from the test page. You are now testing with data from the CAP service but all with authentication. You should also only be seeing a single record thanks to the data restriction we placed on the service as well.
200200
201201
![Fiori with authentication](fiori_with_authentication.png)
202202
Loading
Loading
Loading

tutorials/hana-cloud-cap-create-project/hana-cloud-cap-create-project.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ Before we create our SAP HANA project, we want to do a few more one-time configu
101101
1. The final input will ask you for your Space. Press **Apply**.
102102
![Space](space.png)
103103

104-
1. Upon completion of all the inputs, you should see that the Organization and Space have been set and you will see any service instances or application instances from the target space. It's normally to see many less options in this tree display than the screenshot.
104+
1. Upon completion of all the inputs, you should see that the Organization and Space have been set and you will see any service instances or application instances from the target space. It's normal to see less options in this tree display than the screenshot depending upon how much other development you might have already done in your BTP account.
105105

106106
![Org and Space Set Correctly](org_space_set_correctly.png)
107107

Loading
-957 Bytes
Loading
Loading

tutorials/hana-cloud-cap-create-ui/hana-cloud-cap-create-ui.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -135,15 +135,15 @@ We want to create a Fiori freestyle UI for our CAP service. We will use the wiz
135135

136136
![Fiori Application Generator](fiori_app_gen.png)
137137

138-
1. Choose **SAPUI5 freestyle** as the application type, select **SAP Fiori Worklist Application** as the floor plan and press **Next**
138+
1. Choose **SAP Fiori** as the template type, select **Worklist Page** as the template and press **Next**
139139

140140
![Fiori Application Type](application_type.png)
141141

142-
1. At the Data Source and Service Selection screen, choose **Use a Local CAP Node.js Project**. Select your project root as the **CAP project folder path**. Select `CatalogService` as your OData service. Press **Next**
142+
1. At the Data Source and Service Selection screen, choose **Use a Local CAP Project**. Select your project as the **Choose your CAP project**. Select `CatalogService (Node.js)` as your OData service. Press **Next**
143143

144144
![Data Source and Service Selection](data_source.png)
145145

146-
1. Choose `Interactions_Items` as the Object collection, `INTHeader_ID` for the remaining columns and press **Next**
146+
1. Choose `Interactions_Header` as the main entity, `ITEMS` for the Navigation entity, leave the `YES` value for the "Automatically add table columns to the list page and a section to the object page if none already exists?" option and press **Next**
147147

148148
![Entity Selection](entity_selection.png)
149149

Loading
Loading
6.24 KB
Loading

tutorials/hcp-abh-getting-started/hcp-abh-getting-started.md

Lines changed: 14 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -9,34 +9,34 @@ tags: [ tutorial>beginner, products>sap-business-technology-platform, topic>sap
99

1010
---
1111

12-
# Tour the SAP API Business Hub
13-
<!-- description --> Explore the various features of the SAP API Business Hub, and learn how to find and test APIs.
12+
# Tour the SAP Business Accelerator Hub
13+
<!-- description --> Explore the various features of the SAP SAP Business Accelerator Hub, and learn how to find and test APIs.
1414

1515
## You will learn
16-
- How to get started with SAP API Business Hub
16+
- How to get started with SAP Business Accelerator Hub
1717

1818
## Intro
19-
SAP API Business Hub is a website to discover, explore, and test APIs from various SAP products such as SAP S/4HANA, SAP SuccessFactors, SAP Customer Experience, SAP BTP, and selected partners. Apart from various product APIs, you can find detailed information on business processes and partner assets. The new workspace feature also enables you to consume integration and workflow content.
19+
SAP Business Accelerator Hub is a website to discover, explore, and test APIs from various SAP products such as SAP S/4HANA, SAP SuccessFactors, SAP Customer Experience, SAP BTP, and selected partners. Apart from various product APIs, you can find detailed information on business processes and partner assets. The new workspace feature also enables you to consume integration and workflow content.
2020

21-
Want to learn more about the new SAP API Business Hub? Not sure where to get started? Go to [api.sap.com] (https://api.sap.com), and begin your journey.
21+
Want to learn more about the new SAP SAP Business Accelerator Hub? Not sure where to get started? Go to [api.sap.com] (https://api.sap.com), and begin your journey.
2222

2323
---
2424

25-
### Go to the SAP API Business Hub
26-
In your browser, open [SAP API Business Hub](https://api.sap.com/).
25+
### Go to the SAP Business Accelerator Hub
26+
In your browser, open [SAP Business Accelerator Hub](https://api.sap.com/).
2727

28-
<!-- border -->![SAP API Business Hub page](1.png)
28+
<!-- border -->![SAP Business Accelerator Hub page](1.png)
2929

30-
You can explore products, business processes, as well as different categories of assets, along with partner and featured content. Choose Explore for quick access to the various sections of the SAP API Business Hub.
30+
You can explore products, business processes as well as different categories of assets, along with partner and featured content. Choose **Explore** for quick access to the various sections of the SAP Business Accelerator Hub.
3131

3232
### Explore API content
33-
On the SAP API Business Hub homepage, choose **Categories**.
33+
On the SAP Business Accelerator Hub homepage, choose **Categories**.
3434

35-
<!-- border -->![SAP API Business Hub homepage API tile](2.png)
35+
<!-- border -->![SAP Business Accelerator Hub homepage API tile](2.png)
3636

3737
Choose APIs from the different categories available.
3838

39-
<!-- border -->![SAP API Business Hub APIs section](2a.png)
39+
<!-- border -->![SAP Business Accelerator Hub APIs section](2a.png)
4040

4141
### Search for an API
4242

@@ -52,7 +52,6 @@ For the purpose of this tutorial, we are going to choose the `SAP Cloud for Cust
5252

5353
<!-- border -->![SAP Cloud for Customer Package Search](4a.png)
5454

55-
5655
### Explore the API
5756

5857
On choosing the **SAP Cloud for Customer** package, you can view the available APIs in the package. Select the Campaign API to explore it in detail.
@@ -73,7 +72,7 @@ Various HTTP methods of API are used to address the functionality of endpoints.
7372

7473
### Test an API endpoint
7574

76-
The SAP API Business Hub allows you to test APIs. A sandbox environment is provided to test the Campaign API. To take advantage of this, ensure you are logged on. Select Login at the top of the page.
75+
The SAP Business Accelerator Hub allows you to test APIs. A sandbox environment is provided to test the Campaign API. To take advantage of this, ensure you are logged on. Select Login at the top of the page.
7776

7877
<!-- border -->![Login](6.png)
7978

@@ -104,5 +103,4 @@ The response section displays various entities fetched calling the `GET` method.
104103

105104
Feel free to explore other endpoints in this Campaign API.
106105

107-
108-
Congratulations, you have just taken your first steps with the SAP API Business Hub and should now be able to navigate it and the content within, confidently.
106+
Congratulations, you have just taken your first steps with the SAP Business Accelerator Hub and should now be able to navigate it and the content within, confidently.

tutorials/hcp-abh-test-locally/hcp-abh-test-locally.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ time: 20
88
tags: [ tutorial>beginner, products>sap-business-technology-platform, topic>sap-api-business-hub ]
99
---
1010

11-
# Test SAP API Business Hub APIs with curl
11+
# Test SAP Business Accelerator Hub APIs with curl
1212
<!-- description --> Try out an SAP API locally on your machine.
1313

1414
## Prerequisites
@@ -20,7 +20,7 @@ tags: [ tutorial>beginner, products>sap-business-technology-platform, topic>sap
2020
- How to use command line tools like curl and jq with REST / OData APIs locally.
2121

2222
## Intro
23-
You have already discovered the SAP API Business Hub and accomplished testing an API on the website. In this tutorial, you will learn how to use command-line tools like curl and jq to test REST/OData APIs locally on your machine.
23+
You have already discovered the SAP Business Accelerator Hub and accomplished testing an API on the website. In this tutorial, you will learn how to use command-line tools like curl and jq to test REST and OData APIs locally on your machine.
2424

2525
---
2626

@@ -32,7 +32,7 @@ Go to <https://api.sap.com> and navigate to the [Campaign](https://api.sap.com/a
3232

3333
### Generate sample API call code
3434

35-
Select `GET/CampaignCollection` method under **API Reference**. Glance through the `GET/CampaignCollection` to understand the parameters. The SAP API Business Hub provides you with starter code in a variety of languages and tools for each API.
35+
Select `GET/CampaignCollection` method under **API Reference**. Glance through the `GET/CampaignCollection` to understand the parameters. The SAP Business Accelerator Hub provides you with starter code in a variety of languages and tools for each API.
3636

3737
![Get/CampaignCollection method](2.png)
3838

@@ -52,7 +52,7 @@ Copy the highlighted curl code to the clipboard.
5252

5353
### Run sample API call code
5454

55-
Paste the content of the clipboard in a terminal or command line window. Hit **Enter** to run the command. It may take a few seconds before data is seen on your screen.
55+
Paste the content of the clipboard in a terminal or command line window. Hit **Enter** to run the command. Please note that it may take a few seconds before data is seen on your screen.
5656

5757
> You can use `CTRL+C` to stop the command from running.
5858
@@ -72,7 +72,6 @@ You can limit the number of results retrieved with the `$top` value provided in
7272
You can then switch back to the Code Snippet section, and copy the updated code from the Curl section to paste it into your terminal. When you execute the curl command, and pipe the output into jq again, you should see a nicely formatted list of three campaigns.
7373

7474
### Add multiple parameters to the API call
75-
7675
Besides the `$top` parameter, you can add multiple parameters to the [Query String](https://en.wikipedia.org/wiki/Query_string) of your API call.
7776
Now add in a second parameter for `$select`. You only want the `StatusText` and `Status` for the top 3 users. Use the same approach as before - switch to the Parameters section, specify the two values for the `$select` parameter using the drop down menu, then switch back to the Code Snippet section and copy the Curl content again. It should look something like this:
7877

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)