Technology Blogs by SAP
Learn how to extend and personalize SAP applications. Follow the SAP technology blog for insights into SAP BTP, ABAP, SAP Analytics Cloud, SAP HANA, and more.
cancel
Showing results for 
Search instead for 
Did you mean: 
JerryWang
Product and Topic Expert
Product and Topic Expert
0 Kudos
1,821


In previous blogs I have introduced how to use SmartTemplate + CDS view to build service order application with search, display and update function enabled:


In this blog, I will finish the last part: create function.

Implemented feature

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

5 Comments
LucasBorin
Product and Topic Expert
Product and Topic Expert
0 Kudos

"Enable CRM Service Order application with edit functionality" results in "

Not Found - The item does not exist. It may have been deleted."

JerryWang
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Lucas,

Thanks a lot for pointing it out. I have fixed the broken link.

Best regards,

Jerry

Former Member
0 Kudos

Hi,

Now, I am confused with the logic in create and edit functions. If I used the different cds view files, how can I write the new correct class and functions with abap in odata service?

Do you have some documents for me to reference?

Thanks a lot.

BestRegards,

Grace

agentry_src
Active Contributor
0 Kudos

Hi Grace,

Unless you are asking for clarification/correction of some part of the Document, please create a new Discussion marked as a Question.  The Comments section of a Blog (or Document) is not the right vehicle for asking questions as the results are not easily searchable.  Once your issue is solved, a Discussion with the solution (and marked with Correct Answer) makes the results visible to others experiencing a similar problem.  If a blog or document is related, put in a link.  Read the Getting Started documents (link at the top right) including the Rules of Engagement. 

NOTE: Getting the link is easy enough for both the author and Blog.  Simply MouseOver the item, Right Click, and select Copy Shortcut.  Paste it into your Discussion.  You can also click on the url after pasting.  Click on the A to expand the options and select T (on the right) to Auto-Title the url.

Thanks, Mike (Moderator)

SAP Technology RIG

Former Member
0 Kudos

Thanks For Link Sharing.. (Create a CRM Service Order Fiori application within a couple of minutes,
Enable CRM Service Order application with edit functionality)

Multi-channel service to support the integrated delivery of customer service through field representatives, interaction centers, partners, or the Internet.