Hello,

Sign up to join our community!

Welcome Back,

Please sign in to your account!

Forgot Password,

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

You must login to ask a question.

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

SAP EWM Help Latest Questions

  • 0
  • 0
DPM125

Role of Custom CDS Views in SAP RAP

Custom CDS Views in SAP RAP (RESTful ABAP Programming Model) are used to model and expose business data from existing SAP tables, standard CDS views, or other data sources. They let business users or developers combine, filter, and project data without writing ABAP code, making them the foundation for creating RAP Business Objects or OData services.

They act as a semantic layer that simplifies data consumption, allowing RAP BOs to work with ready-to-use data models that follow SAP extensibility rules.

Example : Join Sales Order Header and Item

  • Business Requirement: A key user wants to see Sales Order header information along with Item details in a single service.

  • Custom CDS View:

    • Data Source 1 → I_SalesOrder (standard CDS for sales order header)

    • Data Source 2 → I_SalesOrderItem (standard CDS for items)

    • Join Condition → SalesOrder = SalesOrder

    • Fields Selected → SalesOrderID, SalesOrderDate, CustomerID, ProductID, Quantity

  • Usage in RAP: This Custom CDS View can be exposed as an OData API in RAP, and consumed in a Fiori Elements app for Sales Order analysis.

Related Questions

Leave an answer

Leave an answer