Skip to content

Commit 60b0b26

Browse files
2 parents 16be596 + 20abe84 commit 60b0b26

File tree

42 files changed

+243
-308
lines changed

Some content is hidden

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

42 files changed

+243
-308
lines changed

tutorials/abap-environment-behavior-action/abap-environment-behavior-action.md

Lines changed: 164 additions & 170 deletions
Large diffs are not rendered by default.

tutorials/abap-environment-behavior/abap-environment-behavior.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ In this tutorial, wherever XXX appears, use a number (e.g. 000).
4444
4. Replace your code with following.
4545

4646
```ABAP
47-
managed implementation in class ZCL_BP_I_TRAVEL_M_XXX unique;
47+
managed implementation in class zbp_i_travel_m_xxx unique;
4848
4949
define behavior for ZI_TRAVEL_M_XXX alias Travel
5050
persistent table ztravel_xxx

tutorials/abap-environment-console-application/abap-environment-console-application.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,4 +187,6 @@ Or select the icon.
187187

188188
Write only the write statement with following information: Hello SAP Cloud Platform ABAP Environment!
189189

190+
[VALIDATE_1]
191+
[ACCORDION-END]
190192

tutorials/abap-environment-trial-onboarding/abap-environment-trial-onboarding.md

Lines changed: 10 additions & 77 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,10 @@ This tutorial is part of a 3-part series of SAP BTP, ABAP Environment tutorials,
6969

7070
![Select ABAP Trial](boosters4.png)
7171

72+
7. Download your service key for later use.
73+
74+
![Select ABAP Trial](downloadkey.png)
75+
7276

7377

7478
### Open ABAP Development Tools
@@ -86,90 +90,19 @@ Open Eclipse. Make sure you have installed ADT in your Eclipse. Find [here](abap
8690

8791
![Create ABAP cloud project](cloud.png)
8892

89-
2. Select **Use Cloud Foundry Environment** and click **Next >**.
93+
2. Select **SAP BTP ABAP Environment** > **Use a Service Key** and click **Next >**.
9094

9195
![Create ABAP cloud project](project2x.png)
9296

93-
3. Enter your **connection settings**:
94-
- Region: choose your SAP BTP Cloud Foundry Environment region, for e.g. US East (VA)
95-
- Email: your email address
96-
- Password: your password
97-
98-
![Create ABAP cloud project](projectx12.png)
99-
100-
Click **Next >**.
101-
102-
4. Set your **service instance details**:
103-
- Organization: your organization
104-
- Space: dev
105-
- Service instance: `default_abap-trial`
106-
107-
![Create ABAP cloud project](projectx22.png)
97+
3. Import your service key and click **Next >**.
10898

109-
Click **Next >**.
99+
![Create ABAP cloud project](skey.png)
110100

111-
>**HINT:** Your service instance is **`default_abap-trial`** when you use the **ABAP trial booster** on SAP BTP. If you create a manual instance, use your own instance name.
112-
113-
5. Click **Open Logon Page in Browser**.
101+
4. Click **Open Logon Page in Browser**.
114102

115103
![Create ABAP cloud project](project4.png)
116104

117-
6. Now you've been authenticated automatically. Provide your credentials if requested. The credentials are the same you used to create your trial account on SAP BTP.
118-
119-
Go back to ADT.
120-
121-
![Create ABAP cloud project](project52.png)
122-
123-
Click **Finish**.
124-
125-
126-
7. Your trial system appears on the project explorer.
127-
128-
![Create ABAP cloud project](project62.png)
129-
130-
131-
### Alternative 2: Create ABAP cloud project
132-
133-
134-
You can also create your ABAP cloud project with a service key. For that, follow the instruction:
135-
136-
1. Log in to [SAP BTP trial cockpit](https://cockpit.hanatrial.ondemand.com/).
137-
138-
2. Select your **trial** subaccount.
139-
140-
![Create ABAP cloud project](keytrial.png)
141-
142-
3. Click **Instances and Subscriptions**.
143-
144-
![Create ABAP cloud project](keytrial2.png)
145-
146-
4. Select **Instances**, navigate to **`default_abap-trial`** and select the arrow on the right side.
147-
148-
![Create ABAP cloud project](keytrial3.png)
149-
150-
5. Select **Service Key**, the menu and click **Download**.
151-
152-
![Create ABAP cloud project](keytrial4.png)
153-
154-
Now your service key gets downloaded. You can use it in the next steps.
155-
156-
6. Switch to Eclipse and select **File** > **New** > **Other** > **ABAP Cloud Project** and click **Next >**.
157-
158-
![Create ABAP cloud project](cloud.png)
159-
160-
7. Select **Use a Service Key** and click **Next >**.
161-
162-
![Create ABAP cloud project](key5.png)
163-
164-
8. Paste your service key and click **Next >**.
165-
166-
![Create ABAP cloud project](key6.png)
167-
168-
9. Click **Open Logon Page in Browser**.
169-
170-
![Create ABAP cloud project](key7.png)
171-
172-
10. Now you've been authenticated automatically. Provide your credentials if requested. The credentials are the same you used to create your trial account on SAP BTP.
105+
5. Now you've been authenticated automatically. Provide your credentials if requested. The credentials are the same you used to create your trial account on SAP BTP.
173106

174107
Go back to ADT.
175108

@@ -178,7 +111,7 @@ You can also create your ABAP cloud project with a service key. For that, follow
178111
Click **Finish**.
179112

180113

181-
7. Your trial system appears on the project explorer.
114+
6. Your trial system appears on the project explorer.
182115

183116
![Create ABAP cloud project](project62.png)
184117

Loading
Loading
Loading

tutorials/abap-s4hanacloud-procurement-purchasereq-shop/abap-s4hanacloud-procurement-purchasereq-shop.md

Lines changed: 36 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -381,18 +381,18 @@ In this tutorial, wherever XXX appears, use a number (e.g. 000).
381381
4. In your **Global Class**, replace your code with following:
382382
383383
```ABAP
384-
CLASS zbp_i_online_shop_xxx DEFINITION PUBLIC ABSTRACT FINAL FOR BEHAVIOR OF zi_online_shop_xxx.
385-
class-DATA cv_pr_mapped TYPE RESPONSE FOR MAPPED i_purchaserequisitiontp.
386-
ENDCLASS.
384+
CLASS zbp_i_online_shop_xxx DEFINITION PUBLIC ABSTRACT FINAL FOR BEHAVIOR OF zi_online_shop_xxx.
385+
class-DATA cv_pr_mapped TYPE RESPONSE FOR MAPPED i_purchaserequisitiontp.
386+
ENDCLASS.
387387
388-
CLASS zbp_i_online_shop_xxx IMPLEMENTATION.
389-
ENDCLASS.
390-
```
388+
CLASS zbp_i_online_shop_xxx IMPLEMENTATION.
389+
ENDCLASS.
390+
```
391391
392-
5. In your **Local Types**, replace your code with following:
392+
5. In your **Local Types**, replace your code with following:
393393
394-
```ABAP
395-
CLASS lsc_zbp_i_online_shop_xxx DEFINITION INHERITING FROM cl_abap_behavior_saver.
394+
```ABAP
395+
CLASS lsc_zbp_i_online_shop_xxx DEFINITION INHERITING FROM cl_abap_behavior_saver.
396396
397397
PROTECTED SECTION.
398398
@@ -410,15 +410,15 @@ In this tutorial, wherever XXX appears, use a number (e.g. 000).
410410
CONVERT KEY OF i_purchaserequisitiontp FROM <fs_pr_mapped>-%key TO DATA(ls_pr_key).
411411
<fs_pr_mapped>-purchaserequisition = ls_pr_key-purchaserequisition.
412412
ENDLOOP.
413-
ENDIF.
413+
ENDIF.
414414
415415
416416
IF create-online_shop IS NOT INITIAL.
417417
" Creates internal table with instance data
418418
lt_online_shop_as = CORRESPONDING #( create-online_shop ).
419419
lt_online_shop_as[ 1 ]-purchasereqn = ls_pr_key-purchaserequisition .
420420
421-
insert zshop_as_xxx FROM TABLE @lt_online_shop_as.
421+
INSERT zshop_as_xxx FROM TABLE @lt_online_shop_as.
422422
ENDIF.
423423
ENDMETHOD.
424424
ENDCLASS.
@@ -437,6 +437,8 @@ In this tutorial, wherever XXX appears, use a number (e.g. 000).
437437
438438
METHODS calculate_order_id FOR DETERMINE ON MODIFY
439439
IMPORTING keys FOR online_shop~calculate_order_id.
440+
METHODS set_inforecord FOR MODIFY
441+
IMPORTING keys FOR ACTION online_shop~set_inforecord.
440442
441443
442444
ENDCLASS.
@@ -494,21 +496,26 @@ In this tutorial, wherever XXX appears, use a number (e.g. 000).
494496
GLAccount
495497
Quantity
496498
BaseUnit )
497-
WITH VALUE #( ( %cid_ref = 'My%ItemCID_1'
498-
%target = VALUE #( ( CostCenter = 'JMW-COST'
499-
GLAccount = '0000400000' ) ) ) )
500-
CREATE BY \_purchasereqnitemtext
501-
FIELDS ( plainlongtext )
502-
WITH VALUE #( ( %cid_ref = 'My%ItemCID_1'
503-
%target = VALUE #( (
504-
textobjecttype = 'B01'
505-
language = 'E'
506-
plainlongtext = 'item text created from PAAS API XXX'
507-
) (
508-
textobjecttype = 'B02'
509-
language = 'E'
510-
plainlongtext = 'item2 text created from PAAS API XXX'
511-
) )
499+
WITH VALUE #( ( %cid_ref = 'My%ItemCID_1'
500+
%target = VALUE #( ( %cid = 'MyTargetCID_1'
501+
CostCenter = 'JMW-COST'
502+
GLAccount = '0000400000' ) ) ) )
503+
CREATE BY \_purchasereqnitemtext
504+
FIELDS ( plainlongtext )
505+
WITH VALUE #( ( %cid_ref = 'My%ItemCID_1'
506+
%target = VALUE #( (
507+
%cid = 'MyTargetCID_2'
508+
textobjecttype = 'B01'
509+
language = 'E'
510+
plainlongtext = 'item text created from PAAS API XXX'
511+
) (
512+
%cid = 'MyTargetCID_3'
513+
textobjecttype = 'B02'
514+
language = 'E'
515+
plainlongtext = 'item2 text created from PAAS API XXX'
516+
) )
517+
518+
512519
) )
513520
REPORTED DATA(ls_pr_reported)
514521
MAPPED DATA(ls_pr_mapped)
@@ -583,6 +590,9 @@ In this tutorial, wherever XXX appears, use a number (e.g. 000).
583590
584591
ENDMETHOD.
585592
*
593+
METHOD set_inforecord.
594+
ENDMETHOD.
595+
586596
ENDCLASS.
587597
```
588598

tutorials/community-2022/community-2022.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ primary_tag: topic>sap-community
77
author_name: Lena Stodal
88
author_profile: https://github.com/lenastodal
99
---
10-
## Tour the SAP Community 2022
10+
# Tour the SAP Community 2022
1111
<!-- description --> Explore the various features of SAP Community, get to know the new Groups, and discover how to get the most out of your membership.
1212

1313
## Prerequisites

tutorials/cp-aibus-pr-booster-free-key/cp-aibus-pr-booster-free-key.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ Click **Download Service Key** to save the service key locally on your computer.
9090

9191
>If you face any issue with the booster **Set up account for Personalized Recommendation**, you can alternatively follow the steps in [Use Free Tier to Create a Service Instance for Personalized Recommendation](cp-aibus-pr-free-service-instance) to create the service instance and service key for Personalized Recommendation manually using the free tier service plan.
9292
93-
Step 4 is optional. If you're not interested, you can set it to **Done** and go directly to the next tutorial.
93+
Next step is optional. If you're not interested, you can set it to **Done** and go directly to the next tutorial.
9494

9595

9696

Loading
Loading
-21.9 KB
Loading

tutorials/cp-cap-java-app-studio/cp-cap-java-app-studio.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,9 +96,9 @@ Before you begin, check the settings of your browser. You need to add domains `o
9696
9797
<!-- border -->![project creation done](project-creation-done.png)
9898
99-
5. From the main menu, choose **File** **&rarr;** **Open Workspace**.
99+
5. From the main menu, choose **File** **&rarr;** **Open Folder**.
100100
101-
6. Choose **products-service** and then **Open**.
101+
6. Choose **projects &rarr; products-service** and then **OK**.
102102
103103
<!-- border -->![open workspace](open-workspace.png)
104104
Loading
-35.6 KB
Loading
-13.5 KB
Loading
-49.5 KB
Loading
Loading
-30.4 KB
Loading

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ Stop your application if it's still running by using **`CTRL+C`** in the termina
101101
102102
<!-- border -->![open application in new tab message](open-in-new-tab.png)
103103
104-
A new Browser tab should be opened with your application.
104+
A new Browser tab is opened with your application.
105105
106106
<!-- border -->![application opened](application-opened.png)
107107
Loading
Loading

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

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,8 @@ primary_tag: software-product-function>sap-cloud-application-programming-model
1818
## Intro
1919
In the previous tutorial, you have built the data model and exposed the services of your bookstore application. In this tutorial, you will extend the bookstore with custom code to calculate the `total` and `netAmount` elements of the `Orders` and `OrderItems` entity. In addition, when creating an order the available stock of a book will be checked and decreased.
2020

21-
---
22-
23-
### Define custom handler for OrdersService
2421

22+
### Define custom handler for `OrdersService`
2523

2624
In one of the previous tutorials, you have already seen how to register a [custom event handler](https://cap.cloud.sap/docs/java/provisioning-api) to handle `READ` or `CREATE` events of an entity. You used the `@On` annotation, which replaces the default handling of an event that is provided by the CAP Java runtime.
2725

@@ -56,6 +54,9 @@ public class OrdersService implements EventHandler {
5654
<!-- border -->![OrdersService class overview](ordersservice-class.png)
5755

5856

57+
> If you see validation errors in your editor, open the context menu on your `pom.xml` and select **Update Project**. That regenerates the classes and makes them available.
58+
59+
5960
### Decrease stock when posting order
6061

6162

@@ -99,7 +100,7 @@ You will now add a method to the `OrdersService` Java class to decrease the stoc
99100
}
100101
}
101102
}
102-
```
103+
```
103104

104105
2. Add the following import statements to the top of the `OrdersService` Java class and make sure you **Save** the file:
105106

@@ -273,8 +274,7 @@ If your `OrdersService.java` file still shows some errors right-click on the `po
273274
274275
275276
276-
### Calculate netAmount of order item
277-
277+
### Calculate `netAmount` of order item
278278
279279
Next, let's add a method to the `OrdersService` Java class to calculate the `netAmount` element of the `OrderItems` entity.
280280

@@ -327,7 +327,7 @@ Let's break it down again:
327327

328328
3. Click the green arrow to start the application.
329329

330-
<!-- border -->![start run configuration](start-runconfiguration.png)
330+
<!-- border -->![start run configuration](start-runconfiguration.png)
331331

332332
You should see the application starting in the **Debug Console**.
333333

Loading
Loading
Loading
Loading
Loading

tutorials/cp-cap-java-hana-db/cp-cap-java-hana-db.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ First you need to create and initialize an SAP HANA database schema in SAP BTP.
5959
6060
6161
62+
6263
### Provision an Instance of SAP HANA Cloud
6364
6465
@@ -84,7 +85,6 @@ Add an additional Maven dependency to your project. The dependency brings the ab
8485
</dependency>
8586
```
8687
87-
8888
### Deploy database artefacts to SAP HANA
8989
9090
@@ -120,6 +120,7 @@ Add an additional Maven dependency to your project. The dependency brings the ab
120120
121121
122122
123+
123124
### Run application using SAP HANA locally
124125
125126

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,8 @@ The [`managed`](https://cap.cloud.sap/docs/cds/common#aspect-managed) aspect add
101101
The [`Currency`](https://cap.cloud.sap/docs/cds/common#type-currency) definition is a type. It defines an association to a `Currencies` entity. The [`Currencies`](https://cap.cloud.sap/docs/cds/common#entity-sapcommoncurrencies) entity is based on ISO 4217 and uses three-letter alpha codes as keys such as `EUR` or `USD` and provides the possibility to store the corresponding currency symbol such as `€` or `$`.
102102
103103
104-
### Get more information about @sap/cds/common
104+
105+
### Get more information about `@sap/cds/common`
105106
106107
107108
Look at these explained keywords yourself and learn more about it.
@@ -118,7 +119,8 @@ Look at these explained keywords yourself and learn more about it.
118119
119120
120121
121-
### Rewrite the AdminService
122+
123+
### Rewrite the `AdminService`
122124
123125
124126
In the first tutorial, you defined a simple service, called `AdminService`, which directly defined the entity `Products`. As you now have defined the `Products` entity in your domain model, the `AdminService` just needs to expose it. In addition, you defined the `Categories` entity, which should also be part of your service.
Loading
Loading

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,9 @@ From the products service that you created in the previous tutorial, we just wan
4545
-DgroupId=com.sap.cap -DartifactId=bookstore
4646
```
4747
48-
4. To open the bookstore project in a new workspace go to **File** **&rarr;** **Open Workspace**.
48+
4. To open the bookstore project in a new workspace go to **File** **&rarr;** **Open Folder**.
4949
50-
5. Choose **bookstore** from the project list and then **Open**.
50+
5. Choose **bookstore** from the project list and then **OK**.
5151
5252
<!-- border -->![open the bookstore application](open-bookstore.png)
5353
Loading
Loading
Loading
Loading

0 commit comments

Comments
 (0)