3. Add External Data Source

3. Add External Data Source

  1. From the Storyboard, select Add a new external resource.

    3_E2E_BuildCode-1
  2. Select S4HANA_Joule_SalesOrder and then select Add to Project.

    3_E2E_BuildCode-2
  3. Go to Storyboard and check if External Resource updated.

    3_E2E_BuildCode-3
  4. In the Storyboard, select one of the entities under Services and Open in Graphical Modeler.

    3_E2E_BuildCode-4
  5. Go to the service.cds tab and Add Projection.

    • You can drop the new entity anywhere

    3_E2E_BuildCode-5
  6. Select the data entity: S4HANA_Joule_SalesOrder.A_SalesOrder

    • Disable the Enable draft editing option.
    • Disable the <all properties> option.

    3_E2E_BuildCode-6
  7. Select the following eight fields:

    • SalesOrder
    • SalesOrderType
    • SalesOrganization
    • DistributionChannel
    • SoldToParty
    • CreationDate
    • CreatedByUser
    • TotalNetAmount

    3_E2E_BuildCode-7
  8. Select Save by selecting ✓.

    3_E2E_BuildCode-8
  9. You have added the A_SalesOrder data entity to the service.cds file.

    • Note: if you can not see the A_SalesOrder entity you may have to zoom out the view.

    3_E2E_BuildCode-9