Welcome to the SAP CAP Sales Order repository. This project is a reference implementation using SAP Cloud Application Programming (CAP) model.
The repository contains the following folders and files:
File or Folder | Purpose |
---|---|
app/ |
Contains content for UI frontends. |
db/ |
Contains domain models and data. |
srv/ |
Contains service models and code. |
package.json |
Contains project metadata and configuration. |
readme.md |
This getting started guide. |
_i18n/ |
Contains internationalization files. |
db.sqlite |
SQLite database file. |
To set up and run the project locally, follow these steps:
-
Download or Clone the Repository
git clone https://github.com/wguedex/sap-cap-salesorder.git cd sap-cap-salesorder
-
Install Dependencies
npm install
-
Run the Application
- Open a new terminal and run:
cds watch
- Alternatively, in VS Code, choose: Terminal > Run Task > cds watch
- Open a new terminal and run:
-
Start Adding Content
- You can start by adding a new schema file, for example:
db/schema.cds
.
- You can start by adding a new schema file, for example:
This project includes the following features and functionalities:
-
Project Initialization
- Initial commit to start the project.
- Created persistent entities and loaded mock data.
-
Data and Service Modeling
- Entities:
- Defined various domain entities including
SalesOrder
,SalesOrderItem
, andCustomer
. - Added facets, data points, and selection fields to enrich the data models.
- Included types defined by reference and user-defined types to extend flexibility.
- Defined various domain entities including
- Services:
- Created service definitions to expose the entities.
- Integrated external services to enhance functionality.
- Implemented CRUD operations for entities.
- Added virtual elements to the services for dynamic data handling.
- Included restrictions and assigned default values to ensure data integrity.
- Entities:
-
User Interface and Fiori Elements
- Added an application with Fiori Elements for a standardized and efficient UI.
- Included capabilities, criticality, and communication contacts for enhanced user interaction.
-
Improvements and Additional Features
- Added pictures, search helps, and other visual elements to improve usability.
- Enhanced system capabilities by integrating data points into the rating column and adding restrictions and default values.
The db/
folder contains scripts for setting up the database schema. You can find multiple DDL scripts that define various parts of the database.
For development, you can use the VS Code setup provided in the .vscode
folder.
Project-specific configurations are stored in the following files:
.cdsrc.json
.eslintrc
package.json
To learn more about the SAP CAP model, visit the official documentation.
This project is licensed under the MIT License. See the LICENSE file for more details.