Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Abap build 2305 #4

Open
wants to merge 254 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
254 commits
Select commit Hold shift + click to select a range
c6ede72
ex 2 sample data
timlizzy Apr 30, 2022
ff45f87
ex 3 service
timlizzy Apr 30, 2022
f9c50a1
ex 4 FE UI
timlizzy Apr 30, 2022
21e6643
ex4 new FE UI
timlizzy May 1, 2022
4c1cc06
ex5 preview
timlizzy May 1, 2022
8b6d0ce
ex6 deployment
timlizzy May 1, 2022
296184b
readme
timlizzy May 1, 2022
1ae54b0
summary
timlizzy May 1, 2022
c0ba499
summary
timlizzy May 1, 2022
19820e9
Update README.md
praharshanap May 2, 2022
0a3050a
ex1 enhancement
timlizzy May 2, 2022
bb4e8df
merge
timlizzy May 2, 2022
994dd4c
ex1 enhancement
timlizzy May 2, 2022
59eac5c
ex2 enhancement
timlizzy May 2, 2022
4ec276d
ex3 enhancement
timlizzy May 2, 2022
5161b0e
code of conduct
timlizzy Jun 1, 2022
e6675e3
code of conduct
timlizzy Jun 1, 2022
98ddd16
Merge branch 'main' into abap_build_2305
timlizzy Apr 22, 2023
e54171b
readme
timlizzy Apr 22, 2023
d4f3808
Merge branch 'abap_build_2305' of https://github.com/SAP-samples/low-…
timlizzy Apr 22, 2023
fb545a7
readme ABAP Build
timlizzy Apr 22, 2023
b310fc1
next one
timlizzy Apr 22, 2023
9f232ae
exc 0 prerequisites
timlizzy Apr 22, 2023
63e5961
ABAP and Build WS copy
timlizzy Apr 23, 2023
8c60440
ABAP and Build WS copy
timlizzy Apr 23, 2023
f1a4b7f
change links
timlizzy Apr 23, 2023
b8cecee
change links
timlizzy Apr 23, 2023
50cf33c
change links
timlizzy Apr 23, 2023
e4ba9ff
change links
timlizzy Apr 23, 2023
0c3f649
change links
timlizzy Apr 23, 2023
e0ecf65
change links
timlizzy Apr 23, 2023
f39e856
change links
timlizzy Apr 23, 2023
2cf4aad
change links
timlizzy Apr 23, 2023
b100253
change links
timlizzy Apr 23, 2023
48aa772
change links
timlizzy Apr 23, 2023
542f296
still links
timlizzy Apr 28, 2023
f28add5
still links
timlizzy Apr 28, 2023
70b8a87
links
timlizzy Apr 28, 2023
ca99d2d
links
timlizzy Apr 28, 2023
b8c1939
links
timlizzy Apr 28, 2023
5bdce52
links
timlizzy Apr 28, 2023
78cae70
links
timlizzy Apr 28, 2023
dadffd8
links
timlizzy Apr 28, 2023
2be9785
Creation of ABAP project
timlizzy Apr 28, 2023
f25a8d6
Creation of ABAP project
timlizzy Apr 28, 2023
e092ea9
Creation of ABAP project
timlizzy Apr 28, 2023
4ee184e
ABAP exercise 1
timlizzy Apr 28, 2023
7675898
ABAP exercise 1
timlizzy Apr 28, 2023
dc4eefb
ABAP exercise 1
timlizzy Apr 28, 2023
a1384b8
ABAP exercise 1
timlizzy Apr 28, 2023
4d9b37c
ABAP exercise 1
timlizzy Apr 28, 2023
7c4e221
ABAP exercise 1
timlizzy Apr 28, 2023
86e94e6
ABAP exercise 1
timlizzy Apr 29, 2023
d943840
ABAP exercise 1
timlizzy Apr 29, 2023
f7bd2ae
ABAP exercise 1
timlizzy Apr 29, 2023
f8a878e
ABAP exercise 1
timlizzy Apr 29, 2023
42c7963
ABAP exercise 1
timlizzy Apr 29, 2023
e351e8e
ABAP exercise 1
timlizzy Apr 29, 2023
918cdc4
ABAP exercise 1
timlizzy Apr 30, 2023
010ef43
ABAP exercise 1
timlizzy Apr 30, 2023
c0b9c31
ABAP exercise 1
timlizzy Apr 30, 2023
babdf3e
ABAP exercise 1
timlizzy Apr 30, 2023
9c01953
ABAP exercise 1
timlizzy Apr 30, 2023
19ac0f7
ABAP exercise 1
timlizzy Apr 30, 2023
c55e155
ABAP exercise 1
timlizzy Apr 30, 2023
da7e36b
ABAP exercise 21
timlizzy Apr 30, 2023
f4151f7
ABAP exercise 21
timlizzy Apr 30, 2023
0ed4baf
ABAP exercise 2
timlizzy Apr 30, 2023
dcb5182
ABAP exercise 2
timlizzy Apr 30, 2023
e553018
ABAP exercise 2
timlizzy Apr 30, 2023
84e56e2
ABAP exercise 2
timlizzy Apr 30, 2023
2c6cf94
ABAP exercise 3
timlizzy Apr 30, 2023
5bb4d3a
ABAP exercise 3
timlizzy Apr 30, 2023
58c8e4b
ABAP exercise 3
timlizzy Apr 30, 2023
e32db77
ABAP exercise 3
timlizzy Apr 30, 2023
0a0dc34
ABAP exercise 3
timlizzy Apr 30, 2023
f5ef56b
ABAP exercise 3
timlizzy Apr 30, 2023
ae8fdaf
ABAP exercise 3
timlizzy Apr 30, 2023
6dea1f5
ABAP exercise 3
timlizzy Apr 30, 2023
f5c292f
ABAP exercise 3
timlizzy Apr 30, 2023
013ad37
ABAP exercise 3
timlizzy Apr 30, 2023
e55b5e9
ABAP exercise 3
timlizzy Apr 30, 2023
70e4fac
ABAP exercise 3
timlizzy Apr 30, 2023
4c6b160
ABAP exercise 3
timlizzy Apr 30, 2023
36a4b56
ABAP exercise 3
timlizzy Apr 30, 2023
92102aa
ABAP exercise 3
timlizzy Apr 30, 2023
6d8176c
ABAP exercise 3
timlizzy Apr 30, 2023
1f5c102
ABAP exercise 3
timlizzy Apr 30, 2023
d0eee06
ABAP exercise 3
timlizzy Apr 30, 2023
ca6b9b7
ABAP exercise 3
timlizzy Apr 30, 2023
6eea9d8
ABAP exercise 3
timlizzy Apr 30, 2023
8af2e32
ABAP exercise 3
timlizzy Apr 30, 2023
c6d43ca
ABAP exercise 3
timlizzy Apr 30, 2023
f776701
ABAP exercise 4
timlizzy Apr 30, 2023
3526379
ABAP exercise 4
timlizzy Apr 30, 2023
736c17c
ABAP exercise 4
timlizzy Apr 30, 2023
b76c118
ABAP exercise 4
timlizzy Apr 30, 2023
e737f96
ABAP exercise 4
timlizzy Apr 30, 2023
45f2154
ABAP exercise 4
timlizzy Apr 30, 2023
c1c680b
ABAP exercise 4
timlizzy Apr 30, 2023
2c77c02
ABAP exercise 4
timlizzy Apr 30, 2023
02fffb1
ABAP exercise 4
timlizzy Apr 30, 2023
d714c0a
ABAP exercise 4
timlizzy Apr 30, 2023
1dc549e
ABAP exercise 4
timlizzy Apr 30, 2023
a202d10
ABAP exercise 4
timlizzy Apr 30, 2023
0dd5f1d
ABAP exercise 4
timlizzy Apr 30, 2023
ea44169
ABAP exercise 4
timlizzy Apr 30, 2023
e82d036
ABAP exercise 4
timlizzy Apr 30, 2023
2c030e5
ABAP exercise 4
timlizzy Apr 30, 2023
852d4e8
ABAP exercise 4
timlizzy Apr 30, 2023
96863ea
ABAP exercise 0
timlizzy May 1, 2023
68996ad
Build
timlizzy May 1, 2023
6ea688f
Build
timlizzy May 1, 2023
a3b5cf3
Build
timlizzy May 1, 2023
4eee80a
Build
timlizzy May 1, 2023
6411e3e
Build
timlizzy May 1, 2023
5cadf85
Build
timlizzy May 1, 2023
67cfd71
Build
timlizzy May 1, 2023
93794a0
Build
timlizzy May 1, 2023
52eeab5
Build
timlizzy May 1, 2023
f8aeabe
Build
timlizzy May 1, 2023
8113cb6
readme
timlizzy May 1, 2023
eac720d
Build
timlizzy May 1, 2023
197b5d3
Build
timlizzy May 1, 2023
d7f9489
Build
timlizzy May 1, 2023
a9b1d19
Build
timlizzy May 1, 2023
d30258f
Build
timlizzy May 1, 2023
dc217c2
New ABAP
timlizzy May 7, 2023
5e20a7d
New ABAP
timlizzy May 7, 2023
25f5211
New ABAP
timlizzy May 7, 2023
426809e
New ABAP
timlizzy May 7, 2023
990eaf7
New ABAP
timlizzy May 7, 2023
d68aed4
New ABAP
timlizzy May 7, 2023
728fc49
New ABAP
timlizzy May 7, 2023
56618e9
New ABAP
timlizzy May 7, 2023
3117119
New ABAP
timlizzy May 7, 2023
a7fef8a
New ABAP
timlizzy May 7, 2023
6ddc343
New ABAP
timlizzy May 7, 2023
2ad1af4
New ABAP
timlizzy May 7, 2023
3730230
New ABAP
timlizzy May 7, 2023
a3054fb
New ABAP
timlizzy May 7, 2023
d2637dd
New ABAP
timlizzy May 7, 2023
5d6c976
New ABAP
timlizzy May 7, 2023
7f020ad
New ABAP
timlizzy May 7, 2023
79e5176
New ABAP
timlizzy May 7, 2023
90cf4ef
New ABAP
timlizzy May 7, 2023
796e83a
New ABAP
timlizzy May 7, 2023
936168b
New ABAP
timlizzy May 7, 2023
038afac
New ABAP
timlizzy May 7, 2023
b54b504
New ABAP
timlizzy May 7, 2023
8dad8f3
New ABAP
timlizzy May 7, 2023
10db410
New ABAP
timlizzy May 7, 2023
c8eb96b
New ABAP
timlizzy May 7, 2023
6fa9d72
New ABAP
timlizzy May 7, 2023
8266827
New ABAP
timlizzy May 7, 2023
9632d10
New ABAP
timlizzy May 7, 2023
afe8122
New ABAP
timlizzy May 7, 2023
484451c
New ABAP
timlizzy May 7, 2023
d9cc785
New ABAP
timlizzy May 7, 2023
c3aa347
Actions
timlizzy May 7, 2023
244f5a8
Actions
timlizzy May 7, 2023
ba7fd6c
Actions
timlizzy May 7, 2023
fc92ad2
Actions
timlizzy May 7, 2023
448f342
Actions
timlizzy May 7, 2023
417931b
Actions
timlizzy May 7, 2023
b59efc9
Actions
timlizzy May 7, 2023
6e5d4fc
Actions
timlizzy May 7, 2023
01b895e
Actions
timlizzy May 7, 2023
cf173af
Actions
timlizzy May 7, 2023
e8fc853
Actions
timlizzy May 7, 2023
45db489
Actions
timlizzy May 7, 2023
722f2a8
Actions
timlizzy May 7, 2023
738ce4f
Actions
timlizzy May 7, 2023
4d049d7
Actions
timlizzy May 7, 2023
2261666
Actions
timlizzy May 7, 2023
fea6fd5
Actions
timlizzy May 7, 2023
a361b00
Actions
timlizzy May 7, 2023
633677f
Actions
timlizzy May 8, 2023
60e009e
Actions
timlizzy May 8, 2023
9f66a6c
links
timlizzy May 8, 2023
c5ab2a0
links
timlizzy May 8, 2023
ca512b2
determination
timlizzy May 8, 2023
4ad9936
process
timlizzy May 8, 2023
8d6d25f
process
timlizzy May 8, 2023
91b2b93
process
timlizzy May 8, 2023
e0a9bde
actions
timlizzy May 9, 2023
67c0ca2
Process
timlizzy May 9, 2023
2e79184
Process
timlizzy May 9, 2023
dec3433
Process
timlizzy May 9, 2023
e2f21a6
Process
timlizzy May 9, 2023
572684d
Process
timlizzy May 9, 2023
3a44bf9
Process
timlizzy May 9, 2023
90b81f6
Process
timlizzy May 9, 2023
4de425b
Process
timlizzy May 9, 2023
a8570fc
Process
timlizzy May 9, 2023
7582743
Process
timlizzy May 9, 2023
812699d
Process
timlizzy May 9, 2023
37ebd8e
Process
timlizzy May 9, 2023
bc969d5
Clean Up
timlizzy May 9, 2023
6f17076
Clean Up ex2
timlizzy May 9, 2023
3a4fa9f
Update README.md
AnneKeller01 May 9, 2023
8905c73
ABAP + PR
timlizzy May 9, 2023
8263552
Merge branch 'abap_build_2305' of https://github.com/SAP-samples/low-…
timlizzy May 9, 2023
0a7ecf4
Clean Up ex2
timlizzy May 9, 2023
7542d3f
Clean Up ex2
timlizzy May 9, 2023
f997d55
Clean Up ex2
timlizzy May 9, 2023
2d0160b
Clean Up ex2
timlizzy May 9, 2023
cb3b094
Clean Up ex2
timlizzy May 9, 2023
6bfa255
Clean Up ex2
timlizzy May 9, 2023
1ddb16d
Clean Up ex2
timlizzy May 9, 2023
16b3d96
Clean Up ex2
timlizzy May 9, 2023
4cb144d
Clean Up ex2
timlizzy May 9, 2023
297d9b2
Clean Up ex2
timlizzy May 9, 2023
998b8c2
Clean Up ex2
timlizzy May 9, 2023
63040b8
Clean Up ex2
timlizzy May 9, 2023
a1dcd0a
Clean Up ex2
timlizzy May 9, 2023
9005173
Clean Up ex2
timlizzy May 9, 2023
1c8f0b4
ABAP Web API
timlizzy May 9, 2023
84829d2
ABAP Web API
timlizzy May 9, 2023
731b072
ABAP Web API
timlizzy May 9, 2023
7233502
ABAP Web API
timlizzy May 9, 2023
5d7f7be
ABAP Web API
timlizzy May 9, 2023
cfc8425
ABAP Web API
timlizzy May 9, 2023
8f8625d
new action
timlizzy May 9, 2023
8c3f735
new action
timlizzy May 9, 2023
33e1313
new action
timlizzy May 9, 2023
fd54346
new action
timlizzy May 9, 2023
702f641
new action
timlizzy May 9, 2023
20146ee
new action
timlizzy May 9, 2023
079d677
new action
timlizzy May 9, 2023
31cb8da
Update README.md
AnneKeller01 May 10, 2023
653eb24
updated code snippets
AnneKeller01 May 11, 2023
8392061
Fixed Code Snippet
AnneKeller01 May 11, 2023
ac6905c
fix
AnneKeller01 May 11, 2023
fe7eefe
4.1
AnneKeller01 May 11, 2023
27d736b
consistency
AnneKeller01 May 11, 2023
f1ad830
.
AnneKeller01 May 11, 2023
933af55
fix
AnneKeller01 May 11, 2023
e8d6223
typo
AnneKeller01 May 11, 2023
6bb6c92
minor changes
AnneKeller01 May 14, 2023
768e461
small fix
AnneKeller01 May 15, 2023
54228e5
typo
AnneKeller01 May 15, 2023
a6f6b75
typo
AnneKeller01 May 15, 2023
ef9b904
abap cleanup
timlizzy May 15, 2023
e89fcab
pwd
AnneKeller01 May 15, 2023
65fcc6b
on save
AnneKeller01 May 15, 2023
69c9814
screenshots
AnneKeller01 Jun 1, 2023
b962909
Update 312_define_determinations_1.png
AnneKeller01 Jun 1, 2023
e4690f9
Update 410_define_determinations.png
AnneKeller01 Jun 1, 2023
358350b
define determinations
AnneKeller01 Jun 1, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
Binary file added 130_create_a_new_abap_project.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 140_create_a_new_abap_project.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 99_100_add_zlocal_to_favorites.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
39 changes: 26 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,26 +1,39 @@
[![REUSE status](https://api.reuse.software/badge/github.com/SAP-samples/low-code-applications)](https://api.reuse.software/info/github.com/SAP-samples/low-code-applications)

# Hands On Projects For Low Code Application Development
# Create SAP S/4HANA Extensions Using ABAP Cloud and SAP Build

## Description

This repository contains descriptions for hands on projects on low code development using SAP tools.
This repository contains the material for the workshop "Create SAP S/4HANA Extensions Using ABAP Cloud and SAP Build".
We will create a new service using the ABAP RESTful Application Programming Model (RAP) in an on premise SAP S/4HANA system and then create a process using SAP Build on the SAP Business Technology Platform (BTP).

## Overview

This session covers the basic app development steps using the ABAP Development Tools (ADT) to create a new OData service based on the ABAP RESTful Application Programming Model (RAP) in an on premise SAP S/4HANA system. This service will then be used in a new process that will be created using SAP Build that runs on the SAP Business Technology Platfrom (BTP). You will see how professional developers code this service in ABAP and then a citizen developer can create the process in a visual way without any coding skills in SAP Build.

## The use case



## Requirements

The prerequisites if not otherwise noted are normally just a browser ( preferably Chrome ) with Internet access
To carry out the exercises of this repository, you need to
- install the ABAP Development Tools (ADT) for the ABAP development parts
- have a browser ready, preferably Google Chrome, to access the SAP Build

The users for the development environment during the course are email addresses which are provided to you by the hosts.

## Contents
Go to [Getting Started - Preparation](exercises/ex0/README.md) to find out the installation details, URLs, then start with the first exercise.

- [Accelerate Application Development with Low-Code in the SAP Business Application Studio](https://github.com/SAP-samples/low-code-applications/tree/bas_capex_2204) based on the release 2204
## Exercises

## How to obtain support
[Create an issue](https://github.com/SAP-samples/low-code-applications/issues) in this repository if you find a bug or have questions about the content.
- [Getting Started - Preparation](exercises/ex0/README.md)
- [Part 1 - ABAP ](exercises/rap/README.md)
- [Part 2 - SAP Build ](exercises/build/exercises/ex1/README.md)

Start the exercises [here](exercises/rap/exercises/ex1/README.md).

For additional support, [ask a question in SAP Community](https://answers.sap.com/questions/ask.html).
## How to obtain support!

## Contributing
If you wish to contribute code, offer fixes or improvements, please send a pull request. Due to legal reasons, contributors will be asked to accept a DCO when they create the first pull request to this project. This happens in an automated fashion during the submission process. SAP uses [the standard DCO text of the Linux Foundation](https://developercertificate.org/).
Support for the content in this repository is available during the actual time of the session by the hosts.

## Contributing
If you want to contribute, please check the [CONTRIBUTING.md](CONTRIBUTING.md) documentation for contribution guidelines.
Expand All @@ -30,4 +43,4 @@ If you want to contribute, please check the [CONTRIBUTING.md](CONTRIBUTING.md) d
SAP adopts the Contributor's Covenant 2.0 across our open source projects to ensure a welcoming and open culture for everyone involved ([Code of Conduct](CODE_OF_CONDUCT.md)).

## License
Copyright (c) 2022 SAP SE or an SAP affiliate company. All rights reserved. This project is licensed under the Apache Software License, version 2.0 except as noted otherwise in the [LICENSE](LICENSE) file.
Copyright (c) 2023 SAP SE or an SAP affiliate company. All rights reserved. This project is licensed under the Apache Software License, version 2.0 except as noted otherwise in the [LICENSE](LICENSES/Apache-2.0.txt) file.
153 changes: 153 additions & 0 deletions exercises/build/exercises/ex1/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,153 @@
# Exercise 1: Create Actions in SAP Build to access the Onlineshop API

From this exercise on, we will switch to SAP's Business Technology Platform (BTP) on which SAP's solution for citizen developers, SAP Build run.

In this exercise we will create Actions in SAP Build that access the Onlineshop API on S/4HANA from the previous chapter. There will be 2 actions, one to read all the onlineshop entries and another one that creates a new onlineshop entry.

To create such Actions we need to prepare 2 things first:
- create a destination in BTP to create the secure connectivity from a BTP subaccount to the Onlineshop API on S/4HANA from the previous chapters
- download the OData metadata document of the Onlineshop API from the previous chapter

## Exercise 1.1: Create a Destination in a BTP subaccount to access the Onlineshop API

We will now create the destination in a BTP subaccount to our Onlineshop API in the S/4HANA system from the previous chapter. The destination will ensure secure connectivity.

1. In your ABAP Development Tools under **Business Services** -> **Service Bindings** -> **Z_ONLINESHOP_###** copy the **Service URL**, it should be `/sap/opu/odata4/sap/z_onlineshop_###/srvd_a2x/sap/z_onlineshop_###/0001/` (Make sure you don't use the service binding for the UI but the Web API!)

![serviceurl](images/105.png)

2. In a browser open the [destinations view in the BTP Cockpit](https://emea.cockpit.btp.cloud.sap/cockpit/#/globalaccount/47ae62c5-c35b-48a4-99b1-eee46b5b62bf/subaccount/f65e327c-d9e9-44cd-8d7b-e4e7ea8db474/destinations)

3. Press the `New Destination` button.

4. Fill in the following:

| Porperty | Value |
| :------------- | :------------- |
| Name | Onlineshop_### |
| Type | HTTP |
| Description | Onlineshop_### on S4H |
| URL | http://s4h:443 + the copied Onlineshop URL (e.g. /sap/opu/odata4/sap/z_onlineshop_###/srvd_a2x/sap/z_onlineshop_###/0001/) |
| Proxy Type | OnPremise |
| Authentication | BasicAuthentication |
| Location ID | CALCC |
| User | lowcode### |
| Password | ABAP credentials as provided by your instructor |

5. Then press the `New Property` button and add
`sap.applicationdevelopment.actions.enabled` with value `true`

6. Press the `New Property` button again and add
`sap.processautomation.enabled` with value `true`

![destination](images/100.png)

7. Press `Save`

8. Press `Check Connection`: You should get a pop up that says `Connection to "Onlineshop_###" successful`

## Exercise 1.2: Download the OData metadata document of the Onlineshop API

In this exercise we will download the OData metadata document to a file to later use it for a definiton of an Action for SAP Build.

1. In your ABAP Development Tools you should still have the service binding ( under **Business Services** -> **Service Bindings** -> **Z_ONLINESHOP_###** ) open , this time, click on **Service URL**:

![serviceurl](images/110.png)

2. A browser window opens. The URL will look like this:

https://YY.YYY.YYY.YY:44301/sap/opu/odata4/sap/z_onlineshop_###/srvd_a2x/sap/z_onlineshop_###/0001/?sap-client=100

Delete the `?sap-client=100` at the end and instead add `$metadata`, so the URL looks like this:

https://YY.YYY.YYY.YY:44301/sap/opu/odata4/sap/z_onlineshop_###/srvd_a2x/sap/z_onlineshop_###/0001/$metadata

Press `return` to load the metadata document

4. Right Mouse Click on the browser window and select `View Page Source` and press `Ctrl + A` + `Ctrl + C` (`Command + A` + `Command + C` on Mac)

5. Open a text editor on your computer, paste the copied content using `Ctrl + V` (`Command + V` on Mac) and save the file as `Onlineshop_###_metadata.xml` to a location of your liking on your computer

## Exercise 1.3: Create Actions from the Onlineshop API

1. Open the [lobby](https://lcapteched.eu10.build.cloud.sap/lobby) in the browser with

User: lowcodeuser+0###@gmail.com

PW: XXXXXXX

that is provided by the instructors by the workshop (note this is not the same user as for the ABAP development tools, it is a BTP user)

2. Press `Create`

![lobby](images/150.png)

3. Select `Build an Automated Process`

![lobby](images/155.png)

4. Select `Actions`

![lobby](images/160.png)

5. As Project Name choose `Onlineshop###Action`. Use the `Browse` button to locate the metadata file that you have saved in the previous step on your computer. Press `Create`

![lobby](images/165.png)

6. Expand the entry `onlineshop` and select both, the `POST /onlineshop Add new entry to onlineshop` and the `Get /onlineshop Get entities from onlineshop`. Press `Add`

![lobby](images/170.png)

7. The 2 actions are now visible, select the `POST` one. In the right upper corner press the `Settings` button that looks like a gear wheel.

![lobby](images/180.png)

## Exercise 1.4: Test Actions from the Onlineshop API

1. Switch `Enable CSRF` to `yes` and press `Save`

![lobby](images/185.png)

2. To test the action, select the destination that you have created before `Onlineshop_###`. In the input fields below, write `AS02` for the `product` and a number into the `quantity` field. Press `Test`.

![lobby](images/190.png)

3. The result should look like this:

![lobby](images/195.png)

## Exercise 1.5: Release the Action and Publish to Library

In order to use the action inside SAP Build products like Process Automation, it has to be released first. Releasing means that the current state of the action is stored in an imutable way. Once the project is released, it can be published to library, which means that it is available inside SAP Build products like Process Automation, it can be discovered and used there.

1. In the upper right corner of your action press `Release`

![lobby](images/200.png)

2. Optionally add some release notes and press `Release` on the dialog

![lobby](images/205.png)

3. After you released the action, in the same upper right corner the button has changed to `release to library`, press it

![lobby](images/210.png)

4. Confirm that you want to publish, pressing the button

![lobby](images/215.png)

## Excercise 1.6: Add the Destination to the SAP Build Settings

You have set up a destination in the BTP Cockpit to test our new actions and in the last step made the actions available for usage in SAP Build Process Automation. You now also need to register the destination with SAP Build to be used in a real environment of a process, not just for tests of actions.

1. In the SAP Build choose `Settings` and then `Destinations` in the left pane.

2. Press `New Destination` and search for your destination `Onlineshop_###` where of course `###` is your group ID. Select the destination and press `Add`.

![lobby](images/90.png)

## Summary

You have created 2 actions based on the Onlineshop Service, you built on ABAP Cloud in the previous exercises. You have created a BTP destination to connect to the Online Service and you have tested the actions. You have released the action and published it to a library, so you can use it in the following chapter in a new SAP Build Process Automation. You have also registered the destination for usage in SAP Build.

You can continue with the next exercise - **[Exercise 2: Create a Process in SAP Build Process Automation based on the Onlineshop Service](../ex2/README.md)**
Binary file added exercises/build/exercises/ex1/images/100.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added exercises/build/exercises/ex1/images/105.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added exercises/build/exercises/ex1/images/110.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added exercises/build/exercises/ex1/images/150.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added exercises/build/exercises/ex1/images/155.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added exercises/build/exercises/ex1/images/160.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added exercises/build/exercises/ex1/images/165.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added exercises/build/exercises/ex1/images/170.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added exercises/build/exercises/ex1/images/175.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added exercises/build/exercises/ex1/images/180.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added exercises/build/exercises/ex1/images/185.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added exercises/build/exercises/ex1/images/190.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added exercises/build/exercises/ex1/images/195.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added exercises/build/exercises/ex1/images/200.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added exercises/build/exercises/ex1/images/205.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added exercises/build/exercises/ex1/images/210.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added exercises/build/exercises/ex1/images/215.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added exercises/build/exercises/ex1/images/90.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading