Quantcast
Channel: SCN: Message List - SAP HANA and In-Memory Computing
Viewing all 8968 articles
Browse latest View live

Extending the Shell element

$
0
0

Hello everyone,

All the applications that we are developing in our product will have the same interface using  a shell element.

I am trying to extend this shell element, so if in the future we need to change this interface,

we'll only needed to change only this shell extended file.

 

So, I created the file  'test/lib/shell.js' in these file I declared a extented shell;

sap.ui.ux3.Shell.extend("test.myshell", {  

});

 

 

 

Then I referenced the file in the html file

<script src="/teste/lib/shell.js"></script>

 

 

After that in the view

    createContent : function(oController) {

       // Create a simple button to be the shell content

       var btn  = new sap.ui.commons.Button({

                text: "Buy this book",

        });

 

        var oShell = new teste.lib.myshell("appShell", {

            appTitle: "Something",

            worksetItems: [new sap.ui.ux3.NavigationItem("WI_home", {

                    key: "wi_selscreen",

                    text: "Home"

                })

            ],

            content: [btn]

            });

 

        return oShell;

    }

   

 

    But when I run the html I receive this error menssage  in the javascript console:

    Uncaught Error: failed to load 'test/DpShellRenderer.js' from /sap/ui5/1/resources/test/myshellRenderer.js: 404 - Not Found

 

It's trying to load the file  /sap/ui5/1/resources/test/myshellRenderer.js: which does not exist, only it's parent /sap/ui5/1/resources/test/Shellrenderer.js

 

I tried also to redefine its renderer function like that:

renderer:"sap.ui.ux3.ShellRenderer"

 

but then I got the error :  Uncaught TypeError: Cannot read property 'render' of undefined    , I belive that some shell resources are missing.

 

 

 

Does anyone have any suggestion?


Re: New User Issue

$
0
0

Hi Ben,

 

Yes, you are missing a grant. For example, you let SYSTEM create USER_A. You need to let USER_A grant SELECT privilege on schema USER_A to SYSTEM, if you want SYSTEM see all objects in schema USER_A.

 

Best regards,

Wenjun

Re: New User Issue

$
0
0

Dear

Try this. Execute the following in a SQL window started by a userid that has been granted the USER ADMIN system privilege:

 

ALTER USER XXXXX VALID FROM NOW    UNTIL FOREVER;

 

You can use a date instead of FOREVER --- '2016-12-31 23:59'.

 

Regards

Re: New User Issue

$
0
0

Hi Ben,

 

I re-read your question and now I'm not sure about your question. Do you mean the scenario which I explained above, i.e., you let SYSTEM create USER_A and you want SYSTEM can see the schema USER_A under his "Catalog"  folder or you want to login with the new user USER_A?

 

If you want to login with the new user, you can right click the current system and choose "Add System with Different User", then you input the username and password to login. You may required to change the password.

 

Capture.PNG

 

Best regards,

Wenjun

Re: New User Issue

$
0
0

Thanks All!  The issue has been resolved.  Thank you for the helpful information.

Re: New User Issue

$
0
0

Dear

how it has been solved let us know

 

Regards

HANA System replication and transaction performance

$
0
0

HI ,

I read some of documents for HANA System replication.

I understand about system replication has performance impact (than no-replication environment) .

And system replication has 3 mode .

 

About HANA transaction performance , If network speed is same condition , my understand is following . Is it right ?

Fast

  |    no replication

  |    Asynchronous mode ----- (no replication + log ship to secondary time)

  |    Synchronous in memory mode ---- ( Async + write log to secondary delta + ack to primary ) 

  |    Synchronous mode ---- ( Sync in memory + log persisted )

Slow

 

Regards,

JT

Error while executing CE function calculation view

$
0
0

Hi,

 

I am getting below error while executing an query below.

 

Can someone please help?

 

Query:

 

BEGIN

 

select1 = CE_COLUMN_TABLE ("ZTEST_SUMEET","TEST1", [NAME,AMOUNT]);

select2 = CE_COLUMN_TABLE ("ZTEST_SUMEET","TEST2", [NAME,AMOUNT]);

var_out = CE_UNION_ALL (:select1, :select2);

 

END

 

Error:


Message :

                Internal deployment of object failed;Repository: Encountered an error in repository runtime extension;Internal Error:Deploy Calculation View: SQL: sql syntax error: incorrect syntax near "TEST1": line 5 col 43 (at pos 239)nSet Schema DDL statement: set schema "SYSTEM"nType DDL: create type "_SYS_BIC"."ztest_sumeet/ZTEST/proc/tabletype/VAR_OUT" as table ("name" VARCHAR(6), "amount" DECIMAL(5,1))nProcedure DDL: create procedure "_SYS_BIC"."ztest_sumeet/ZTEST/proc" ( OUT var_out "_SYS_BIC"."ztest_sumeet/ZTEST/proc/tabletype/VAR_OUT" ) language sqlscript sql security definer reads sql data as  nn BEGIN n nselect1 = CE_COLUMN_TABLE ("ZTEST_SUMEET","TEST1", [NAME,AMOUNT]);nselect2 = CE_COLUMN_TABLE ("ZTEST_SUMEET","TEST2", [NAME,AMOUNT]);nvar_out = CE_UNION_ALL (:select1, :select2);nnEND nn




BR

Sumeet


Re: Error while executing CE function calculation view

install SAP B1 on hana Server

$
0
0

Dear All,

 

When install B19.0 Pl11 on hana server it is give me below error :

 

Untitled.png

Re: hana respository workspace and projects

$
0
0

It's not compulsary but only takes 1 minute to configure, so there is no downside. You will learn good practices for the future.

Re: "Char" type in core data services

$
0
0

Back when I wrote that post I tested and found that VARCHARs were less efficient for storage and processing. However that was a long time ago back in Rev.21 of HANA and times change.

 

Since then, VARCHAR is more efficient and CHAR is deprecated.

Re: HANA System replication and transaction performance

$
0
0

Yes.

 

Normally we use sync for HA on a local 10GBe network and async for DR on a remote 1GBe network.

Log ship timing of HANA System replication .

$
0
0

Hi , I'm researching about performance of system replication.

I can't understand about log ship timing from some of docs.

 

About sync replication mode , It works like following ?

Sync mode image 1.png

So it means "Sync mode need x2 transaction time + network delay" .... I doubt this .

 

Another idea , It works like following ?

Sync mode image 2.png

Which is close current HANA work ? Just I want to know Sync mode need x2 transaction time (from single node) or not .

 

Regards,

JT

Error: key figure cannot be defined without aggregation In Calculation View

$
0
0

Hi Experts,

 

I am getting an error "key figure cannot be defined without aggregation" in calculation view during activation.

 

DETAILS:

 

var_out =  SELECT

                                VEHICLE_REG   AS REG_NUMB,

                                AF_TIMESTAMP   AS TOE1,

                                (6.286*AF_ENGINE_SPEED*AF_WHEEL_BVSPD)   AS GEAR_RATIO

 

 

                FROM "_SYS_BIC"."Analytic_View_DEMO1"

                GROUP BY VEHICLE_REG, AF_TIMESTAMP, AF_ENGINE_SPEED, AF_WHEEL_BVSPD;

 

 

Data Type:

                   

               VEHICLE_REG             VARCHAR(30)

               AF_TIMESTAMP           TIMESTAMP

               GEAR_RATIO               DECIMAL 25, 20

               AF_ENGINE_SPEED    DECIMAL 25, 20    (Declared as Measure in Analytic View)

               AF_WHEEL_BVSPD     DECIMAL 25, 20    (Declared as Measure in Analytic View)

 

Thanks..

 

Regards

Madhusudan Pareek


Re: "Char" type in core data services

$
0
0

Hi John,

 

Thanks for the clarification

 

Regards,

Vijay.

Re: Convert Graphical view to Script view ?

$
0
0

Hi,

 

Yes - statement is not really correct, sorry.

We was playing with performance converting manual Graphical view's into SQL's and got much better speed in SQL.

But real reason was the following: Graphical view in our case contains several nested view's (with different expressions/filters applied). Like:

  • MainView has projection1 with NestedView1 inside and Expression1,
  • MainView has projection2 with NestedView1 inside and Expression2,
  • MainView has projection3 with NestedView1 inside and Expression3,

 

If this NestedView1 is heavy (takes 300-500ms) it is much better to have only one NestedView1 node and 3 projections on top of it like:

 

  • MainView has projection0 with NestedView1 inside and Expression1 or Expression2 or Expression3,
  • MainView has projection1,projection2,projection3 on top of projection0 with corresponding expressions.

 

While converting into SQL we skipped duplicated calls and this was the reason of my statement. Redesigning graphical view like described above gave us same speed.

 

Denis.

Re: "Char" type in core data services

$
0
0

I updated the blog to be more up to date. Hopefully this avoids confusion for someone in the future.

Re: "Char" type in core data services

$
0
0

So what happened was that CDS brought over all the data types from HANA regardless of their status. That has since been discussed and will try to be removed (CHAR/NCHAR). However it is relatively late in the process for SPS09 and it remains to be seen if CHAR/NCHAR will be removed in time or not. Either way key points:

1. If CHAR/NCHAR show up; don't use them

2. CDS does bring over all the missing HANA data types that have been a gap in the past. We do get more control to use all the supported HANA data types include GeoSpatial types.

Re: New User Issue

$
0
0

Hi Rajendra,

 

I am not 100% sure, but I think in the end it was an Eclipse UI error.  I applied the above grant and then logged off and logged on and the user then appeared in the catalog.  However, I created another new user and refreshed catalog without applying the grant and the newly created user appeared.  So, I think in the end it was an Eclipse issue.

 

Thanks again!

 

Ben

Viewing all 8968 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>