Skip to content
This repository has been archived by the owner on Dec 29, 2020. It is now read-only.

SAP-archive/cloud-samples-catalog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Important Notice

This public repository is read-only and no longer maintained.

Samples for the Application Programming Model for SAP Cloud Platform

The following samples give you more hands-on practice with the application programming model for SAP Cloud Platform:

Part 2 - Product Catalog (Reuse Scenario)

The Product Catalog shows a sample business application, developed by reusing the CDS models from Foundation.

The application allows a user to create, delete and modify products of a product catalog.

Technically the sample consists of:

  • a CDS model (find more information here)
  • an automatic Java OData V2 exposure extended by individual business logic (find more information here)
  • a UI based on SAP Fiori elements (find more information here).

This application is only an example and not intended for productive use.

Component Overview

Component overview

Requirements

SAP Web IDE Full-Stack access is needed. For more information, see Open SAP Web IDE.

Development in SAP Cloud Platform Web IDE

Read the getting started tutorial to learn more about working with SAP Cloud Platform Web IDE.

Now clone your fork of this repository (File -> Git -> Clone Repository).

Develop, Build, Deploy

To build and deploy your application or modify it and redeploy, use any of the following options:

  • Build and deploy the DB module by choosing Build from the context menu of the db folder.

  • Build and deploy the Java service by choosing Run -> Run as -> Java application from the context menu of the srv folder. To test the service, click the URL displayed in the Run Console. Use the endpoint of the service clouds.products.CatalogService to call $metadata or CRUD requests.

  • Test the UI by choosing Run -> Run as -> SAP Fiori Launchpad Sandbox from the context menu of the app folder. Click on the app tile to launch the application.

Known Issues

  • The read only field Availability is enabled occasionally when creating a new Product.
  • When running the module "srv" as Java Application the log shows "CfDeployException: Failed to deploy application". In the file "mta.yaml", change all occurrences of "product-catalog-java" to "srv". Repeat build and run.

Support

This project is being maintained. Please log any issues in the GitHub issues tracking system.

There are no new releases planned at this time.

License

Copyright (c) 2018 SAP SE or an SAP affiliate company. All rights reserved. This project is licensed under the Apache Software License, Version 2.0 except as noted otherwise in the LICENSE file.

About

A sample business application for the application programming model for SAP Cloud Platform showcasing a CDS reuse scenario.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published