Quantcast
Channel: SCN : Discussion List - SAP HANA Developer Center
Viewing all 6412 articles
Browse latest View live

Rank Function taking a long time to execute in SAP HANA

$
0
0

Hi All,

 

I have a couple of reports with rank function which is timing out/ or taking a really long time to execute, Is there any way to get the result in less time when rank functions are involved?

 

the following is a sample of how the Query looks,

 

SQL 1:

select      a.column1,

                b.column1,

                rank () over(partition by a.column1 order by sum(b.column2) asc)

from         "_SYS_BIC"."Analyticview1"         b

                join          "Table1"            a

                  on          (a.column2 = b.column3)

group by  a.column1,

b.column1;



SQL 2:

select    a.column1,

                b.column1,

                rank () over( order by min(b.column1) asc) WJXBFS1

from         "_SYS_BIC"."Analytic view2"         b

                cross join                "Table 2"               a

where      (a.column2  like '%a%'

and b.column1  between 100 and 200)

group by  a.column1,

                b.column1




when I visualize the execution plan,the rank function is the one taking up a longer time frame. so I executed the same SQL without the rank() or partition or order by(only with Sum() in SQL1 and Min() in SQL 2) even that took a around an hour to get the result.


1.Does anyone have an any idea to make these queries to execute faster?

2. Does the latency have anything to do with the rank function or could it be size of the result set?

3. is there any workaround to implement these rank function/partition inside the Analytic view itself? if yes, will this make it give the result faster?



Thank you for your help!!


-Gayathri


Backspace not working on Input tag

$
0
0

I have an Input tag of type "Text" where I want the user to enter only in uppercase , hence I am using liveChange event for this. But for some reason, the backspace on the keypad is not working. Not able to understand why.

 

 

    <Input

                liveChange="handleChange"

                id="userName"

                type="Text" />   

 

    handleChange : function(){

 

  var userName=this.getView().byId("userName").getValue();

  userName=userName.toUpperCase();

    this.getView().byId("userName").setValue(userName);

  }

 

 

Please help. Thanks

Cannot update software in Eclipse Kepler

$
0
0

Hi,

 

I am trying to update the software within the eclipse Kepler for SAP plug-ins. However, I encountered an error message saying that repository is not found. Could any expert help me resolve this issue? The error message is attached for reference.

Perftrace.tpt

$
0
0

How to read Perftrace.tpt? as well as index and profile trc file. Any suggestion or help...

RDS Vs HANA LIVE

$
0
0

Hello Team

 

Request admin team not to remove this discussion because i am posting this question after going through relevant threads.

 

I need your help. I had gone through various discussions on RDS and HANA Live, i am little confused. please help me to come out of my confusion.

 

As per my understanding RDS is Rapid Deployment Solution and it is a predifined solution given by SAP.  The predifined solution is given in the form of 4 files in the RDS solution as .ATL file ( it contains all predifined ETL solution), .TGZ file (It contains all predifined views like attribute view, analytical view and calculation view based on the solution) and .LCMBIAR file (It contains all predined universes and reports) and finally a Design document.

 

As per my understanding HANA Live is the HANA content avialable only in the form of calculation view.

 

So i request you to please look into the below questions and clarify me according.

 

1. If RDS is the predifined solution then what is HANA LIVE, is it also a predifined solution? please clarify..

2. RDS is having all views based on the solution but HANA LIVE contains only calculation views, why it is having only calculation views.. please clarify.

3. I understand RDS content can be customize, so is it the same with HANA live( I mean can  i create analytical views or attribute views if required) .. please clarify..

 

 

Please check and correct me if my understanding is wrong. I am confused about RDS and HANA LIVE differences.. please clarify and pull me out of confusion.

 

Regards

Raj

co-related sub-query

$
0
0

Hi Gurus,

 

In SQL I can easily create a co-related sub query, to return the maximum User_Id in each Department.

 

Can I do the same in an attribute view?

 

I tried by adding Max(User) id as a calculated field and Department as a regular field. This gave an error on activation. How do I tell an attribute view to do the equivalent of group by on the Department?

 

Thanks

Cliff

Request execution failed due to missing privileges in accessing SHINE demo app

$
0
0

Hi  guys,

 

I am a newbie to HANA. I am now playing with SHINE demo application to learn HANA.

 

I created an  instance in HANA cloud, and register a trial user. 

 

I  configured the HANA studio environment, made it connected to the HANA cloud, and imported the SHINE demo app into the HANA studio.


All  configuration are done except the roles needed for the end user to access the SHINE demo app.

 

I add the role to the user using sql: call "HCP"."HCP_GRANT_ROLE_TO_USER" ('i076318trial.opensap.shine.data::model_admin','i076318')

 

and aftering excuting this sql sentence, it shows success in the log.

 

However, when I access the SHINE app from front end, it shows the "Request execution failed due to missing privileges"  error

.

the following are the screen shots in case you need more information.

 

Capture2.PNG

 

Capture1.PNG

Can't use filter when accessing hana table through link from another table in sapui5

$
0
0

Hi all,

 

Have a strange one and I was wondering if someone had come across this before.

 

Hana table structure

 

      entity SalesOrder {

    key element name : String;

    element contact : Association[0..*] to Contact via backlink order;

 

 

entity Contact {

    ...

element location: Location;

    element order : Association to SalesOrder;

 

==

each sales order has a number of contacts.

 

In javascript, if I bind on list of contacts directly then I can use the filter

oRowRepeater.bindRows("/Contact",oRowTemplate,null,[new sap.ui.model.Filter("location",sap.ui.model.FilterOperator.EQ, "Germany")]);

 

and if I enter link i returns the number of entries

Contact/$count?$filter=location eq 'Germany'

 

But if I get contacts through the sales order it doesn't allow me to use the filter,

oRowRepeater.bindRows("/SalesOrder('mike')/Contact",oRowTemplate,null,[new sap.ui.model.Filter("location",sap.ui.model.FilterOperator.EQ, "Germany")]);

I can return the contacts same as accessing them directly and i can get the information such as

new sap.ui.commons.TextView({text: "{location}"}) same as before but only difference is that i can't filter.

 

When I try the following I get error

/SalesOrder('mike')/Contact/$count?$filter=location eq 'Germany'

 

Error

"message": {

            "lang": "en-US",

            "value": {

                "type": "ODataInputError",

                "message": "Bad Request URL: U"

            }

        }

 

When I open Chrome Developer Tools I see the following error

SalesOrder/contact/$count?$filter=location%20eq%20%27EMEA%27 400 (Bad Request)

Basically the $count doesn't work if you access contacts indirectly even though the link is there.

 

Is this a bug or am I doing something wrong?

Hana is sp8, I am up to date with almost everything.

 

Many thanks,

Matthew


HI experts..

$
0
0

When i was creating variables and inputparameters,i have little bit confusion? input parameter works for Analytic view as parameterization and for caluculation its working as filter?please clarify how variable and input parameter works in analytic view and in calculation view?

Resetting a sequence

$
0
0

Hi,

 

Is there any simple way to reset a HDBSEQUENCE?

 

Suppose I have a sequence whose range is 1-100.

 

In a procedure  I need to reset the sequence and use it but for other procedures I need to just use NEXTVAL.

 

I have seen the syntax of create sequence with RESET BY option, but I want to just reset the sequence to its initial value .

 

 

Regards

S.Srivatsan

Cannot deploy River application on HANA Cloud instance: missing privileges

$
0
0

Hello, everybody!

 

I'm trying to develop simple River application and I'd like to deploy and test it on HANA Cloud instance. I created simple River app in SAP HANA Studio (ver.1.80.3) and then made following steps:

  1. Open db-tunnel to database schema on HANA Cloud
  2. Create new system in Systems view of IDE with settings from db-tunnel. Connection was successful, I can see tables and table data of specified schema.
  3. Then I tried to share my project in Repository Workspace and received error message "You are not authorized to execute this action; you don't have the required privileges".

 

What else should I do to perform deployment? Did I miss something?

Sorry if my question is rookie-typed.

 

Thanks in advance.

how to calculate the cumulative sum with certain interval in SAP HANA

$
0
0

Hi Experts,

 

I have a scenario in which I have a column with Boolean values and need to calculate the cumulative values in the interval where there are consecutive ones as mentioned below,

 

ID          Date                           column 1

1         9-14-2014 14:22:00          1

1          9-14-2014 14:25:00          1

2          9-14-2014 13:22:00          0

1          9-14-2014 15:02:00          0

1          9-14-2014 14:37:00          0

2          9-14-2014 14:25:00          1

2          9-14-2014 14:32:00          1

1          9-14-2014 14:05:00          1

2          9-14-2014 14:45:00          0

2          9-14-2014 14:59:00          0

1          9-14-2014 15:12:00          1

1          9-14-2014 15:18:00          1

1          9-14-2014 15:21:00          1

 

First needs to group by 'ID' and Order By ' Date' and calculate the calculated column 'cumulative sum' for the consecutive ones in 'column1' as

 

ID          Date                           column 1          Cumulative sum

1          9-14-2014 14:05:00          1                    1    

1          9-14-2014 14:22:00          1                    2

1          9-14-2014 14:25:00          1                    3

1          9-14-2014 14:37:00          0                    0

1          9-14-2014 15:02:00          0                    0

1          9-14-2014 15:12:00          1                    1

1          9-14-2014 15:18:00          1                    2

1          9-14-2014 15:21:00          1                    3

2          9-14-2014 13:22:00          0                    0

2          9-14-2014 14:25:00          1                    1

2          9-14-2014 14:32:00          1                    2

2          9-14-2014 14:45:00          0                    0

2          9-14-2014 14:59:00          0                    0



Is there any function and way to calculate this  without loops in procedure?


Please help!!. Thank you!!


-Gayathri



Error when used hana studio to import Delivery Unit

$
0
0

HANA version:1.00.80.00.391861

HANA studio version:1.80.3

Plantform :SUSE Linux Enterprise Server 11.2

 


I meet a error when used hana studio followed that steps to import Delivery Unit:

Launch HANA Studio 

Select your HANA instance

On the Quick launch page, choose Content -> Import

Now Select HANA Content -> Delivery unit.

Choose Next

Select the server, browse the Service DU (Service DU on server: SYS/global/hdb/content): HCO_INA_SERVICE.tgz

QQ截图20140717160951.png

QQ截图20140717161210.png


Who can help me what shoud i do.

thanks.


Decision table with calculation view as data foundation

$
0
0

Hi Everyone,

 

How can I pass input variables to a calculation view in the data foundation of a decision table in the SAP HANA Studio?

 

I'm trying to create a decision table in the SAP HANA Studio with a calculation view as data foundation.

Based on Decision Table on HANA Modeler Views I have successfully implemented a decision table with a calculation view in the data foundation that does not require any input variables.

 

When I put a calculation view into the data foundation that requires input variables, I am not able to (a) define the input variables in the decision table and (b) map them to the data foundation. The SAP HANA Studio, however, accepts the definition and lets me activate and deploy the view to the HANA box without any errors. Only when trying to connect to the view an 'required variable is not set' error is thrown, which is to be expected.

 

Is there a way to pass the input variables to the underlying view? Or am I missing something else?

 

Thank you very much for your help.

 

Best,

Gustav

Import csv with date into HANA

$
0
0

Hi,

 

I have a table with multiple text columns and one date column in the csv I am trying to import I have the date as YYYY-MM-DD which I thought was the format I needed. Every time I select the csv and the table to import to then press next my whole studio freezes up and I have to do a force close.

I attached the screen where I get to when it freezes. When I take this column out it loads fine.

Can someone tell me the correct format for date to enter it in CSV, or what I am doing wrong?

 

Thanks,

 

Connor


Upgrade with hdblcm to Revision 82 fails (studio)

$
0
0

Hi All,

 

I just upgraded to Hana Revision 82 on a test server where only the client, studio, hlm and server components are installed. I used the new upgrade mechanism (hdblcm_prepare.sh) to start the upgrade. Basically Hana was upgraded fine but the studio upgrade ended with the following warning (system was running, so the reason seems incorrect):

 

Note: Could not deploy studio repository. The System is not started.

SAP HANA system updated with warnings.

 

When I try to connect to the Hana Studio update site on this server (http://hostname:8015/sap/hana/studio where we use instance 15) I see the old revision level and not revision 82.

 

I tried to manually update the repository of the server with the command: ./hdbinst -a studio --copy_repository=/hana/shared/IHR/hdbstudio_update/ but that ends with the following error:

 

Installation failed

  unhandled exception: Can't call method "isOldFeaturesSetInRepository"

on an undefined value at SDB/Install/DatabaseStudioSummary.pm line 11.

 

  0: SDB::Install::App::__ANON__ in source

SDB/Install/DatabaseStudioSummary.pm line 11

  1: SDB::Install::DatabaseStudioSummary::buildSummaryTree in source

SDB/Install/App/Console/Installation.pm line 390

  2: SDB::Install::App::Console::Installation::configure in source

SDB/Install/App/Console/Installation.pm line 571

3: (eval) in source SDB/Install/App/Console/Installation.pm line 569 4: SDB::Install::App::Console::Installation::main in source

SDBRun.pl

line 385

  5: (eval) in source SDBRun.pl line 384

  6: SAPDB::Install::Start::StartRequireInc in source SDBRun.pl line

249

  7: SAPDB::Install::Start::Start in source -e line 0

 

But I noticed that the above error (When updating the hana repository) is basically happening on all Revisons of SPS08 (80, 81 and 82). When I execute the same command on SPS07 it updates the repository just fine.

 

My quesion is, were there more people that got the studio warning when upgrading to revision 82? and does anyone know a way how I could fix this update site issue since I'd like to provide the studio on revision 82 to our people through the update site.

 

Kind Regards,

Nico van der Linden

Querying Sys tables - Calculation Views

$
0
0

Soooo....

 

I've been playing around in the system views and found quite a bit of useful stuff for querying meta-data around base objects.

For Tables, column definitions, constraints etc ...

For Attribute views,  column names, dependencies, joins & join conditions....

 

Yet for Calculation Views; I'm drawing a blank.

Ok, so I can list them (name, type) from sys.objects, but I've not been able to gain any further info.

 

 

Does anyone know (a) why this is (they they are not detailed in sys views ?)  and (b) does the data I'm looking for exist in tables elsewhere ?

 

 

Just for illustration, a small example of the views I've been hitting so far ..

M_TABLES
CS_VIEW_COLUMNS
CS_BO_VIEWS
CONSTRAINTS
CS_JOIN_TABLES
CS_JOIN_PATHS
CS_JOIN_CONDITIONS
CS_KEY_FIGURES
OBJECTS
OBJECT_DEPENDENCIES

HANA Studio: Load blank values from FlatFiles

$
0
0

Hi,

I want to load a flat file using the wizard in HANA. The file I am trying to load has blank values for a lot of fields hence I am getting the error "cannot insert NULL or update to NULL".

The thing is that the table I am loading to is replicated from ECC so all the fields have 'Not Null' flag enabled. I tried using space, escape characters etc but nothing seems to work. Can I do something to load the blanks?

Even though the 'not null' flag is enabled the data replicated from ECC has blanks. Can someone explain?

 

Thanks,

Benedict

Unable to launch HANA Studio

$
0
0

Hi All,

 

HANA studio stopped to launch suddenly. I even tried uninstalling and cleaning up the registry. Even after fresh install I am not able to run it. When I checked trace log I could see some eclipse related errors Which I have attached here.

Pasrt of same error I am pasting here,


!ENTRY org.eclipse.core.resources 2 10035 2014-07-01 09:51:40.753
!MESSAGE The workspace exited with unsaved changes in the previous session; refreshing workspace to recover changes.

!ENTRY org.eclipse.emf.ecore 2 0 2014-07-01 09:51:41.405
!MESSAGE Both 'com.sap.ndb.studio.bi.model' and 'com.sap.ndb.studio.search.model' register an extension parser for 'search'

!ENTRY org.eclipse.core.jobs 2 2 2014-07-01 09:51:50.729
!MESSAGE Job found still running after platform shutdown.  Jobs should be canceled by the plugin that scheduled them during shutdown: org.eclipse.ui.internal.Workbench$55

 

Has somebody encountered similar error? Need help urgently to resolve.

 

Thanks,

Amol

Import CSV file: column count mismatch by always 1

$
0
0

Hello,

 

I am trying to import data from a CSV file into a HANA db table with an .hdbti file.

I have a large structure of 332 fields in the table. When I activate the files to start the import, I always get the following message:

 

CSV table column count mismatch. The CSV-file: Test.data:data.csv does not match to target table: Test.data::test. The number of columns (333) in csv record 1 is higher than the number of columns (332) in the table.

 

But even if I delete the last column in the CSV file, the message stays the same. I also tried adding an additional field in the table on HANA, but then the column numbers in the error message just increase by 1. Then the message is: The number of columns (334) in csv record 1 is higher than the number of columns (333) in the table.

 

So, it seems, whatever I do, the system thinks always that the csv file has one column too much.

 

 

With another smaller structure of 5 fields, the import worked that way.

Do you have an idea what the problem could be?

 

Regards,

Michael

Viewing all 6412 articles
Browse latest View live


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