Adding Sample Data

Objectives
After completing this lesson, you will be able to:

After completing this lesson, you will be able to:

  • Add sample data

Add Sample Data

Business Scenario

Your company is planning to develop a set of cloud-based applications based on SAP Cloud Application Programming Model (CAP), and these applications will be deployed to SAP Business Technology Platform (BTP) as extension applications for the SAP Core Back-end Systems.

In this exercise, you will perform the following task: Add sample data to entities.

Once the structure of your application is finished, you can add sample data to the application. You either can use the visual data editor, or insert data using a CSV file.

Note

Note that some of the services that this learning journey links to, can incur costs.

If you are concerned about charges, you can opt to skip the corresponding exercises and watch the simulation instead.

Exercise Options

You can perform this exercise in two ways:

  1. Live Environment – by using the instructions provided below, you can perform the steps in your SAP BTP account.
  2. Platform Simulation – follow the step-by-step instructions within the simulation.
Note
We strongly recommend to perform the steps in the live environment at first.

The following simulation reproduces the full exercise execution:

Task 1: Add sample Data in different Ways

Steps

  1. Add a new data entity and create data for the entity A_BusinessPartner.

    1. Go back to the Home tab of the application.

    2. Find the Sample Data tile.

    3. Choose the + icon to add a new data entity.

    4. In the Add for Entity field, select A_BusinessPartner.

    5. Choose Create.

    6. Choose Add.

    7. The Sample Data Editor opens. Make sure Mock Data is turned off.

    8. In the Number of rows field, add 3. Choose Add.

    9. Add the following data:

      Row 1

      FieldValue
      BusinessPartner3270
      CustomerCustom8027
      SupplierSuppli8594
      BusinessPartnerCategory7
      BusinessPartnerFullNameBusinessPartnerFullName6943

      Row 2

      FieldValue
      BusinessPartner2803
      CustomerCustom3616
      SupplierSuppli7019
      BusinessPartnerCategory6
      BusinessPartnerFullNameBusinessPartnerFullName3220

      Row 3

      FieldValue
      BusinessPartner3510
      CustomerCustom9656
      SupplierSuppli473
      BusinessPartnerCategory7
      BusinessPartnerFullNameBusinessPartnerFullName9727
      Note
      The data is stored automatically.
  2. For the entities Mitigations and Risks it is possible to import predefined sample data.

    1. At first download the CSV file with the required data for Mitigations. You find the file here: https://education.hana.ondemand.com/education/pub/mmcp/group/GR_1C5B25FF9CC48BA3/718A8FCC99228C80.csv?download=1

    2. Rename the downloaded file to RiskManagement-Mitigations.csv

    3. Go back to the Home tab of the application.

    4. Find the Sample Data tile.

    5. Choose the + icon to add a new data entity.

    6. In the Add for Entity field, select Mitigations.

    7. Choose Import.

    8. Choose Add.

    9. Select the downloaded and renamed file.

      Note

      The sample data will automatically be saved for the selected entity.

    10. Download the CSV file with the required data for Risks. You find it here: https://education.hana.ondemand.com/education/pub/mmcp/group/GR_1C5B25FF9CC48BA3/A933D368B6F7B080.csv?download=1

    11. Rename the downloaded file to RiskManagement-Risks.csv

    12. Repeat the steps 3 to 9 (c to i) with Risks.

Save progress to your learning plan by logging in or creating an account

Login or Register