Skip to Content
Author's profile photo Jerry Wang

Enable CRM Service Order application with create functionality

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:

/wp-content/uploads/2016/04/clipboard1_937479.png


Maintain order description in creation page and click save button:

/wp-content/uploads/2016/04/clipboard2_937480.png

Order is saved successfully:

/wp-content/uploads/2016/04/clipboard3_937493.png

And it could be found in search result now.

/wp-content/uploads/2016/04/clipboard4_937494.png

How to implement

There is another method, CREATE_ENTITY, of DPC_EXT class of the OData service must be redefined.

/wp-content/uploads/2016/04/clipboard5_937495.png

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

Assigned tags

      5 Comments
      You must be Logged on to comment or reply to a post.
      Author's profile photo Lucas Borin
      Lucas Borin

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

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

      Author's profile photo Jerry Wang
      Jerry Wang
      Blog Post Author

      Hi Lucas,

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

      Best regards,

      Jerry

      Author's profile photo Former Member
      Former Member

      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

      Author's profile photo Michael Appleby
      Michael Appleby

      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

      Author's profile photo Former Member
      Former Member

      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.