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:
- Contract ID: A unique identifier for the contract.
- Party involved Identification Number: A unique identification number for the party involved.
- Contract Type: The type of contract (e.g. sales, service, employment).
- Start Date: The date on which the contract becomes valid.
- End Date: The date on which the contract expires (if applicable).
- Status: The current status of the contract (draft, active, expired, terminated, etc.)
A typical ‘party involved’ has the following attributes:
- Party involved Identification Number
- Party involved Name: It refers to the given name of a person or entity, or a label by which they are addressed or identified.
- Party involved Address: It refers to a physical location where an individual, business, or entity is situated or can be reached.
- 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
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
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.
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.
3. Add UI to the Application
Create a new Fiori elements Application.
3. Preview the Application
Click run to preview the Application.
The application’s preview is displayed.
Launch the contract management app.
Select a contract from the list to view its 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
#SAPBuildCode #Joule #SAPBTP
______________________________________________________________________________________________
Best Regards,
Anuradha Dhingan