Skip to content

update tutorial issues #18402

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

Merged
merged 5 commits into from
May 9, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
Original file line number Diff line number Diff line change
Expand Up @@ -376,13 +376,9 @@ In this tutorial, wherever XXX appears, use a number (e.g. 000).
[DONE]
[ACCORDION-END]

[ACCORDION-BEGIN [Step 6: ](Implement determination)]
[ACCORDION-BEGIN [Step 6: ](Implement action)]

1. Now you will implement a determination. In your `CLASS lhc_travel IMPLEMENTATION` implement method `set_status_completed`:

>**HINT:** A determination modifies instances of business objects based on trigger conditions. Here, the code updates the relevant data instance of travel by setting the `overall_status` to A (for accepted.)
To avoid authorization checks, you add the suffix `IN LOCAL MODE`.
Determinations must be idempotent – i.e. the result must not differ, even if the determination is executed multiple times for the same key.
1. Now you will implement an action. In your `CLASS lhc_travel IMPLEMENTATION` implement method `set_status_completed`:

```ABAP
********************************************************************************
Expand Down Expand Up @@ -442,7 +438,12 @@ In this tutorial, wherever XXX appears, use a number (e.g. 000).
[DONE]
[ACCORDION-END]

[ACCORDION-BEGIN [Step 7: ](Implement action)]
[ACCORDION-BEGIN [Step 7: ](Implement determination)]

>**HINT:** A determination modifies instances of business objects based on trigger conditions. Here, the code updates the relevant data instance of travel by setting the `overall_status` to A (for accepted.)
To avoid authorization checks, you add the suffix `IN LOCAL MODE`.
Determinations must be idempotent – i.e. the result must not differ, even if the determination is executed multiple times for the same key.

1. Implement method `CalculateTravelKey`:

```ABAP
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -223,13 +223,13 @@ Therefore right-click on your package **`Z_BOOKING_XXX`** and select **New** > *

![Create service definition](servicedef.png)

2. Create a service definition and call it **`Z_I_BOOKING_XXX`**.

![Create service definition](service2.png)
2. Create a service definition and call it **`ZI_BOOKING_XXX`**.

![Create service definition](sbinding.png)

3. Click **Finish** to complete your transport request.

![Create service definition](transport2.png)
![Create service definition](sbinding2.png)

[DONE]
[ACCORDION-END]
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.