Technology Blog Posts by SAP
cancel
Showing results for 
Search instead for 
Did you mean: 
AnuradhaDhingan
Product and Topic Expert
Product and Topic Expert
961

Introduction

  • What if you could translate a business requirement into a functional, full-stack application with a single prompt?
  • How much faster could you deliver value if the foundational code and project scaffolding were generated for you in seconds?

This is the new reality powered by SAP Build Code and its integrated AI copilot, Joule.

As a turn-key environment on the SAP Business Technology Platform, it unifies the entire development lifecycle, from coding to deployment.

This post demonstrates how to build a full-stack SAP CAP application directly from a user story, showcasing how

generative AI is fundamentally reshaping the developer experience.

 

Business Requirement

Build an SAP CAP application based on the requirements in the user story below:

User Story

As a contract administrator, I want to create and manage contracts and ‘parties involved’ information in the system,

so that I can effectively track and handle legal agreements and ‘parties involved’ interactions.

Contracts can cover a vast range of agreements, such as sales contracts, service agreements and employment contracts.

Party involved: A ‘party involved’ is an individual, organization, or entity that purchases goods, products, or services from another party,

typically a business or seller.

Common attributes of a contract might include:

  1. Contract ID: A unique identifier for the contract.
  2. Party involved Identification Number: A unique identification number for the party involved.
  3. Contract Type: The type of contract (e.g. sales, service, employment).
  4. Start Date: The date on which the contract becomes valid.
  5. End Date: The date on which the contract expires (if applicable).
  6. Status: The current status of the contract (draft, active, expired, terminated, etc.)

A typical ‘party involved’ has the following attributes:

  1. Party involved Identification Number
  2. Party involved Name: It refers to the given name of a person or entity, or a label by which they are addressed or identified.
  3. Party involved Address: It refers to a physical location where an individual, business, or entity is situated or can be reached.
  4. Party involved Contact Information

Acceptance Criteria

Scenario 1: List All Contracts

Given I am logged into the contract management system, when I launch the SAP Fiori application to maintain contracts,

then I should be able to view the list of all the contracts in a list without pressing the GO button.

The list of all the contracts should have : Contract ID, Party involved Identification Number, Contract Type and Start Date. 

The list of filters should include Contract Type, Contract Status and Start Date.

Scenario 2: View Contract Details 

Given I am logged into the contract management system, when I select a specific contract from the list of SAP Fiori application,

then I should be able to view the contract details and parties involved information.

 

Joule's Generative AI-based SAP CAP App Development

Prerequisites

1. Create a New Project using SAP Build Lobby

Create a ProjectCreate a Project

 

Click the Application TileClick the Application Tile

Full-StackFull-Stack

Full-Stack Node.JSFull-Stack Node.JS

Contract ManagementContract Management

Contract ManagementContract Management

Project CreatedProject Created

2. Build a Full-Stack CAP Application via Prompt

Click the created project to open it in SAP Business Application Studio

Open Joule From the Activity Bar and  select the ’/cap-gen-app` slash command

Generate a CAP ApplicationGenerate a CAP Application

Prompt the user story description(refer to Business Requirement section above) to Joule and click send.

Joule tackles complex tasks by breaking them into steps, each with a suggested prompt.

Diffrerent StepsDiffrerent Steps

To simplify the process and provide full context, replace the content of each step with the complete user story prompt.

Then, save and run to generate each step's artifacts.

Accept the Code.

Accept the CodeAccept the Code

Generated ArtifactsGenerated Artifacts

3. Add UI to the Application

Create a new Fiori elements Application.

Fiori Elements ApplicationFiori Elements Application

 

3. Preview the Application

Click run to preview the Application.

Run the ApplicationRun the Application

The application’s preview is displayed.

Application PreviewApplication Preview

Launch the contract management app.

Contract ManagementContract Management

Select a contract from the list to view its details.

Select ContractSelect Contract

 

Contract detailsContract details

Conclusion

The journey from user story to a functional, full-stack application—once a multi-day endeavor—is now accomplished in minutes.

With SAP Build Code and its AI copilot, Joule, this dramatic acceleration signals a fundamental paradigm shift.

The developer's role is being elevated from the meticulous craft of writing code to the strategic art of guiding its creation.

Joule operates as the quintessential collaborator, executing the foundational groundwork to liberate developers to focus

on high-value business logic and innovation.

SAP Build Code is therefore more than a tool; it's the dawn of an era where the speed of technology finally

matches the ambition of business.

 

Further Information

SAP Build Code

#SAPBuildCode #Joule #SAPBTP

 

______________________________________________________________________________________________

 

 

Best Regards,
Anuradha Dhingan