ABAP RAP Advanced

Projections and Consumptions

The Path to the UI

Projection Views and Their Importance

  • Projections abstract complex data models for UI and services
  • Allow targeted selection and aggregation of data
  • Support both draft and non-draft scenarios
  • Provide a clear separation between data model and UI representation

Behavior and Draft Handling in RAP

  • Draft functionality enables parallel editing without data loss
  • Draft tables and actions securely manage status transitions
  • Behavior definitions control actions (Edit, Activate, Discard, etc.)
  • Alignment of view projections and behavior definition is essential

Annotations and Metadata Extensions (MDEs)

  • Annotations shape the UI with Fiori Elements
  • Facets structure input and display areas
  • LineItems and Identification define columns and details
  • Metadata.allowExtensions enables flexible enhancements

Associations and Composition in CDS Views

  • Model relationships between entities (Tasks, Comments, Users)
  • Redirected associations for navigation and data consistency
  • Composition for parent-child relationships
  • Text elements (@ObjectModel.text.element) for better readability

Integration of User Information

  • Use views with combined names (FullName)
  • Extend projections with associated user data
  • Value helps and annotations improve usability (Searchable, ValueHelp)
  • Text elements bridge technical IDs and UI-friendly names

Draft-Free Scenarios

  • Projections without draft for simple editing cases
  • Simplified behavior definition without draft actions
  • Service definitions aligned with draft or non-draft views
  • Flexible design depending on use case and complexity

Summary of Topics

  • Projections structure data for different requirements
  • Behavior controls data manipulation and draft lifecycle
  • MDEs shape the user interface transparently and flexibly
  • Associations and user integration improve context and usability