You are on page 1of 12

SAP CSR Project Issues needs support from SAP :

Mail Date: 23/01/2017. Issue raised by Mr. Sarath.

We are encountering the below issues in Development.

ISSUES:
1.Analytic Views This was already shared via E-mail dated 20-01-2017
2.Server-Side Validation consuming of OData Service for Input Controls.
3.While user searches for Category deficient, If no data available in Dashboard (VizFrame) the Screen has to
appear with the text "No data Available" instead of blank page.

Mail Date: 23/01/2017. reply by Mr.Siddhartha


Module 3 and 4 are almost done and will be completed within this week.
Server Side validation for OData.
When a chart consumes data from HANA DB, if there is no data available instead of a blank screen appropriate messages should be
shown.
Performance issue while accessing OData from HANA Studio.

Mail Date: 24/01/2017. reply by Mr.Siddhartha


May I know which version of SAP UI5 you are using?

Mail Date: 24/01/2017. Reply by Mr. Sarath.

In Manifest.json we are using the version named as "1.1.0" as shown in the below screen shot.
In Console while typing the syntax "sap.ui.version" it appears the version as "1.38.7" as below attached.

Mail Date: 24/01/2017. reply by Mr.Siddhartha

Regarding the issue with Viz Frames:

From sapui5 version 1.42, the vizFrame control displays appropriate message if there is no data to consume
from HANADB.
Since you are using sapui5 version 1.32.0, you might be facing the issue of vizFrame being blank when there
is no data.

You can change the version of ui5 from 1.32.0 to 1.42.

One way of changing is from the manifest.json file as shown:


Mail Date: 24/01/2017. reply by Mr.Siddhartha

Also regarding your query on Server-Side Validation consuming of OData Service for Input Controls.
Can you give us more insight on that? Like what exactly are you trying to achieve or trying to do.
This will help us narrowing down the issue.

Any screenshots and details with examples will be helpful.

Mail Date: 24/01/2017. Reply by Mr. Sarath.

1. Validation: Here below is the screen with input fields to do some server side validation
e.g. Country Key having a value "IN" as high lightened in the screen, if the value is already exists in Database but the
user creating with the same key value some pop-up message should appear beside the input field i.e. "IN already
Exists".
2. We changed "manifest.json" as you suggested in the previous mail but issue was not solved.
Is there any changes have to do in the coding part for vizframe? I attached the screenshots related to this.
Manifest.json

Output of Vizframe
Code of DataSet and FeedItems
Mail Date: 24/01/2017. reply by Mr.Siddhartha

Ideally you shouldnt be making any code changes in Vizframe.

You can try making the same changes in the pom.xml file in your project.

For reference:
You should change the version in the highlighted section.

Mail Date: 24/01/2017. Reply by Mr. Sarath.

As you suggested in the mail I'm not able to find "POM.XML" in my Project .
Please guide us to find this "POM.XML" in my project.
Here i attached the screen shot of my Project Explorer

Mail Date: 25/01/2017. reply by Mr.Siddhartha

Basically you need to upgrade your UI5 version to fix the VizFrame issue. This is because VizFrame is taking
an old version of UI5, hence the issue.

You can try by :


eclipse > help > software > update

Any version from 1.42 will suffice.

Could you please send us a snapshot of your index.html page? So that we can check whether you are
referring to any ui5 version in the code.

Mail Date: 25/01/2017. Reply by Mr. Sarath.

Here i attached our project Index.html page.


Is there any effect to my CSR Project while i'm going to change the version of UI5 as you suggested ?

Mail Date: 25/01/2017. reply by Mr.Siddhartha

Changing the ui5 version, ideally should not affect your CSR project.

In rare cases:
If a there is a control in your current version which was removed in the updated version , it may
affect the UI.

Some controls might give anamolous behaviours if you are using Custom CSS.

And, regarding your query on oData validation, here are a few options which you may try:

You can create a Stored Procedure (SP) in HANA write all your validation logic there. Call this SP in
the CREATE oData Call. If the SP throws an error (for example Country Code is already present), it
will go back to the oData call. From there you can show any error message in the UI.

Or when the user types anything in the input control, you can make a GET CALL in the background
and compare what the user has entered. But this might make the application a little slow and it will
create a lot of network traffic, since there will be many GET CALLS.

Mail Date: 31/01/2017. Reply by Mr. Sarath.

As you suggested in previous mail regarding upgradation of UI5 version from 1.38 to 1.42 to fix the
issue of Viz Frame, we have done the upgrade of version by going through these steps i.e., eclipse >
help > check for updates and upgraded to the higher version( 1.40.9) which was listed in check for
updates wizard.
We followed the steps to upgrade the version as eclipse shown.
After up-gradation of UI5, the application was not running and throwing an error as attached in below
screenshot.

Mail Date: 31/01/2017. Reply by Mr. Ayana

It seems certain libraries are not loaded properly while loading the application hence you are getting the error. You
could do the following:

Try cleaning the cache and hard reload the browser. If this does not solve the issue,
Re-install the UI5 from https://tools.hana.ondemand.com/mars (Replace
Mars with your eclipse version name)
Go to Help menu Install New Software
Go to the link provided above and select UI Development Toolkit for HTML5 and click finish.

Mail Date: 03/02/2017. Reply by Mr. Sarath.

We have followed the steps as per your mail Reg. SAP UI5 version upgrade and still we are facing the same Issue.

Can we have a call to sort out the issue

Please find the Screen below.


Mail Date: 03/02/2017. Reply by Mr. Sarath

Pending issues as of now as discussed in the call.

Issue: Regarding Auto Increment ID for Fund Allocation to Specific CSR Project.

We created a Table in HANA DB with Auto Incremented ID to insert the fund details.

When we are inserting the data into the table through UI5 we are having error like which is shown below.

To resolve this issue we tried to write Stored Procedures for the table, but when we are calling this Stored
Procedure in OData Service having an error which is shown below.

Error.[40136] unknown object


Stored procedure code:

You might also like