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

SAP HANA ODBC sslCryptoProvider openssl unknown

$
0
0

Hi,
when trying to connect to SAP HANA with ODBC via SSL I ran into the following problem: When trying to set the crypto provider to openssl as documented in the security guide (with sslCryptoProvider=openssl), I get the error message "Invalid SSL configuration: unknown crypto provider 'openssl'".
Unfortunately I need to set the sslCryptoProvider in order to set the sslTrustStore.

 

Did anyone also experience this Problem? Or am I simply doing something wrong here?
I'm using SAP HANA Client Rev. 80.

 

Best regards,
Thomas


What happened to the JSDoc Index?

SLT monitoring

$
0
0

Hello Team

 

                   While doing SLT if a job fails then what should we do to bring that job back into working position .

 

Regards

SAP HANA authorisations

$
0
0

Hi Folks

Just wondering if anyone can answer the following query.

Under a test user ID called MERON, I did IMPORT and selected DEVELOPER MODE to import the EFASION model which contain the

packages and the views. I get the error below. The issue is:  To give the test user access to the package in SAP HANA the package has to exist in the system but the test user does not have access yet because HANA is saying you do not have access to it . I really find this strange in SAP HANA.

Any thoughts please?

 

Repository: User is not authorized to execute specified operation;User 'MERON' has no authorization, privilege: 'REPO.MAINTAIN_NATIVE_PACKAGES', package: 'models.R12.efashion'!

 

 

Kind regards

Massoud AL-SAKAT

Error Activating Projects

$
0
0

Hi Everyone,

 

Anytime I try and activate any file I receive this error.

 

Repository operation failed

Repository request failed. Cause: Repository: User is not authorized to execute specified operation;User 'DEV_2I2WXQMNCDJHDX722VDLI317U' has no authorization, privilege: 'REPO.READ', package: 'hihanaxs.".settings"'!, code: 40,156, argument:

Repository request failed. Cause: Repository: User is not authorized to execute specified operation;User 'DEV_2I2WXQMNCDJHDX722VDLI317U' has no authorization, privilege: 'REPO.READ', package: 'hihanaxs'!, code: 40,156, argument:

 

