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

Re: Import with replace command into existing schema

$
0
0

Hi Akhil,

 

I was incomplete and partially incorrect on my answer.


If you export in CSV the data will be appended, so for NEW data it will not be a problem:

IMPORT - SAP HANA SQL and System Views Reference - SAP Library

 

For old that you can carrefully delete it previously. Example:

Table XPTO with PK (FIELD1, FIELD2)

DELETE FROM B.XPTO WHERE EXISTS (SELECT 1 FROM A.XPTO WHERE A.FIELD1=B.FIELD1 and A.FIELD2=B.FIELD2);

 

or within in

DELETE FROM B.XPTO WHERE (FIELD1,FIELD2) IN (SELECT FIELD1,FIELD2 FROM A.XPTO);

 

Regards, Fernando Da Rós


Re: BOBJ on top of HANA server.

$
0
0

Hi,

 

Until this moment no, the SAP BO components needs to run on other dedicated server machine as it have her own architecture, and it's different from HANA architecture.

 

For instead, SAP BO uses Tomcat instead of XS to publish reports.

 

Best Regards,

 

Rodrigo.

Re: HANA shows bad performance with large dataset join

$
0
0

Hi Axel,

 

What revision you are using? the picture seems a bit "old"

 

For what you are trying to do probably you will see improvement setting ExecuteIn=SQL Engine on properties of your view. (previous versions call it as enforceSQLExecution flag on semantics). That you use of join engine and not materialize inner results saving memory and CPU.

 

Anyhow, make sense of you are trying to do? Why you want in hands 73mi records?

 

If this table has only status make sense for you the aggregation node at end? Are you counting?

 

I don't know these tables by heart.

 

Regards, Fernando Da Rós

Re: Rev 83 Upgrade error

$
0
0

Hello all

 

i get the segmentation fault error with hdbupd.this error comes while upgrading to Rev 83 from Rev 70.

 

Thank you

shankar

How to connect to hana via python using the hdbuserstore key ?

$
0
0

I am looking for a way to connect to hana  via python by just using the hdbuserstore key and not using the username and password.

Is there a way to do it via the odbc driver comes bundled with hana client.

Re: Urgent help : Can i be able to grant privileges to my own applications and packages.

Re: ERROR: Request execution failed due to missing privileges

$
0
0

Hi Prashanth,

 

As the .xsaccess file implies, you need at least the application privilege "p1940932600trial.newtrialinstance.shine.SHINE::Basic" to access the app. Usually this application privilege is included in a certain hdbrole in SHINE.

 

Since you use HCP trial, I think you need to call HCP.HCP_GRANT_ROLE_TO_USER to grant the hdbrole to your end user P1940932600.

 

You can have a look at this help doc SAP HANA Cloud Platform and this unit in "Next Steps in SAP HANA Cloud Platform" course on openSAP https://open.sap.com/courses/hanacloud2-1/items/5h5JCEQCIvj6NOSztZpSX1

 

Best regards,

Wenjun

Re: Content Catalog Package Schema in HANA

$
0
0

Hi Adhvi,

 

Here is my understanding.

 

Catalog: It displays all runtime objects such as tables, SQL views, procedures, sequences which are grouped by different schema.

 

Content: It focuses more on modeling and design-time objects like XS stuff which are stored in the repository of SAP HANA. When you activate some XS stuff, e.g., .hdbdd and .hdbsequence, they will appear in catalog, since they are activated to runtime objects now.

 

Schema: As you said, it is like a folder which holds runtime objects like tables, views, procedures, sequences. Usually each user will have its own schema. If you want to have a look at the stuff in other's schema, you need corresponding privileges/roles.

 

Package: Like runtime objects can be stored in different schema, desing-time objects can also be placed in different packages/subpackages.

 

So in SAP HANA Studio, when you open Catalog, you will first see Schema; when you open Content, you will first see packages.

 

Best regards,

Wenjun


Re: get record not satisfying join condition

$
0
0

Hi Suraj,

 

Regarding your problem, I think you can just use the following SQL to achieve this.

 

SELECT MATERIAL, SOURCE_PLANT FROM T2 EXCEPT SELECT * FROM T1;

 

Best regards,

Wenjun

Re: ERROR: Request execution failed due to missing privileges

$
0
0

Thank you Wenjun for the response,

 

I tried giving the HCP.HCP_GRANT_ROLE_TO_USER to the user P1940932600 it was saying that the schema i can work only on is "_SYS_BIC" not "HCP"

 

and I tried changing the schema to "HCP" but unfortunately SHINE cannot work on "HCP" I think, i may be wrong.

 

 

And for your information i cannot see the _SYS_BIC schema in my catalog folder in the system but i can see HCP, _SYS_BI,_SYS etc schema's. MAY BE THIS IS THE PROBLEM i dont know.


sure, i will try the way you suggested again and, i will refer the links you sent, I let you know if that works.


Thanks,

Prashanth.




Re: ERROR: Request execution failed due to missing privileges

$
0
0

FYI,

 

Could not execute 'CALL ...' in 2.453 seconds .

