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

SAP HANA Variables and IDT Parameters

$
0
0

Hi all,

 

We'd like to know which is the best practice about HANA variables.

Hana variables aren't flexible as IDT parameters (e.g. you can't create a list of values with more columns in HANA).

Which is the best scenario?


  1. To create a variable in HANA and pass it in IDT(Information Design Tool) through a parameter.
  2. To create prompt in IDT with a parameter without using HANA variables.


Are identical in performance?


 

Your help will be very much appreciated!

 

Regards,

Giovanni


Re: Smart Data Access can not add virtul table

Re: Dynamically Dragging and Dropping a Table Row in SAPUI5 (SAP HANA XS)

$
0
0

How can I use the same jQuery Libs to attach to a table? It works well with the list box but I can't see in the code how that API is being used.(See code below for a very simple table being created). The SAPUI5 table already had the drag and drop feature for columns.

 

//create layout
var oLayout = new sap.ui.commons.layout.MatrixLayout({width:"100%"});
//insert oData Model here
 var oModel = new sap.ui.model.odata.ODataModel("insert xsodata here", true);            var arrayHeaders = new Array();    var oControl;    oTable = new sap.ui.table.Table("test",{tableId: "tableID", 
 visibleRowCount: 10});    oTable.setTitle("Table");         //Table Column Definitions    var oMeta = oModel.getServiceMetadata();    var oControl;        for ( var i = 0; i < oMeta.dataServices.schema[0].entityType[0].property.length; i++) {       var property = oMeta.dataServices.schema[0].entityType[0].property[i];           oControl = new sap.ui.commons.TextField().bindProperty("value",property.name);    oTable.addColumn( new sap.ui.table.Column({label:new sap.ui.commons.Label({text: property.name}),       template: oControl, sortProperty: property.name, filterProperty: property.name,       filterOperator: sap.ui.model.FilterOperator.EQ, flexible: true, width: "125px" }));    }    oTable.setModel(oModel);        //Create Sorter and Bind to the Batch Run Entity
 var sort1 = new sap.ui.model.Sorter("ROW_ID", true);
 oTable.bindRows({
 path: "/Table"
 });
// return oTable;
 oLayout.createRow(oTable); 
return oLayout.createRow(oTable);

Continuing the procedure execution even after encountering an error

$
0
0

Hello Team

 

                 I am working on developing one HANA procedure . I have implemented exception handling in the procedure . Now my requirement is that even after encountering an exception in the logs the  exception show appear but the execution of the procedure  should proceed further. Can anyone please suggest any idea  on this further .

 

Regards

Re: Accessing data cubes from Excel

$
0
0

I installed HANA Client and using MDX to connect from Excel to HANA.

 

Excel -> DATA -> Data Connection Wizard -> SAP HANA MDX Provider -> Select the Calculation View

 

1.png

Re: Accessing data cubes from Excel

Re: Accessing data cubes from Excel

$
0
0

what is your value field settings showing, e.g.

 

Excel_Value_Field.JPG

Re: Accessing data cubes from Excel

$
0
0

Its blanked out. May be because its pulling data from HANA. I have set it as a measure('sum') in HANA.

5.png


SP09

$
0
0

is it true that it's out? if so, will the client install be posted here and server upgraded on the usual cloud providers?

 

thx,

 

greg

Re: Setting to keep a table from loading into memory?

$
0
0

Amy:

 

I can tell you that our scale out system is very stable on 74.04.

 

George

Re: Accessing data cubes from Excel

$
0
0

what happens when you change the aggregation type from sum to count in the calculation view?

 

Count_Measure.JPG

please make sure your view is validated and activated on the server before trying to open it in Excel.

Re: Accessing data cubes from Excel

$
0
0

Changing from sum to count works for this particular scenario and i have tried it before. But, say if i am making some $X(other than 1) per day, i need a sum.. count does not work in that scenario.

 

I changed the EarningsPerDay to '2' instead of 1 and aggregation type as count. In Excel it shows

2013 - 365

2014 - 364

where i expect sum

2013 - 730

2014 - 728

Re: Accessing data cubes from Excel

$
0
0

maybe you could try to have 2 measures in your calc view, one for sum and one for count. i didn't have a need for such a scenario but the views seem flexible enough to be extended with additional fields.

Re: SP09

$
0
0

It's not available for download yet. I'm guessing it will follow the same pattern than the other releases and be available between tomorrow and Friday.

 

As for the update on the cloud providers, I would say yes but it should take some time... it's never upgraded right away, as far as i know.

 

It seems it will only be available by the end of the year.

 

Cheers,

Fernando

Re: SAP HANA: Does add partition query move the existing data in other partition to currently added partition?

$
0
0

Hi Suren,

 

yes, when new partitions are added to contain the data from the OTHERS partition, the data will be moved into these partitions.

You can check on that by looking at M_CS_PARTITIONS or M_CS_COLUMNS (consider PART_ID).

 

What I find more interesting: why don't you just simply try it out? First hand experience is much better than having to trust somebody you don't know on the web.

 

- Lars


Re: SAP HANA: Does add partition query move the existing data in other partition to currently added partition?

$
0
0

Hi Lars,

 

Thanks for your answer. I tried myself but i was not sure on how to query a particular partition to verify if the data is moved properly. From M_CS_PARTITIONS  we can verify if the partition is created. How to query the actual table data for a specific partition?

 

 

Thanks,

Suren.

Re: SAP HANA: Does add partition query move the existing data in other partition to currently added partition?

$
0
0

You can also see that the data is actually in the partitions by using the system views. Of course you would have to look at some of those numbers there...

 

As partitions are a concept of data structure management "below" the SQL layer, the only way to address single partitions is to provide a fitting WHERE clause.

 

For example you can unload your table and select only the data you want and check what partition had been touched for this.

On top of this you might even have a look into the partitioning trace output to confirm that the right partitions are mapped to your request.

Re: Multi threaded INSERT result in deadlock and transaction rollback

$
0
0

1. How can INSERT statement cause a deadlock on a table ?

 

It's not a single INSERT that causes this.

As the trace output clearly shows (reformatting goes a long way here), session 408576 wants to insert into table COMPOUND_REQUEST_INSTANCES  a record that should get this record_id:

RECORD_ID=[CS:OID=0x00000354, PARTID=0x0, OFFSET=0xa5cb]

 

This exact record ID however has already been taken by a second insert statement issues by session 408609.

 

So up to here it's simply a common life-lock situation.

Maybe there exists a second pair of update/insert/delete statements from those two sessions that are also intertwined like that - this would then trigger the deadlock resolution.

 

2. How can I configure the HANA log system to show exactly what resource is being held by the relevant threads at the time of the deadlock ?

 

Well, the trace already shows that. Other than that, you may want to have a look into m_record_locks/m_object_locks system tables.

 

From what I see up to here, the very same thing would have happened with Oracle - there must still be some other change in the application behavior.

 

- Lars

Re: SP09

$
0
0

SPS09 is not released yet.  We are still in the internal testing and correction phase internally. We are still several weeks away from release.

Extend UI of CEI - Audience Discovery and Targeting

$
0
0

Hi all,

 

is it possible (and when yes, how), to extend the user interface (SAPUI5) of the ADT, part of SAP Customer Engagement Intelligence (CEI) ?

 

For example, we want to extend the controls visible or add additional panels:

 

1.PNG.jpg

 

As far as I know, the user role menu customization (TA LPD_CUST) is used to customize the application Navigation bar an it's entries:

1.PNG (1).jpg

 

I have tried to connect with the SAP HANA Development Studio to access the repository. I would have expected, that the UI5 Project would be organized there?

 

 

Thanks and best regards,

Viewing all 9165 articles
Browse latest View live