This is happening with any new files I try to activate. It came on all of a sudden, I have been working on projects the with no issue lately. I have even recreated a new fresh Hana XS instance and tried to complete the 8 Easy Steps To Develop an XS Application (http://scn.sap.com/community/developer-center/cloud-platform/blog/2013/10/17/8-easy-steps-to-develop-an-xs-application-on-the-sap-hana-cloud-platform) but upon the first activation receive the above error.

 

I have went through the other solutions posted in other questions with activation issue but none for me have worked.

 

I am using Hana Cloud Studio (Rev 73). If you require any information please don't hesitate to ask.

 

Thank you very much for any help you can provide on this matter,

Keith.

Using dymanic table name for running select queries

$
0
0

Hi there. Currently got a problem with performing the following task:

     Perform fulltext search on all tables that have created fulltext indexes in specific schema. Result should look like this:

          <TABLE_NAME1>                <ID_FROM_TABLE>

          <TABLE_NAME1>                <ID_FROM_TABLE>

          <TABLE_NAME2>                <ID_FROM_TABLE>

          <TABLE_NAME2>                <ID_FROM_TABLE>

     At the moment all tables have the same ID column UOI_ID.

 

What I've tried so far is the following:

 

PROCEDURE "tuser"."dam.test.db.procedures::textSearch" ( in keyword NVARCHAR(300), out search_results "tuser"."dam.test.db::tuser.procedures.tt_search_results" )

  LANGUAGE SQLSCRIPT

  SQL SECURITY INVOKER

  DEFAULT SCHEMA "tuser"

  AS

BEGIN

/*****************************

  Write your procedure logic

*****************************/ 

 

  DECLARE counter Integer := 1;

  DECLARE row_count Integer;

  DECLARE table_name NVARCHAR(300);

  DECLARE schema_name NVARCHAR(300) := 'tuser';

 

  indexed_tables = SELECT row_number() OVER (ORDER BY "TABLE_NAME") AS ROW_NUMBER, "TABLE_NAME"

       FROM (

            SELECT DISTINCT "TABLE_NAME"

                 FROM "SYS"."FULLTEXT_INDEXES"

                      WHERE "SCHEMA_NAME" = :schema_name

       );

 

  SELECT COUNT(*) INTO row_count FROM :indexed_tables;

 

  WHILE counter < row_count + 1 DO

 

       SELECT '"tuser"."'||"TABLE_NAME"||'"' INTO table_name FROM :indexed_tables WHERE "ROW_NUMBER" = :counter;

 

       temporary_results = SELECT :table_name AS TABLE_NAME, "OUI_ID" AS ID

            FROM :table_name

                 WHERE contains(*, :keyword, fuzzy(0.5));

 

       search_results = CE_UNION_ALL(:search_results, :temporary_results);

 

       counter := counter + 1;

 

  END WHILE;

 

END;

 

 

At this point it's impossible to perform the:

... FROM :table_name ...

 

The error is:

Could not create catalog object: scalar type is not allowed

 

Tried doing it with CE functions.

 

temporary_table = CE_COLUMN_TABLE(table_name);

 

The error is:

Dependent object not found: SqlScript; tuser.TABLE_NAME

 

So the question is: How to dynamically put table name into "FROM ..." statement?

Trace/Debug not working

$
0
0

I am not seeing traces in the xsengine trace log; nor am I able to effectively set breakpoints in the Web Editor and stop page processing. I'll start by defining roles and configuration, describing actions that aren't working, and then finish with 2 questions.

 

ROLES AND CONFIGURATION

 

According to the developer guide, the following configuration and roles need to be in place for tracing and debugging to work. This is our current role state:

  • User assigned Debugger role
  • To change Trace level, user assigned TraceAdmin role
  • User assigned TraceViewer role, child role of Developer

 

To view tracing, confirm the following configuration. This is our current config state.:

  • In the xsengine.ini file, the debugger > enabled node is set to true
  • In the xsengine.ini file, the httpserver > developer_mode node is set to true

 

ACTIONS

To start tracing, set the Trace level for your package, e.g., debug. Include a trace call in the code, e.g., $.trace.debug("testing debug trace"). In the Web Editor, run the xsjs file, and in the resulting browser window, click the Call Backend button. Here is where my issues begin: there is no Call Backend button, in any browser version.

 

To start debugging, set breakpoints in the Web Editor by clicking the line number. A breakpoint is indicated by a red arrow on the line number. Then run the page. The page should stop processing at that point. (You can also set breakpoints in Hana Studio by running in Debug perspective, and setting a debug configuration. I tried this also, but was unable to create a desired configuration for port 443; this is a separate issue, outside the scope of this discussion.)

 

QUESTIONS

  • What am I missing in setting up tracing?
  • What am I missing in setting up debugging?

 

Thanks in advance for any guidance.

 

Bill

Alter Table - Error

$
0
0

Hi people,

 

 

I have a table where a column is created with DATE datatype which I need to convert to TIMESTAMP type. But when I try to do that , I am getting the following error.

  Could not execute 'alter table abc  ALTER ("CREATION_DATE" timestamp , ...' in 218 ms 379 µs .

SAP DBTech JDBC: [7] (at 57): feature not supported: cannot modify data type of column: CREATION_DATE: line 1 col 58 (at pos 57)


The query I tried was

ALTER <schema>.<table> ALTER (<columnname> TIMESTAMP)

Also I tried mentioning both ROWstore type and Columnstore type :

ALTER <schema>.<table> ALTER (<columnname> TIMESTAMP CS_LONGDATE)


HANA couldn't create remote source (Sybase IQ)

$
0
0

Hi,

 

We have an issue with creating remote sources in HANA Studio.

 

System landscape:

Server A: HANA Server (SP7) + HANA Client (linux).

Server B: Sybase IQ Express Edition 16.0 (linux). This server currently is not used.

Workstation: HANA Studio x86 (1.0.7), HANA Client, Sybase IQ Express Edition 16.0 with running demo server. (Windows 7 x64 SP1)

 

For creating remote source in HANA Studio I copied odbc driver for Sybase IQ called "libdbodbc16_r.so" (based on Administration Guide) from Server B to Server A.

 

Then I tried to execute following command in HANA Studio on my workstation:

 

create remote source TESTIQ adapter iqodbc

configuration

'Driver=/usr/sap/**HANADB**/home/sybase/libdbodbc16_r.so;ServerName=**servername**;CommLinks=tcpip(host=**workstation_ip**:2638)'

with CREDENTIAL TYPE 'PASSWORD' USING

'user=DBA;password=sql';

 

As a result HANA Studio threw an error:

Could not execute 'create remote source TESTIQ adapter iqodbc configuration ...' in 3.310 seconds .

Data receive failed [Connection reset].

 

Furthermore, an attempt to connect HANA DB to itself via smart data access also failed, the error was the same.

 

What steps can I do to fix it?

 

Best regards,

Alex

Wrong Aggregation using Hierarchy in HANA MDX Provider with Excel or MDX in Hana Studio

$
0
0

Hello to everyone,

I get wrong results for Calculated Measures and DistinctCount Measures when querying my AnalyticView with hierarchy using SAP HANA MDX Provider in Excel or HANA Studio. If I query Sum Measures everything is fine.

 

Tested with Client Tools and Database Release 70 and 80

 

Querying Totals (Period 2013)  from AnalyticView in Excel - > correct results

 

Sum MeasureCalculated MeasureDistinctCount Measure
1.626.000   34.595,74   4

 

Querying Totals with Period hierarchy from AnalyticView in Excel or Hana Studi -> correct results for SUM, wrong results for Calculated Measures and DistinctCount Measure.

 

PeriodSum MeasureCalculated MeasureDistinctCount Measure
20131.626.000   245.114,3   9
  Q2/2013 862.000   86.600,0   4
    04/2013 600.000   24.000,0   1
    05/2013 204.000   51.000,0   1
    06/2013 58.000   11.600,0   2
  Q3/2013 764.000   158.514,3   5
    07/2013 600.000   85.714,3   2
    08/2013 114.000   22.800,0   2
    09/2013 50.000   50.000,0   1
Total          1.626.000   245.114,3   9

 

 

At the Month level the calculation is correct. Aggregation for Quarter and Year for Calculated and Distinct are wrong. Aggregation method for Calculated and DistinctCount Measure in conjunction with hierarchy seems to be sum.

 

Is this a known issue?

 

 

Thanks in advance,

Ulf

Analytic Privilege : Something went wrong

$
0
0

Hi folks,

I am trying Analytic Privilege on SP08 system(doesn't matter what the system level is, but still ).

 

I created two tables in the schema "SREEHARIV" associated to the user "SREEHARIV".

Tables are Products and Desc.

 

Then I created one attribute view which joins the Products and descriptions (just like MARA and MAKT ).

 

Output result set

Data Preview.JPG

Now my intention is to make the user SREEHARIV to see only the data from country INDIA.

So I am creating an Analytic privilege with Country as attribute(is it the right way ?) .

AP.JPG

After activating it, I added the same analytic privilege to SREEHARIV user.

 

Then, to test the same , I created a XSJS service which will query the attribute view.

 

 

var query = 'SELECT "PNAME","TEXT","COUNTRY","TURNOVER" FROM "_SYS_BIC"."Sreehari/ATR_PRODUCTS"';
var output = [];
try{  var dbconn = $.db.getConnection();  var pstmt  = dbconn.prepareStatement(query);  var rs = pstmt.executeQuery();  while(rs.next()){  output.push({  PNAME : rs.getString(1),  TEXT : rs.getString(2),  COUNTRY : rs.getString(3)  });  }  $.response.setBody(JSON.stringify(output));
}
catch(err){  $.response.setBody(err.message);
}

And I am getting the whole records returned .

output.JPG

I believe it is a logical mistake I am doing . Please correct me if this is not the exact use of analytical privileges . Please don't pump me the Development guide URL

 

Thanks in Advance ,

Sreehari

Calculation View Filters

$
0
0

Given that my Googling so far has not provided the answer I've been looking for ... the chances are that I'l trying to do something that should not be done !

(I'm a SQL Server developer trying to get used to the HANA world)

But let's see....

 

I have created an Attribute view - all good.

Now I want to create several Views ontop of that.

Each new view will have different filters to produce specific results.

 

So I created a Graphical Calculation View.

Added my AV to the Projection.

Added my output columns.

 

But for the life of me .... I cannot figure out how to apply a filter !?

I've googled 'HANA Calculation View Filter' and such variants;  but nothing relevant in results !

I have right clicked everything in sight to find a context menu option; but nothing.

 

What I have found are references to 'Parameters'.

Some of these references indicated that they produce a user prompt - and that is no use in my situation.

 

What I have managed to do, is apply a filter via the 'Semantics' component of the Designer.

This successfully filters results when viewed in the 'Open In Data Preview" ;  however....

when I call the data from SAP Information Steward .... the data is NOT filtered.

 

 

I am obviously missing some basic concept in my understanding.

Yet after hours & hours of reading guides and articles ... noone seems to explain from a high level what the options are.

 

 

Any advice, pointers, references  welcome !

 

Many Thanks

HANA XS Social Media API Call (Twitter, Facebook) HTTP Traffic

$
0
0

Hello world,

 

so since start of the year I struggle with loading data from twitter inside HANA with HANA XSJS dev methods. So since SP07 there are timed batch jobs with xsjs development it should be really easy to load some data inside HANA.

 

So far so good...

 

To start I choose twitter api, which like most api's require oauth. So I was able to build my own oauth token and testet a twitter api request with this oauth token from my local machine. It worked and this is not the problem. The request was really simple, a http GET with one header field "Authorization" : "my oAuth token"

 

But when I do this on HANA twitter gives be a code 32 bad request message.

 

I alredy do request other apis like weather or financial data, so http communication is working.

 

I tried to find my request in the web dispatcher log to take a look at how my http request to twitter exactly looks like. Increasing log level to max, but I do not see the outgoing request!!!

 

anybody has any idea where to find my http request, here's my call, already debuged it:

 

var dest = $.net.http.readDestination("mypackagepath", "twitter");
var client = new $.net.http.Client();
//var req = new $.web.WebRequest($.net.http.GET, "?q=" + query);
var req = new $.net.http.Request($.net.http.GET, "/1.1/search/tweets.json?q=mytags" );
var oauth_header = get_oauth_header(query);
//req.parameters.set("Authorization",oauth_header );
req.headers.set("Content-Type", "application/x-www-form-urlencoded");
req.headers.set("host", "api.twitter.com");
req.headers.set("Authorization", oauth_header);
//client.request(req, "http://api.twitter.com","myproxy:myport" );
//$.trace.debug(oauth_header);
client.request(req, dest);
var response = client.getResponse();

Attribute-View vs. ABAP Join vs. "regular" View

$
0
0

Hello Guys,

 

I read alot about Attribute Views in HANA. But I just cannot find an answer, maybe it is too obvious?!

What are the advantages taking a

 

SAP HANA Attribute-Views

            vs.

JOINs in my ABAP Code

            vs.

"regular" Views in the ABAP Dictionary?

 

considering, I do not need the Attribute-Views as a basis for dimensions in Analytic-Views.

 

Looking forward for the discussion.

Guido

Basket Analysis with the help of SAP HANA

$
0
0

Hi!

 

We want to try Basket Analysis with the help of SAP HANA. To be more specific, we want to use information from sales check which will be sent to our SAP HANA dwh, than it will return special offer for the customer. The offer will be printed on the sales check.

Could you please help me to understand how it can be done? How is it labor-intesive and how would you estimate manhours for such task?

Thank you!


SQL Function to Split string according to pattern

$
0
0

Hi,

 

Want to split string value according to its spectator pattern.

For e.g Input string is 'A,B,C,' . Function should return table for this input string value as below.

NoX
1A
2B
3

C

 

Have written below function, But its not working as expected.

 

CREATE FUNCTION FN_STRING_SPLIT (IP_STRING NVARCHAR(5000)) RETURNS TABLE (A NVARCHAR(50))

LANGUAGE SQLSCRIPT AS

 

 

V_OUT VARCHAR(100):='';

V_OUT1 VARCHAR(100):='';

V_SUBSTR VARCHAR(100):='';

V_SUBSTR1 VARCHAR(100):='';

V_START_INDEX INTEGER;

V_COUNT INTEGER:=0;

BEGIN

 

 

V_OUT:=SUBSTR_BEFORE(:IP_STRING,',');

 

 

WHILE(LENGTH(V_OUT)>0) DO

 

 

V_OUT1:=:V_OUT1||:V_OUT;

 

 

V_SUBSTR:=:V_SUBSTR||:V_OUT;

V_COUNT:=:V_COUNT+1;

 

 

/*V_START_INDEX:=LENGTH(IP_STRING)-LENGTH(V_SUBSTR);*/

 

 

V_SUBSTR1:=SUBSTR(:IP_STRING,LENGTH(:V_SUBSTR)+:V_COUNT,LENGTH(:IP_STRING));

 

 

V_OUT1:=:V_SUBSTR1;

V_OUT:=SUBSTR_BEFORE(:V_SUBSTR1,',');

 

 

 

 

 

/*V_OUT1 = SELECT * FROM :V_OUT1 UNION SELECT * FROM :V_OUT;*/

 

 

 

 

END WHILE;

 

 

RETURN select :V_OUT1 as A from dummy;

END;

 

Please suggest proper solution.

Thanks in advance.

 

regards,

Shweta

Information view wizard problem

$
0
0

Hi all,

 

I was trying for hours to obtain a solution for this ... Problem? with no success.

let me explain the situation.

 

When trying to use hana studio, in order to create a information view, for example Calculated view, I cannot see all the options like this video shows:

 

HANA Academy -- Attribute, Analytic and Calculation Views example - YouTube

 

I cannot see the next button and select the tables to create a calculation view. actually in the first instance this shouldn't be a problem because I could add aggregations objects and projections and got the schema that I need, but is imposible to avoid the wizard's suggested schema.

 

what should I need to do in order to get that interface?

 

my system is HANA SP6

 

thanks in advance.

Case difference between table fields and fields in output Table type

$
0
0

Hi Experts,

     I have created a Table type through CDS. The definition is

type tt_bp_addresses {

   PartnerId : String(10);

   PartnerRole : String(3);

  EmailAddress : String(255);

  CompanyName : String(80);

  AddressId : String(10);

  City : String(40);

  PostalCode : String(10);

  Street : String(60);

};

 

When the CDS file is activated, a table type is created with all fields in UPPERCASE.

 

I have a procedure created.

 

PROCEDURE "openSAPHANA_prj1"."openSAP_Proj_1.model::get_bp_addresses_by_role_sql" (

  in PartnerRole nvarchar(3),

  out bp_addresses openSAPHANA_prj1."openSAP_Proj_1.data::datadef.tt_bp_addresses"

)

  LANGUAGE SQLSCRIPT

  SQL SECURITY INVOKER

  --DEFAULT SCHEMA <default_schema_name>

  READS SQL DATA AS

BEGIN

 

bp_addresses = Select a."PartnerId", a."PartnerRole", a."EmailAddress", a."CompanyName",

  a."AddressId", b."City", b."PostalCode", b."Street"

  from "SAP_HANA_EPM_DEMO"."sap.hana.democontent.epm.data::businessPartner" as a

  inner join "SAP_HANA_EPM_DEMO"."sap.hana.democontent.epm.data::addresses" as b

  on a."AddressId" = b."AddressId"

  where a."PartnerRole" = :PartnerRole;

 

END;

 

bp_address is of type tt_bp_address.

 

When I try to activate the Procedure, i get an error msg .

Could not create catalog object: return type mismatch; Attribute name "PARTNERID"  different from Attribute name: "PartnerId" : line 15 col 2 (at pos 410)

 

I understand that this has to do with the difference between the cases, but my question is can we create a Table Type in CDS with field names in mixed case. Since we cannot change the table field names, whats the solution then ?

 

Thanks in Advance,

Neeraj

Difference between referential join and inner join

$
0
0

Hello Team

 

                  Can some one please suggest the actual  difference between the inner join and referential join. It's quite confusing .

 

Regards

Error Activating Projects

$
0
0

Hi Everyone,

 

Anytime I try and activate any file I receive this error.

 

Repository operation failed

Repository request failed. Cause: Repository: User is not authorized to execute specified operation;User 'DEV_2I2WXQMNCDJHDX722VDLI317U' has no authorization, privilege: 'REPO.READ', package: 'hihanaxs.".settings"'!, code: 40,156, argument:

Repository request failed. Cause: Repository: User is not authorized to execute specified operation;User 'DEV_2I2WXQMNCDJHDX722VDLI317U' has no authorization, privilege: 'REPO.READ', package: 'hihanaxs'!, code: 40,156, argument:

 

This is happening with any new files I try to activate. It came on all of a sudden, I have been working on projects the with no issue lately. I have even recreated a new fresh Hana XS instance and tried to complete the 8 Easy Steps To Develop an XS Application (http://scn.sap.com/community/developer-center/cloud-platform/blog/2013/10/17/8-easy-steps-to-develop-an-xs-application-on-the-sap-hana-cloud-platform) but upon the first activation receive the above error.

 

I have went through the other solutions posted in other questions with activation issue but none for me have worked.

 

I am using Hana Cloud Studio (Rev 73). If you require any information please don't hesitate to ask.

 

Thank you very much for any help you can provide on this matter,

Keith.

Viewing all 6412 articles
Browse latest View live


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