Throughout this tutorial, object names may include a suffix or group number, such as ####. Always replace this with your own group number or initials.
For more information, see the links at the end of this tutorial.
Step 1Create package
โ
Create a new package for this tutorial, by choosing New > ABAP Package.
step1a-new-package
Enter the following then follow the wizard, choosing a new transport request:
Name: ZRAP_TRAVEL_####
Description: Travel data generated
Request description: Travel service RAP Generator
step1a-create-packageย step1b-new-tr
Step 2Create database table
+
Choose your package, then choose New > Other Repository Object from the context menu.
step2a-choose-other
Choose Database Table then Next.
step2b-choose-table
Enter the following, then choose Next.
Name: zrap_travel_####
Description: Travel Data Generated
Choose the transport request, then choose Finish.
The table appears in a new editor.
Delete the code key client : abap.clnt; and add the following:
The system displays a list of objects that will be generated. Choose Next
step3c-preview-gen-output
Choose the transport request, then choose Finish.
The artifacts are generated. You can now see them in the Project Explorer.
step3d-artifacts-in-project-explorer
Step 4Test your business service
+
The service binding appears automatically in a new editor.
step4a-service-binding-unpublished
Publish the service binding.
step4a-activateย step4c-sb-publish
You now have a fully-fledged business service for which a Fiori app (based on the Fiori Elements List Reporting template) can be generated. Test this in the Fiori Elements preview, by choosing the Travel entity set from the service binding, then choosing Preview.
step4d-sb-preview
The service appears in the Fiori Elements preview.
The table does not yet contain any data.
You can create a new Travel.
IMPORTANT: There is no value help or any validation check. You need to build these manually. For more information, see the following tutorial group: SAP BTP ABAP Environment: Create and Expose a CDS-Based Data Model, parts three and four.
IMPORTANT: If you later add a new CDS view entity to the compositional structure of the data model, make sure that you also extend the behavior definition for the new BO entities. Otherwise your business service will show errors.
Share feedback on this tutorial or join the conversation in SAP Community.
Submit detailed feedbackDiscuss in Community
Steps
Step 1 of 6
1. Create package2. Create database table3. Generate objects from table4. Test your business service5. Test yourself6. More information
Joule
AI Notice
Joule is an AI assistant. Generative AI may produce inaccurate, incomplete, or biased information. Always verify important details before acting on them.
Conversations are sent to SAP-hosted large language models for processing. Do not include personal data, credentials, or confidential information in your messages.
Joule's responses are based on the SAP tutorial catalog and may not reflect the latest product changes. For authoritative guidance, consult the linked tutorials and official SAP documentation.