
What is SAP Build Code
SAP Build Code is an AI-driven tool optimized for Java and JavaScript development, offering a comprehensive solution for coding, testing, integrations, and lifecycle management. It leverages Joule copilot to efficiently generate application logic, data models, and test scripts, enhancing productivity from design to runtime. Tailored for SAP development, it seamlessly integrates with S/4HANA and other applications, providing guided development experiences following SAP best practices. The Service Center grants direct access to SAP APIs, including OData and Business Events, simplifying development, and ensuring security through the SAP Business Technology Platform. It supports fusion development by combining traditional coding and low-code approaches, making projects faster, collaborative, and tightly integrated with the SAP ecosystem.
NOTE: The entire process is done on a trial account.
Activate SAP Build Code
There are two ways to activate SAP Build Code: using Booster or manually from the Service Marketplace. 1. Using Booster:
Select the global account. We are using the trial account.
Select "Boosters" from the menu on the left side of the screen.
Search for SAP Build Code and select "Start" on the "Get Started with SAP Build Code" page.
It will run the booster, and a wizard will open to set up SAP Build Code with the following steps:
Select Scenario - Choose "Select Subaccount" and click "Next."
Configure Subaccount- Select the subaccount in which you wish to activate the service. Since we are using a trial account, it will display the trial subaccount. Click "Next."
Add Users:
Custom Identity Provider for Platform Users: By default, it will be accounts.sap.com.
Custom Identity Provider for Applications: By default, it will be accounts.sap.com.
For Administrators, mention the email of the user whom you want to give the Build Code Administrator and Subaccount Administrator role collection.
For Developers, mention the email of the user whom you want to give the Build Code Developer and Subaccount Viewer role collection.
Click "Next."
Review all the details and click "Finish."
A progress indicator will be shown after clicking "Finish."
Click on "Navigate to Subaccount" to access SAP Build Code.
Select "Instances" and "Marketplace" from the left menu panel. There, you can find SAP Build Code under the "Applications" section.
2. Manually from the Service Marketplace:
Select the subaccount within the global account.
Select "Service Marketplace" from the left menu panel.
Search for SAP Build Code and select the three vertical dots in the top right corner of the SAP Build Code tile.
Select "Create." A wizard will open with the service as SAP Build Code and the plan as free, as we are using a trial account. Click "Create," and it will open the progress dialog.
Once the service is activated, go to "Instances and Subscriptions" from the left menu panel. You will see that SAP Build Code is subscribed.
Now click on "Users" under "Security" in the left menu panel and select the user to whom you want to grant access. Under "Role Collection," select "Assign Role Collection."
Select "Build Code Administrator" and "Build Code Developer," then click "Assign Role Collection." This action will assign the roles to the user.
You can now access the application without any issues.
Note: SAP Business Application Studio is also required when working on SAP Build Code.
Create Full Stack Application using SAP Build Code
Open the SAP Build Code application from the Instances and Subscriptions section.
SAP Build Application will open. To create the new full stack application, Go to Lobby Page and Select Create.
A wizard will pop up. Choose "Build an Application" -> "SAP Build Code" -> "Full-Stack Application."
Enter the project name and select the development space. If you already have a development space, you can choose from the existing ones, or a new one will be created. Finally, click "Create."
The creation of the project may take a few moments. Once it is created, click on the project to open it.
The project will open in the Business Application Studio, which is the SAP Build Code development environment.
To create the data model and service using Joule, select "Joule" from the activity bar in the SAP Build Code development environment.
Click on "Open Guide," which will open the Generative AI Powered Development page. Expand the "Data Model and Service Creation" section and select "Open Joule."
Joule, the digital assistant, will open on the left side. Send the prompt to Joule by clicking on
Prompt - Design an Employee Details Application with two data entities: Header (Employee ID as Integer, Project Name as String, Branch Location as String) and Item (Employee ID as Integer, Full Name as String, Contact Number as Integer).
Once you receive the response from Joule, click on "Accept" to accept the code. After accepting the code, it will take some time to create the data model and services.
To maintain sample data using Joule, open the Sample Data from the Storyboard by selecting "Open Editor" -> "Sample Data."
Select the entity in which you want to load data, and click "Enhance" to open Joule.
You can see that some data is already available. We are going to add three more rows.
Prompt - Add 3 more rows of data. Enhance my sample data with meaningful data. For the new entries Branch Location should be India States. No fields should be empty.
Accept the response, and it will update the sample data.
Now we will create some logic for services. We will restrict users from adding entries if the Employee ID is not available in the Header or if the Contact number is not of 10 digits.
In the Storyboard, click on the Item Entity under Services, and then select "Open in Graphical Editor."
Select the Item Entity and click on "Add Logic."
In the "Add Application Logic" dialog, the default values are already filled. Click on "Add."
We will create logic before the OData Create operation is triggered. Select "Before" for Phase and "Create" for Standard Event.
Click on "Open Code Editor," then select "Application Logic." This will open Joule.
Send the prompt to joule - check that employee ID exist in Header, if it exist then only add the data to item and contact number should be of 10 digit. add appropriate error message also.
Accept the response, and it will update the file with the logic.
Now we will add the user interface (UI) to the application.
In the Storyboard, click on the "+" button in "Create UI Application."
A wizard will open. Set the display name and description, then click "Next."
Select "Template-Based Responsive Application," then click "Next."
Select "List Report Page" as the UI Application Template, then click "Next."
Select "Main Entity" and click "Finish."
To preview your application, once the files have been generated, go to the upper right corner and click on the preview button
The Preview application is displayed.
Note: Currently, SAP is enhancing SAP Build Code and Joule to make them more flexible with additional features for a wide range of scenarios. I will update this blog as soon as SAP launches new features, or anything related to SAP Build Code.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
4 | |
2 | |
2 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |