hana

Is there a better alternative to sap.ui.commons.layout.MatrixLayout?

白昼怎懂夜的黑 提交于 2019-12-11 18:36:36
问题 What's the best way to do a layout where the start content is fixed, the center is flex and the end content is fixed? Like a 100% wide HBox with three columns, first and last col are fixed and the center stretches? This is how I do it by now, can I avoid using sap.ui.commons.layout.MatrixLayout ? new sap.ui.commons.layout.MatrixLayout({ layoutFixed: true, columns: 3, width: '100%', widths: [ '100px', '100%', '100px' ], rows: [ new sap.ui.commons.layout.MatrixLayoutRow({ cells : [ new sap.ui

Conditional update on Hana Studio (SQL Script) trigger

核能气质少年 提交于 2019-12-11 18:15:14
问题 I have two example tables: TABLE1: ID | COLUMN_B| COLUMN_C _________|_________|_________ 1 | 0 | 1 ________|_________|_________ 2 | 0 | 1 ________|_________|_________ 3 | 0 | 1 TABLE2: ID | COLUMN_E| COLUMN_F ________|_________|________ 1 | Y | X ________|_________|_________ 2 | Y | X ________|_________|_________ 3 | Y | X What I would like to do is to write a trigger on Hana Studio using SQL Script to update column E from table 2 when column B from table 1 is updated to a specific value (let

Cumulative Sum grouped by multiple parameters

风格不统一 提交于 2019-12-11 17:25:57
问题 I need Cumulative sum for 'Order Qty'. When i use this code with Select fields as "Sales_Year","Sales_Billing_Date", "Order_Qty" am getting the result i needed. Code used: "Sales_Year", "Sales_Billing_Date", "Order_Qty" , SUM ("Order_Qty") OVER ( ORDER BY "Sales_Billing_Date") AS "SUM_VAL" FROM ( SELECT "Sales_Year", "Sales_Billing_Date" , SUM("Order_Qty") AS "Order_Qty" FROM "PS_WARRANTY_ANALYTICS"."PS_PAL_DLR_SALES" GROUP BY "Sales_Year","Sales_Billing_Date" ) But i select more fields(added

SQL - SAP HANA - REPLACE_REGEXPR in Column table

若如初见. 提交于 2019-12-11 15:01:40
问题 I have some tables on SAP HANA and „create column table“ to combine multiple „raw tables“ and need to replace strings from one column in the newly created table. Tablename “Testsubject_status” Column name “STATUS”. The reason why I need to replace the strings, is to get a harmonized wording on specific entries. With the following example, it is hopefully more clear what I mean: Table name: Testsubject_status --- Column: Status Test me Test him Test with the ID 1237 is done Test her Test with

ADO.NET Provider for SAP HANA - Version mismatch issue

99封情书 提交于 2019-12-11 05:58:13
问题 I have a WPF application which is using ADO.NET client for SAP HANA ( Version 1.0.9.0) in my local development environment and i have added the same reference of SAP.DATA.HANA.v4.5.dll in my code. The connection works fine. When i try to run the same application on a server which is having a different version of ADO.NET client , it throws error. It should refer to the client from the location(C:\Program Files\sap\hdbclient\ado.net\v4.5) instead of version number ? Can someone please explain

Why does sqlQuery from SAP HANA using RODBC return no data if request 18 or more rows

天涯浪子 提交于 2019-12-11 05:38:45
问题 I have a 64-bit Windows 7 machine with HANA Client installed and an ODBC connection to an SAP HANA database. In the ODBC Data Source administrator, I have added a connection to the required database and can successfully connect. I am trying to use RStudio to retrieve data for analysis using R. I am finding that queries that return a handful of rows ("TOP 1" to "TOP 17") successfully return all 71 columns of data for the requested number of rows, but when I query with "TOP 18" or higher number

Splitting SQL Columns into Multiple Columns Based on Specific Column Value

放肆的年华 提交于 2019-12-11 03:13:24
问题 I want to write a query that lists the programs we offer at my university. A program consists of at least a major, and possibly an "option", a "specialty", and a "subspecialty". Each of these four elements are detailed with an code which relates them back to the major. One major can have zero or more options, one option can have zero or more specialties, and one specialty can have zero or more sub specialties. Conversely, a major is permitted to have no options associated with it. In the

SSIS 2012 and SAP HANA

可紊 提交于 2019-12-10 23:47:19
问题 Does anyone know if it's possible to use SSIS 2012 to import data into (or out of) SAP HANA? I've looked online and can't seem to find much about the two working together. I know that SAP Data Services is the recommended ETL tool for HANA, but we'd like to try and use SSIS if possible. 回答1: I've just found a nice article to this question. The author of the blogpost found a way to connect SSIS with SAP HANA. He used ODBC to solve this problem. http://www.dwknight.com/sap/etl-sap-hana-microsoft

SQL Row data to Column with another column name

徘徊边缘 提交于 2019-12-08 13:42:34
问题 My data as follow: > mydata month count1 count2 count3 1 201301 100 110 50 2 201302 150 160 60 3 201303 200 210 50 My expected data like this: >final data count_all 201301 201302 201303 1 count1 100 150 200 2 count2 110 160 210 3 count3 50 60 50 How can I get the result using SQL? I know PIVOT a little, but it seems there are some problems in the column name during my processing. I need an efficient way to resolve this problem. And I will execute such a query: select * from final_data where

Nearest date value

纵然是瞬间 提交于 2019-12-08 12:56:11
问题 I need a solution to find the nearest date value for missing values based on date.Suppose I have a temporary table like below with columns Product Date Value Product Date Value P1 1/10 10 P1 2/10 20 P1 3/10 P1 4/10 Here you find that for date 3/10 and 4/10 there are no values and it should copy the values from the nearest date that is 2/10 to 3/10 and 4/10 i.e 20. I used the lag function in HANA and it is copying the value only for 3/10 and for date 4/10 it is null. Is there any function in