In previous blogs I have introduced how to use SmartTemplate + CDS view to build service order application with search, display and update function enabled:
- Create a CRM Service Order Fiori application within a couple of minutes
- Enable CRM Service Order application with edit functionality
In this blog, I will finish the last part: create function.
Click create button in toolbar:
Maintain order description in creation page and click save button:
Order is saved successfully:
And it could be found in search result now.
How to implement
There is another method, CREATE_ENTITY, of DPC_EXT class of the OData service must be redefined.
For the whole source code of CDS view and related ABAP class, please refer to this github repository: https://github.com/i042416/jerryslide/tree/master/cds/createSource