{"ref":"content:usage-of-expand-entity-in-odata-service-consumption-model","page":"/content/usage-of-expand-entity-in-odata-service-consumption-model","json":"/content/usage-of-expand-entity-in-odata-service-consumption-model.json","generated":"2026-10-26","drafted_with_ai":true,"entity":{"id":"usage-of-expand-entity-in-odata-service-consumption-model","title":"Usage of Expand Entity in OData Service Consumption Model","url":"https://community.sap.com/t5/technology-blog-posts-by-members/usage-of-expand-entity-in-odata-service-consumption-model/ba-p/13598261","content_type":"blog","published_on":"source:sap-community","explains":["capability:http-clients"],"summary":"Explains how to use OData's $Expand option when [SAP BTP, ABAP Environment](artifact:btp-abap-environment) consumes a remote service through a generated client proxy, the way [HTTP clients](capability:http-clients) describes it, using stubs [ABAP Development Tools for Eclipse](artifact:sap-adt-eclipse) generates from the service's $metadata. The expanded association only comes back from `get_business_data` when the caller supplies its own ABAP type that redeclares the association as a nested table, in place of the generated CDS entity type. The same workaround still applies from release 2311 on, where the consumption model generates flat ABAP types rather than abstract CDS entities.","short":"Using OData $expand through a service consumption model in ABAP","author":"alrikx","published":"2024-02-08","against":[{"ref":"ecosystem:abap","version":"2311"}],"provenance":{"discovered_via":[{"source":"source:sap-community","channel":"abap-cloud-tag"},{"source":"source:sap-community","channel":"btp-abap-environment-tag"}],"first_seen":"2026-09-27"},"drafted_with_ai":true},"readings":{"liveness":[{"label":"Checked against the source","tier":"unknown","evidence":"nobody has checked it"},{"label":"Source reachable","tier":"unknown","evidence":"not crawled"},{"label":"Age","tier":"poor","evidence":"published 32 months ago"}],"compatibility":[{"label":"Version","tier":"unknown","evidence":"ABAP Platform 2311"},{"label":"Moved since?","tier":"good","evidence":"no recorded change after 2024-02-08"},{"label":"Findings","tier":"good","evidence":"none flagged"}],"reach":[{"value":5491,"unit":"views"},{"value":2,"unit":"comments"},{"value":8,"unit":"likes"}]},"signals":{"views":5491,"likes":8,"comments":2,"metrics_at":"2026-10-25"},"series":null,"edges":{"authors":[]}}