SAP OData utilizes the concepts of "deep entities" and "expand entities" to efficiently retrieve interconnected data. A deep entity involves fetching specific records from an entity while also requesting data from related entities, using a URL syntax like EntitySet(Key)/NavigationProperty On the other hand, the expand entity approach allows retrieving related data without fetching the entire set of records. The `$expand` query option in the URL specifies which related entities to include in the response. This optimizes performance by obtaining necessary information without additional requests. Employing these concepts enhances data retrieval efficiency and performance, enabling developers to construct more streamlined and responsive SAP OData services.
With help of deep Entity set you can get multiple item and single header details as well you can also able to post the records same waysÂ
Â
Expand Entity and deep ensert need to to be implemented for such kind of requirements, for thats you
Create header and item relation as well