Skip to content

Latest commit

 

History

History

ex1.5

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

SAP Build Code and Joule Copilot

In this lesson, we will connect to an S4/HANA system to retrieve the product related data. To simplify the setup, we will be using a sandbox S/4 HANA instance available through the SAP Business Accelerator Hub, leveraging the Product Master (A2X)/Basic Text API.

Create a Destination for the Data Resource

We'll connect to this API through a BTP destination, following the steps below:

  1. Download the destination definition to your local drive. This is a text file that contains the attributes to create the destination. S4HANA_Joule_Product Destination. After clicking the link, select the Download raw file button.

  1. Access BTP Destinations in the subaccount. Keep your Build Code tab open, you'll return here.

  • Enter the destination name S4HANA_Joule_Product and click Save to save the new destination.

Add External Data Resource

We'll connect to the new destination in SAP Build Code through the Service Center.

  1. In Service Center go to SAP System and find the BTP destination S4HANA_Joule_Product (S/4 Product).

  2. Select Add to CAP Project

  1. Go to Storyboard and check if the External Resource got updated.

Note: It may take a short time to update!

  1. Go to service.cds tab and Add Entity

    • You can drop the new entity anywhere

  1. Select the data entity: S4HANA_Joule_Product.A_ProductBasicText

    • Disable the Enable draft editing option.
  2. Select Save