Providing data
During the service creation, a Data Provider class was generated called ZCL_ZODATA_SERVICE_DPC_EXT. Double-clicking on its name in SEGW results in opening the class editor, allowing the implementation of custom coding. By default, the generated class has methods inherited from eight interfaces, and four CRUD methods for each entity type defined. The methods are actually defined in the superclass and their definition there should not be modified. Instead, the redefinition in the EXT class is recommended, so that the custom code is not overwritten if the runtime objects are generated once again. For this case, the FLIGHTSET_GET_ENTITYSET and CREW_GET_ENTITYSET methods need to be redefined.
Depending on the actual needs, this ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access