A development team is building a side-by-side extension on SAP BTP for an SAP S/4HANA Cloud system. The extension needs to read product master data. To adhere to Clean Core principles, which of the following is the most appropriate method for accessing this data?
Q2
A developer is implementing a managed RAP Business Object with draft capabilities. They need to create a custom action that copies data from a related entity into the current draft instance. This action should be available on the UI for the user to trigger. What is the correct way to define this action in the Behavior Definition?
Q3
You are designing a CDS data model for sales orders. You have a CDS view entity for Sales Order Headers (`Z_I_SalesOrderHeader`) and another for Sales Order Items (`Z_I_SalesOrderItem`). Each header can have multiple items. What is the most performant and semantically correct way to model this one-to-many relationship in the Sales Order Header CDS view to enable path expressions for accessing the items?
Q4Multiple answers
A developer needs to create an in-app extension for a standard SAP Fiori app in S/4HANA Cloud. The requirement is to add a new custom field to the UI and implement logic to populate this field based on other standard fields. Which combination of extensibility tools and ABAP Cloud development model artifacts is required to achieve this? (Select TWO)
Q5
When implementing a behavior for a managed RAP business object, you need to automatically set the `CreatedOn` timestamp when a new instance is created. Which RAP behavior artifact is specifically designed for this purpose?
Q6
True or False: In the ABAP Cloud development model, it is a recommended practice to directly call a standard SAP function module (e.g., `BAPI_SALESORDER_CREATEFROMDAT2`) from your custom code if it has not been officially released for cloud development.
Q7
A consultant is reviewing an existing ABAP program for performance optimization. They find a `LOOP AT` statement on a large internal table that performs a `READ TABLE` on another large internal table inside the loop. Both tables are standard tables. ```abap LOOP AT lt_sales_orders INTO ls_sales_order. READ TABLE lt_customer_data INTO ls_customer_data WITH KEY customer_id = ls_sales_order-customer_id. " ... further processing ENDLOOP. ``` Which of the following refactoring approaches offers the most significant performance improvement for this code snippet?
Q8Multiple answers
You are performing a code pushdown to a HANA database using a CDS Table Function. Which of the following statements about CDS Table Functions are correct? (Select TWO)
Q9
A developer needs to implement a class that can calculate taxes for different countries. The base calculation logic is the same, but the tax rate is country-specific. The company plans to add support for more countries in the future without changing the existing code that calls the tax calculation service. Which object-oriented design principle is best suited for this requirement?
Q10
An architect is designing a Fiori application using the ABAP RESTful Application Programming Model (RAP). The application needs to display a list of purchase orders and their items. The business logic requires that whenever a purchase order's status is updated, the `LastChangedAt` timestamp for all its associated items must also be updated. Where should this logic be implemented according to RAP best practices? ```mermaid graph TD subgraph PurchaseOrderBO [Purchase Order BO] direction LR POHeader[Root: Purchase Order Header] --> POItem[Child: Purchase Order Item] end POHeader --triggers--> UpdateLogic{Update Logic} UpdateLogic --updates--> POHeader UpdateLogic --cascades_update--> POItem ```