Developing a sample C4C extension application using SAP HANA Cloud Platform (Part 1).
Companies need to provide exceptional support experience to customers once they have purchased their products/services. A good support experience goes a long way in improving the overall customer experience and customer satisfaction.
SAP Cloud for Customer provides an out-of-the-box support portal – “SAP Cloud for Service – Self-Service Support Portal”. It is an intuitive self-service support site for customers to raise and track service requests and collaborate with service agents to resolve issues quickly. The support portal can also be used for creating branded, customized service sites.
However, companies may need the flexibility to develop their own customized support sites with a custom look and feel (branding / layout). Companies can choose to expose additional information or services from the underlying C4C backend to the end users/customers to suit their support needs. A sample support site developed using the HANA Cloud Platform is shown in the image.
This series describes how the SAP HANA Cloud Platform can be used to build such a customized support site.
- Part1:(This blog)
- Leverage the SAP Cloud for Customer (C4C) OData services that expose service request functionality from the C4C backend.
- Use the rapid application development capabilities (project templates with OData services) of the SAP Web IDE to develop an SAP UI5 application.
- Part 2: Integrate the SAP UI5 application into a Fiori Launchpad site.
Prerequisites
- You have signed up for a developer account for SAP HANA Cloud Platform and have your SAP ID or SCN credentials. If not, register for a developer account here.
- You have access to a C4C test tenant which exposes the underlying C4C service request functionality via OData services. The OData services relevant for the service request scenario are accessible at <Your_C4C_tenant_host_name>/sap/byd/odata/v1/servicerequest/
I. Configure connectivity to the Cloud for Customer backend
Launch your SAP HANA Cloud Platform Account Cockpit
From your browser, access the SAP HANA Cloud Platform cockpit for your developer account. Go to https://account.hanatrial.ondemand.com/cockpit. Log on with your SAP ID or SCN credentials.
Configure connectivity destinations to the Cloud for Customer backend
SAP HANA Cloud Platform account enables secured connections from your cloud account to C4C backend systems by configuring destinations.
II. Develop the SAPUI5 application for displaying open tickets
Use the Project Templates in SAP Web IDE
Since we have enabled connectivity from our HCP account to the C4C OData services, we can use the SAP Web IDE templates to generate applications that consume data coming from the OData services.
Preview the application
Input | Output |
---|---|
|
|
![]() |
Deploy the application to SAP HANA Cloud Platform
In this part, we will deploy our application to the SAP HANA Cloud Platform and activate the application.
Excellent stuff Gaurav. Keep them coming. Thank you.
Thanks Pushkar.
thanks for sharing Gaurav!
Thanks Michael.
Hi Gaurav,
How are we going to perform actions/activities on the Data from the ODATA Service?
For example updating ticket status, updating ticket information and then returning the updates to the C4C Tenant / Cloud System.
Hi Dominic,
You can use POST/PUT methods to perform CRUD operations.
Refer to:
C4C OData API reference: SAP Cloud for Customer – OData Services
C4C OData API Developer's guide at GitHub: https://github.com/SAP/C4CODATAAPIDEVGUIDE
You can also have a look at Sample payload: C4CODATAAPIDEVGUIDE/serviceticket.md at master · SAP/C4CODATAAPIDEVGUIDE · GitHub
Hope this helps. Cheers!!
Thank you for the pointers Gaurav Dey
Is this possible using a Trial Account in SAP HANA Cloud Platform?
Yes Dominic it is, but the C4C tenant you need to have your own.
Good Blog.
Is there any trail C4C tenant available for accessing C4C Odata services.
Thanks,
Syam
Hi Syam,
You need to have your own C4C tenant.
hi Syam,
Yes its available.
https://my<trailAccount>.crm.ondemand.com/sap/byd/odata/v1/c4codata/
Br..
Prasad Sistla.
Thank you Gaurav for sharing such a nice blog. I am facing the following error while following the steps provided in your blog. But the connection is successful when I click on check connection from my trail account destinations after setting ups the destination. Please suggest
Hi Ayyappa,
It works fine for me. Check your destination file once again.
Thanks.
Hi Gaurav,
Thanks for sharing nice information. At the same step, I am getting "Internal Server Error".
I have used the same information (Destination, URL etc) shared in this blog.
Can you please help me?
Thanks,
Rajeev Singh
Hi Rajeev,
Thanks for following the blog.
It works fine for me. Kindly check your destination file, I suspect some issue is there from your C4C tenant.
Hi Gaurav,
how do i get the out-of-the box portal "Self-Service-Portal"?
The cusomter has already purchased licenses for the Hana Cloud Plattform.
Thanks in advance.
Best regards,
Dennis
Hi Dennis,
Thanks for following the blog.
This has to be bought separately. For more info contact your Account Executive.
Hello Gaurav,
Thanks for sharing the blog with step by step guides.
It would be great if you could provide the details of getting the access to C4C test tenant.
Please share the link where we can register for C4C test tenant system.
Regards,
Raghav Rathor
Hi Raghav,
Thanks for following the blog. You can check the details with your SAP account Manager.
Hi Gaurav ,
I tried doing the above steps .
I successfully created a project template in Web IDE but when I was trying to run the project it gave a 404 error .
Kindly help .
Regards,
Vishal Menon
Hi Vishal,
Thanks for trying this out.
The destination that you are using are they proper. ?
Hi gaurav ,
Yes those are correct .. Tried the connection test which were successful .
same format as you mentioned in this post :-
https://<MyC4Ctenant_name>.crm.ondemand.com/sap/byd/odata/v1/servicerequest/
Kindly suggest if this pattern has some correction?
Thank you .
Regards,
Vishal Menon
Hi Vishal,
The url pattern that you are using is proper. Can you share the screenshot if you are still facing the error.
Regards,
Gaurav Dey
Hi Gaurav,
Are you able to create a ticket using Crud?
Hi Gaurav,
Thanks for sharing the blog. Very nice!
Do you know about a list of all odata services?
Thanks,
Jan
Hi Jan,
Thanks for trying out the blog. Couple of them that I know about are
Regards,
Gaurav Dey