How sap-samples/abap-platform-code-samples-cloud works
Project type and purpose
• This repository is a set of ABAP Platform code samples for SAP BTP (ABAP environment), specifically demonstrating how to use side-effects in RAP (Restful Application Programming Model).
• It is not a traditional multi-tier web app; rather it provides ABAP back-end artifacts (CDS definitions, Behavior Definitions, Service Definitions, Service Bindings, ABAP classes, table metadata) that you import into an ABAP environment package and then expose as OData services.
File structure
• Top level:
• LICENSE, README.md, REUSE.toml – project metadata and licensing
• json/ – sample payload or JSON definitions for tree traversal utility
• src/001/ – the first sample package containing all RAP objects
• Within src/001:
• package.devc.xml – ABAP package descriptor
• *.clas.abap / *.clas.xml – ABAP class implementations and metadata
• *.bdef.* / *.bdef.xml – RAP Behavior Definition artifacts
• *.ddls.* / *.ddls.xml – Data Definition Language artifacts (CDS view definitions)
• *.tabl.xml – table definitions in XML
• *.srvd.* / *.srvd.xml – Service Definition artifacts (exposed OData V4 Interfaces)
• *.srvb.xml – Service Binding artifacts (SAP Cloud Platform OData endpoint)
• *.sco2.xml – Service Consumption – UI annotations for SAP Fiori elements
README for additional insights
• The README confirms that each sample lives in its own “prefix‐logic” subpackage (here “001”).
• It instructs users how to import the code into a ZLOCAL package in the ABAP environment.