[129]: transaction rolled back by an internal error:  [129] "HCP"."HCP_GRANT_ROLE_TO_USER": line 14 col 11 (at pos 849): [129] (range 3): transaction rolled back by an internal error: transaction rolled back by an internal error:  [129] "HCP"."SYNCHRONIZE_HCP_ROLES": line 22 col 12 (at pos 1518): [129] (range 3): transaction rolled back by an internal error: transaction rolled back by an internal error:  [129] "HCP"."SYNCHRONIZE_HCP_ROLE": line 41 col 4 (at pos 2685): [129] (range 3): transaction rolled back by an internal error: user-defined error:  [10001] "HCP"."DEPENDENCY_VALIDATOR": line 20 col 8 (at pos 1127): [10001] (range 3) user-defined error exception: Using schema _SYS_BIC is not allowed. Schema level privilege is allowed only for you dev schema!

 

 

i may be missing something, i will recheck it.

 

Thanks,

Prashanth.

Re: ERROR: Request execution failed due to missing privileges

Re: ERROR: Request execution failed due to missing privileges

$
0
0

call "HCP"."HCP_GRANT_ACTIVATED_ROLE"('p1940932600trial.newtrialinstance.shine.SHINE.roles::shineAdmin')

 

--i created new roles shineAdmin, shineUser

Re: SAP Working Capital Analytics Crashing : how to trace and correct ?

$
0
0

Have you generated the time data in HANA system? Via HANA Studio->Quick Launch->Generate Time Data... for year,month and day? After generating this do you still get this error?

Re: get record not satisfying join condition

$
0
0

Hi

 

Any inputs on this? I am not able to achieve it yet..

 

Please help

 

Thanks

 

Wenjun Zhou, I tried the above but I get the error, I think it is because it cannot read calculation view..


Re: get record not satisfying join condition

$
0
0

What error did you get? I just tested two tables and it works.

 

CREATE COLUMN TABLE T1 (

  MATERIAL VARCHAR(10),

  SOURCE_PLANT VARCHAR(10)

);

 

 

 

INSERT INTO T1 VALUES ('M1', 'SYW1');

INSERT INTO T1 VALUES ('M2', 'SWW1');

INSERT INTO T1 VALUES ('M4', 'AABB');

INSERT INTO T1 VALUES ('M5', 'AEW1');

INSERT INTO T1 VALUES ('M6', 'AYW1');

INSERT INTO T1 VALUES ('M7', 'AABB');

 

 

 

CREATE COLUMN TABLE T2 (

  MATERIAL VARCHAR(10),

  RECEIVING_PLANT VARCHAR(10),

  SOURCE_PLANT VARCHAR(10),

  PROC_TYPE VARCHAR(10)

);

 

 

 

INSERT INTO T2 VALUES ('M1', 'AEW1', 'SYW1', 'SY');

INSERT INTO T2 VALUES ('M2', 'AYW1', 'SWW1', 'SW');

INSERT INTO T2 VALUES ('M3', 'AZW1', 'DWW1', 'DW');

 

Capture.PNG

Re: Optimal large column structure

$
0
0

Not sure why or how you would go on with "break the column down into multiple schemas" - but that's your thing anyhow.

 

For SAP HANA large columns (as in many records) don't pose a problem.

Technically you have a limitation of 2 billion records per table or per partition.

Currently (SPS 8) you can have 1000 partitions per table, which would allow you to store 2.000 billion records in a single table.

 

Depending on the data distribution in each of your columns, the records can be very efficiently compressed - so the base operation (column scan) can be really fast.

 

As you will see when using SAP HANA, it is more about how your queries look like than how the data is actually stored.

 

So, if you ask me, you would never try to split a column into multiple schemas. If you really have to do it, you may partition a table.

if that doesn't allow your data to be stored, you anyhow need to think in more details about the data structures you use and what kind of processing you want to do.

 

- Lars

Re: PAK : TREX Planning Engine error

Data manipulation in HANA vs BW

$
0
0

Hi, I'm struggling a bit to understand where exactly in HANA, the Data Transformation happens?

In BW, I know that if I have the data sitting in the DSO 1 and then this data get's loaded to Cube 1, I can transform the data in the Transformation between DSO1 to Cube 1 (through fields transformations, Routines, Formulas, Start Routines, End routiunes...etc)

 

where the same types of transformation is done in HANA, is it done directly in the Calculation View itself? But what if I need to have stage the data first and only then to work on it?

for example, In the above case, I first have my DSO 1 send the data to the cube, on the way to the Cube, first it gets enhanced by adding 3 additional fields through lookups from some other DSO 2 and only after I have those  3 additional fields added, I perform some calculation on that new set of data and only then it gets loaded to the Cube 1...

 

Where do I do this in HANA ??

 

I guess I'm struggling to understand, if I need to stage the data somewhere in HANA first and then to do the manipulations on that data? Isn't it expensive way, since it's all In-Memory?

 

Thanks,

Enabling search box on Prompt/Filter using Analysis for Microsoft Excel API Method

$
0
0

Hi,

 

I am using API Method SAPCallMemberSelector in My Macro Code in Analysis for Microsoft Excel Report to call my HANA hierarchy built on a Calculation View

 

RESULT = Application.Run("SAPCallMemberSelector", "DS_1", "FILTER", "XYZ", "", "MULTIPLE")

 

XYZ - Hierarchy Child Column

 

But note in Highlighted Part the search box is disabled.

 

Is there any way to enable it ?

 

hier.JPG

Thanks

Viewing all 9165 articles
Browse latest View live


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