Extending SAP S/4HANA With SAP Build and Joule
Автор: SAP Developers
Загружено: 2025-04-21
Просмотров: 4483
In this short video we’re going explore building a full stack application with the SAP Cloud Application Programming Model to extend SAP S/4HANA, with the help of Joule in SAP Build. 
To set up SAP Build in your subaccount, follow the instructions here: https://sap.to/60532auYJ
To create a project from the Lobby, use this tutorial here: https://sap.to/60512TplL
** The Prompts Used in this Video
#1 - Generate CAP Data Model
Define 4 data entities: Customers, Products, Purchases and Redemptions. Each customer must have the following fields: name, email, 7-digit customer number, total purchase value, total reward points, total redeemed reward points. All fields for each customer should be integer except name and email that will be stored as string. Each product should have a name, description, and price. Purchases should include the following fields: purchase value, reward points. All fields in Purchases must be integer. Redemptions must have 1 field in integer: redeemed amount. Each purchase and redemption will be associated to a customer. Each purchase will be associated to a product and is called selectedProduct. Use associations instead of compositions.
#2 - Generate CAP Sample Data
Create sample data with meaningful information. Any phone numbers must be 10 digits long. All customer numbers must be 7 digits long and one customer must use the customer number 1200547. No fields may be empty. Total purchase value must be smaller than 10000 not rounded. Both total reward points and total redeemed reward points must not be rounded, must not be identical, and must always sum to one-tenth of the total purchase value for each customer.
#3 - Generate CAP Application Logic
Implement application logic so that reward points of each purchase will be one tenth of the purchase value. Each purchase value will be added to the total purchase value of the related customer. Each reward point will be added to the total reward points of the related customer. Furthermore, deduct the redemption amount from the customer’s total reward points and add that to their total redeemed points.
#4 /cap-app-logic  #srv/code/a_salesorder-logic.js  
Create an event handler that connects to the external service `my_New_Project` using `cds connect to`. The handler should retrieve the `A_SalesOrder` entity from this external service. If the `request.query.SELECT` object exists, modify the query to sort the results by the `CreationDate` field in descending order and limit the results to the top 300 records. Ensure that the query modifications are applied directly to the `request.query` object, and use the modified query to retrieve the data from the external service.
#5 - Create UI Applications
Please create a new Fiori elements app with list report object page floorplan, that starts with a list of all Customers and allows me to drill down into the details of a selected customer. All value help on Customers Sold-To that uses the entity A_SalesOrders
For more information and learning materials on SAP Build:
SAP Build: https://sap.to/60542auYK
SAP Build Documentation on the SAP Help Portal: https://sap.to/60552auYz
SAP Build Developer Tutorials: https://sap.to/60562auYM
Mission on onboarding to SAP Build: https://sap.to/60582auYO
Service entry in the discovery center: https://sap.to/60592auYP
SAP Learning content for SAP Build: https://sap.to/60522auYr
SAP Build Code Sample: https://sap.to/60542auYp                
Доступные форматы для скачивания:
Скачать видео mp4
- 
                                
Информация по загрузке: