Skip to content

Change to "scenario" #22896

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
Mar 2, 2023
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 @@ -18,8 +18,8 @@ author_profile: https://github.com/julieplummer20
- Access to the Fiori app **Health Monitoring**

## You will learn
- How to configure outbound communication from your SAP BTP ABAP Environment using the communication arrangement **`SAP_COM_0276`**
- How to configure communication from your SAP BTP ABAP Environment instance to the SAP Cloud ALM service using the communication arrangement **`SAP_COM_0527`**
- How to configure outbound communication from your SAP BTP ABAP Environment using the communication scenario **`SAP_COM_0276`**
- How to configure communication from your SAP BTP ABAP Environment instance to the SAP Cloud ALM service using the communication scenario **`SAP_COM_0527`**
- How to configure the use cases you want for SAP Cloud ALM


Expand All @@ -33,8 +33,11 @@ For more information, see SAP Help Portal: [Integration in Central Monitoring an

Throughout this tutorial, objects name include a prefix, such as **`Zxx`** or suffix, such as **`XXX`**. Always replace this with your group number or initials.

<!-- border -->![step0-overview](step0-overview.png)
<!-- border -->![step0-overview2](step0-overview2.png)
<!-- border -->
![step0-overview](step0-overview.png)

<!-- border -->
![step0-overview2](step0-overview2.png)

---

Expand All @@ -44,78 +47,95 @@ In the BTP Cockpit, you need to create a destination service in your BTP subacco

1. Navigate to your **Space**, choose **Instances**, then choose **Create**.

<!-- border -->![step1a-navigate-to-space-etc](step1a-navigate-to-space-etc.png)
<!-- border -->
![step1a-navigate-to-space-etc](step1a-navigate-to-space-etc.png)

2. Enter the following, then choose **Create**.

- Service: **Destination**
- Plan: **Lite**
- Instance Name: e.g. **`DST`**

<!-- border -->![step1a-create-destinations-service](step1a-create-destinations-service.png)
<!-- border -->
![step1a-create-destinations-service](step1a-create-destinations-service.png)

3. Create a service key for your SAP Cloud ALM service and download it; you will need it later - that is, the SAP Cloud ALM service mentioned in the prerequisites above.

<!-- border -->
![step1c-calm-service-already-created](step1c-calm-service-already-created.png)

3. Create a service key for your SAP Cloud ALM service and download it; you will need it later.

4. Create a new service key for your SAP BTP ABAP Environment and download it; you will need it later.

<!-- border -->![step1c-create-service-key-for-steampunk](step1c-create-service-key-for-steampunk.png)
<!-- border -->
![step1c-create-service-key-for-steampunk](step1c-create-service-key-for-steampunk.png)


### Set up SAP Cloud ALM service
### Configure destination

In the BTP Cockpit, you need to create a destination to SAP Cloud ALM if you have not already done so.

1. Navigate to your **Subaccount** and choose **Destinations > New Destination**.

<!-- border -->![step1c-navigate-to-destinations](step1c-navigate-to-destinations.png)
<!-- border -->
![step1c-navigate-to-destinations](step1c-navigate-to-destinations.png)

2. Configure the destination to your SAP Cloud ALM service using the credentials in the service key (from step 1.3).

<!-- border -->![step1b-destination-to-calm](step1b-destination-to-calm.png)

3. Choose scenario **`SAP_COM_0276`**, paste the service key of your destination service (from step 1.4), then choose **Create**.

<!-- border -->![step2c-comm-arr-create](step2c-comm-arr-create.png)

<!-- border -->
![step1b-destination-to-calm](step1b-destination-to-calm.png)


### Create Communication Arrangement for Destination Service Integration (SAP_COM_0276)

1. Logon to your SAP BTP ABAP Environment as Administrator and choose the app **Communication Arrangements**.

<!-- border -->![step2a-comm-arr](step2a-comm-arr.png)
<!-- border -->
![step2a-comm-arr](step2a-comm-arr.png)

2. Choose **New**.

<!-- border -->![step2b-comm-arr-new](step2b-comm-arr-new.png)
<!-- border -->
![step2b-comm-arr-new](step2b-comm-arr-new.png)

3. Choose scenario **`SAP_COM_0276`**, paste the service key of your destination service (from step 1.4), then choose **Create**.

<!-- border -->
![step2c-comm-arr-create](step2c-comm-arr-create.png)



### Create Communication Arrangement for Application Monitoring (SAP_COM_0527)

1. Again, choose **New**, then choose **Create**.

<!-- border -->![step3a-comm-arr-create-SAP_COM_0527](step3a-comm-arr-create-SAP_COM_0527.png)
<!-- border -->
![step3a-comm-arr-create-SAP_COM_0527](step3a-comm-arr-create-SAP_COM_0527.png)

2. Create a New **Communication System**.

<!-- border -->![step3b-comm-system-new-cutout](step3b-comm-system-new-cutout.png)
<!-- border -->
![step3b-comm-system-new-cutout](step3b-comm-system-new-cutout.png)

3. From the dropdown list, choose the **Name** for your SAP Cloud ALM service, that you configured in step 1.3 - in this example, **`ABAPK8S_CALM`**.
3. From the dropdown list, choose the **Name** for your SAP Cloud ALM service, that you configured in step 3.2.

<!-- border -->![step3c-comm-system-name](step3c-comm-system-name.png)
<!-- border -->
![step3c-comm-system-name](step3c-comm-system-name.png)

4. Choose the use cases you want to enable.

<!-- border -->![step3d-configure-use-cases](step3d-configure-use-cases.png)
<!-- border -->
![step3d-configure-use-cases](step3d-configure-use-cases.png)

5. Configure the job execution details as follows and choose **Save**, then save the communication arrangement.

<!-- border -->![step3e-configure-job-exec-details](step3e-configure-job-exec-details.png)
<!-- border -->
![step3e-configure-job-exec-details](step3e-configure-job-exec-details.png)

Your SAP BTP ABAP environment is registered in your SAP Cloud ALM instance. However, it could take **up to one hour** before the first monitoring data is pushed to your service.

<!-- border -->![step3e-result-calm-health-monitoring](step3e-result-calm-health-monitoring.png)
<!-- border -->
![step3e-result-calm-health-monitoring](step3e-result-calm-health-monitoring.png)


### Test yourself
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.
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.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ author_profile: https://github.com/julieplummer20

---

# Implement a Business Add-in (`BAdI`) To Check a Purchase Requisition
# Implement a Business Add-in (`BAdI`) To Check a Purchase Requisition
<!-- description --> Define and implement a developer extension (`BAdI`), which performs checks during creation of a purchase requisition item.

## Prerequisites
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
parser: v2
title: Create and Debug a BAdI Implementation in ABAP Development Tools (ADT)
description: Create and Debug a BAdI Implementation in S/4HANA Cloud ABAP Environment
title: Create and Debug a BAdI Implementation in S/4HANA Cloud ABAP Environment
description: Create and Debug a BAdI Implementation in ABAP Development Tools (ADT)
auto_validation: true
time: 20
tags: [ tutorial>intermediate, programming-tool>abap-development, software-product>sap-business-technology-platform, software-product>sap-btp--abap-environment]
Expand All @@ -14,15 +14,14 @@ author_profile: https://github.com/julieplummer20
## Prerequisites
- You have a license for SAP S/4HANA Cloud; have a developer user in this system and have created an ABAP Cloud Project <!--LINK TO TUT OR SIMILAR -->
- You have installed [SAP ABAP Development Tools (ADT), latest version](https://tools.hana.ondemand.com/#abap), and have created an ABAP Cloud project for your SAP S/4HANA Cloud System in it<!--LINK TO TUT OR SIMILAR-->
- You are familiar with the concept of extensions to the SAP standard and with `BAdIs` in `ADT` in particular. If not, work through the **Tutorial**: [Implement a Business Add-in (`BAdI`) To Check a Purchase Requisition]
- You are familiar with the concept of extensions to the SAP standard and with `BAdIs` in `ADT` in particular. If not, work through the **Tutorial**: [Implement a Business Add-in (`BAdI`) To Check a Purchase Requisition](tutorials/abap-s4hanacloud-procurement-purchasereq-checks). This tutorial also contains links to more information about `BAdIs`
- You have created a `BAdI` enhancement implementation **`ZEI_PR_ITEM`**.
(abap-s4hanacloud-procurement-purchasereq-checks), steps 1-4
- You have opened the Fiori app **Create Purchase Requisition**
- You are familiar with the concept of debugging ABAP in ADT. If not, see the links below
- You have assigned the following roles to your user: `SAP_BR_DEVELOPER`, `SAP_BR_PURCHASER`



## You will learn

- How to create and implement a simple `BAdI`
Expand Down Expand Up @@ -288,11 +287,8 @@ The ABAP Debugger stops as soon as the value of the variable is changed after a


### More information
- Start here: SAP blog post: [How to Extend SAP Standard Using ADT](https://blogs.sap.com/2020/08/05/how-to-extend-sap-standard-using-adt/)
- Concepts: SAP Help Portal: Enhancement Technologies: [Business Add-Ins (`BAdIs`)](https://help.sap.com/docs/SAP_NETWEAVER_750/46a2cfc13d25463b8b9a3d2a3c3ba0d9/8ff2e540f8648431e10000000a1550b0.html?locale=en-US)
- Tasks: SAP Help Portal: ABAP Development User Guide: [Working with Business Add-Ins (`BAdIs`)](https://help.sap.com/viewer/5371047f1273405bb46725a417f95433/Cloud/en-US/04a1d9415efd4e4fbc58534c99c3a0d3.html)
- SAP Help Portal: Sourcing and Procurement: [Adaptation of App Behavior (Overview and List of Available `BAdIs`)](https://help.sap.com/docs/SAP_S4HANA_CLOUD/0e602d466b99490187fcbb30d1dc897c/259a396e6bdb4d08b130049880a3920f.html?locale=en-US)
- SAP Help Portal: [SAP Cloud Platform Concepts: ABAP Debugger](https://help.sap.com/docs/BTP/5371047f1273405bb46725a417f95433/4ec365a66e391014adc9fffe4e204223.html)
- SAP Help Portal: [SAP Cloud Platform Tasks: Debugging ABAP Code in ADT](https://help.sap.com/docs/BTP/5371047f1273405bb46725a417f95433/4ec33a996e391014adc9fffe4e204223.html)
- You can also see a demo in this video: [Running ABAP Cross Trace with a `BAdI`](https://video.sap.com/media/t/1_4aps5ak1)

---