Quantcast
Channel: SCN : All Content - SAP HANA Developer Center
Viewing all 6745 articles
Browse latest View live

[SAP Marketplace] SAP Hana Vora: No data available

$
0
0

Hello,

 

I'am unable to find SAP Hana Vora packages. I have this message:No data available. When I try to download SAP Hana vora from   Installation& Upgrades and also from Support& Packages&Patches.

 

Is it an issue with my S-User (no permission for this download) or is it from SAP side?

 

Is there any alternative way to get these packages? (CAL: developer edition)

 

Thank you and regards,

Mehdi.


table export failed: [4001] attribute inconsistent;joinConditionjoin3_0_join3_1_concat

$
0
0

Hello Experts

When trying to export an Schema I'm getting this error:

 

table export failed:  [4001] attribute inconsistent;joinConditionjoin3_0_join3_1_concat

 

2015-12-10_155332.png

I tried to do it by the user interface on hana studio.

 

This is an schema that shares some virtual tables on another Schema.

maybe that is the cause for this error

 

hope you'll be able to help me

 

Best Regards

Gabriela López León

SAP HANA XSODATA - rewrite_rules (Vanity URL)

$
0
0

Hello

 

Is there a option to shorten the xsodata url using rewrite_rules or by other means ?

 

Thanks.

BLOB data insert into Table in SAP HANA

$
0
0

Hello Hana Experts,

 

Is it possible to achieve below scenario in SAP Hana?

 

Scenario: We are able to insert the .csv file(data size is huge)  into SAP HANA with column type : BLOB is successful as shown in below image:

HANA1.JPG

 

After this we want to read the content of the .csv and split the data into smaller parts with help of delimiter(like , or / etc)  or other conditions and put the data into another table and display as column based on the result.

 

1. How to read the content of the BLOB data which is unknown. Is it achieve by writing the SQL procedure language or any other techniques.

2. Please suggest us the better solutions how we can achieve such scenario in SAP HANA.

 

Thanking you.

 

Regards,

Pad

How to calculate Surplus w.r.t the previously changed value?

$
0
0

Dear Team,

 

I have a scenario where I need to calculate the surplus/ shortage as (Surplus of previous entry - Pegging Qty of current entry). The values are already available with me. But since there is a change in one of the entries(2nd entry below) I need to re-calculate for all the following entries.

 

Recpt Qty     Pegg Qty     Surplus

1000               287               713

1000               0                    713  = Entry which is changed from 427

1000               300               700

1000               200               500

 

The result should look like this:

 

Recpt Qty     Pegg Qty     Surplus

1000               287               713    <== 1000 - 287

1000               0                    713    <== 713 - 0

1000               300               413    <== 713 - 300

1000               200               213    <== 413 - 200

 

I am using the LAG window function to get the previous value. When I come to the 4th entry the calculation goes 700 - 200 = 500, whereas it should be 413 - 200 = 213. The LAG window function will take the previous entry from the table, but I need to consider the changed previous entry.

How can I approach !!!

 

Thanks in advance.

Mayur

Split function in HANA

$
0
0

Hello,

 

I am trying to create a function in HANA in which I want to apply the following logic:

 

Pass a comma separated string to the function and the function returns a table/list containing all the comma-separated strings.

 

Fox example, if I pass the string as ABC, DEF,GHI,JKL

then the function returns me a table having the following output in a column:

ABC

DEF

GHI

JKL

 

Thanks,

Yash

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

How to make an ODS View good for join in Composite Provider

$
0
0

Hi to all,

i have a problem, no matter how try but in every ODS view that i create, it never shows "CalcScenario Used" "Yes" and, for this reason, i cannot do the join in my composite provider involving the ODS View.

 

That's the screenshot:

Cattura.PNG

Cattura2.PNG

 

I have done a calculation view and used a remote source to create a Virtual Table to upload it in the ODS View.

It seems to me that i have satisfied all the requirements.

 

 

I am using this guideline:

 

Solution

As of BW 7.40 SP8, the Open ODS View supports HANA Optimized Query Execution using the SAP HANA Calculation Engine. Depending on the BW query mode, certain OLAP calculations can be pushed down to HANA to optimize the query runtime.

As a prerequisite, a column view of type Calculation Scenario is required. The Open ODS Views of semantic "Facts" now have a new property called "CalcScenario used". The property describes if such a Calculation Scenario has been created. No user interaction is required, since the property is automatically determined during InfoProvider Activation.

Prerequisites for Calcuation Scenarios of Open ODS Views

  1. Semantics:
    A Calculation Scenario is only created for Semantics 'Facts'. Associated Master Data (InfoObjects, ODS Views) are contained in the Calculation Scenario.
  2. Source Types:
    Supported Source Types are 'Virtual Table using SAP HANA Smart Data Access', 'Database Table or View' and Advanced DataStore Object.
  3. Source Object:
    Only Column Store Table and Virtual Tables are currently supported. Rowstore Tables or Database Views are currently not supported. This prerequisite also applies to all associated ODS Views.
  4. Field Data Types of Source Object: Certain Data Types can not be supported yet as view fields in the Calculation Scenario:
    - Binary types (VARBINARY, BLOB) are in general not supported in the ODS View.
    - LOB Data Types: CLOB, NCLOB, TEXT, BINTEXT
    - Fixed-point decimals (e.g. DECIMAL(p,s)), which have an association to a BW Keyfigure with floating point number
    - Fields with associations to BW Keyfigures with datatype decimal float 34

 

 

 

If you need further information, please ask.

 

Sorry in advance if my question is not elaborated well enough but i am still a newbie with Hana Studio.


Consume data from HCP IoT Services with WebSockets on UI5

$
0
0

Hi HANA and IoT folks out there,

 

I´m not sure if its the correct place/group for asking this question. I´d like to give it a try though.

 

At the moment I am working with the HCP IoT Services. I´d like to develop a XS demo application with as Tessel connected to the IoT Services. Pushing data from my Tessel into HCP works pretty good and is no problem. I´ve connected the IoT application to my HANA XS instance and data gets stored into the corresponding schema.

 

Now, I´d like to push new data which, arrives from my tessel, straight forward to the UI (technology is UI5) using a WebSocket connection and as a consequence of this avoiding polling data from the UI in a given interval. To sum it up, my aim is showing data in realtime as it arrives with UI5.

 

So I need something which listens to the IoT services. Maybe subscribed to a device connected to the mentioned services...

 

Does anybody of you know an approach / a solution for realizing this scenario within the XS Framework?? (I´ve read something about coding WebSockets with the help of Java, but if it´s possible I´d like to avoid this and use HANA XS given features - if there are some features for such a case ...)

 

Some additional information in terms of the HCP I am using: It´s the HCP trial account

 

Thank you in advance and hopefully there is somebody out there having some ideas / hints ...

 

Best,

Alex

XS Advanced: Update to Patch Level 13 failed

$
0
0

Hello,

I just tried to update my XS Advanced from Patch Level 9 (from initial installation of Rev. 110) to Patch Level 13 (latest available) after installing HANA Rev. 111.

 

Basically everything went OK, but in the end I got an error:

 

6:05:38.321 - INFO:   ---------------------------------------------------------
16:05:38.321 - INFO:   Calling postInstall event handler
16:05:38.321 - INFO:   ---------------------------------------------------------
16:05:38.321 - INFO:     isUpdate=1
16:05:38.321 - INFO:     -------------------------------------------------------
16:05:38.321 - INFO:     Starting system...
16:05:38.321 - INFO:     -------------------------------------------------------
16:05:38.322 - INFO:       Starting instance on host 'hdb' (worker, xs_worker)...
16:05:38.322 - INFO:       Parameters: instance number = 00, user = hdbadm
16:05:38.326 - INFO:         Instance is already running
16:05:38.326 - INFO:       Instance on host 'hdb' (worker, xs_worker) started
16:05:38.326 - INFO:     -------------------------------------------------------
16:05:38.326 - INFO:     END: Start system
16:05:38.326 - INFO:     -------------------------------------------------------
16:05:38.326 - INFO:     Configuring software...
16:05:38.326 - INFO:       6 Package(s) installed
16:05:38.326 - INFO:       baseVersion = 1.00.00.262519
16:05:38.326 - INFO:       Write parameters to secure store
16:05:38.379 - INFO:     Starting external program /hana/shared/HDB/xs/installation-scripts/installation/storeParameters
16:05:38.380 - INFO:       Command line is: /hana/shared/HDB/xs/installation-scripts/installation/storeParameters
16:05:38.584 - INFO:       Output line 1: Initially filling HANA Secure Store with parameters
16:05:38.634 - INFO:       Output line 2: RSecSSFs: Entering function "RSecSSFsGetRecord" [/bas/745_REL/src/krn/rsec/rsecssfs.c 1433]
16:05:38.634 - INFO:       Output line 3: RSecSSFs: Using explicitly set configuration data [/bas/745_REL/src/krn/rsec/rsecssfs.c 7811]
16:05:38.634 - INFO:       Output line 4: RSecSSFs: SSFS-1440: File "/usr/sap/HDB/HDB/SYS/global/security/rsecssfs/data/SSFS_HDB.DAT" cannot be opened in mode "rb": No such file or directory (errno = 2) [/bas/745_REL/src/krn/rsec/rsecssfs.c 1794]
16:05:38.634 - INFO:       Output line 5: RSecSSFs: SSFS-4182: Data file "/usr/sap/HDB/HDB/SYS/global/security/rsecssfs/data/SSFS_HDB.DAT" does not exist (this is not an error per se: a non-existing data file is a valid situation and treated equally as one without entries) [/bas/745_REL/src/krn/rsec/rsecssfs.c 4908]
16:05:38.634 - INFO:       Output line 6: RSecSSFs: SSFS-4187: Record with key "XSA/CORE/RUNTIME_DB_USER_NAME" not found in secure storage [/bas/745_REL/src/krn/rsec/rsecssfs.c 4911]
16:05:38.634 - INFO:       Output line 7: RSecSSFs: Exiting function "RSecSSFsGetRecord" with return code 1 (message: SSFS-4187: Record with key "XSA/CORE/RUNTIME_DB_USER_NAME" not found in secure storage <-- SSFS-4182: Data file "/usr/sap/HDB/HDB/SYS/global/security/rsecssfs/data/SSFS_HDB.DAT" does not exist (this is not an error per se: a non-existing data file is a valid situation and treated equally as one without entries) <-- SSFS-1440: File "/usr/sap/HDB/HDB/SYS/global/security/rsecssfs/data/SSFS_HDB.DAT" cannot be opened in mode "rb": No such file or directory (errno = 2)) [/bas/745_REL/src/krn/rsec/rsecssfs.c 1522]
16:05:40.916 - INFO:       Output line 8: Exception in thread "main" com.sap.security.nw.SecStoreFS.SecStoreFSException: SSFS-1560: Could not open lockfile; open(/usr/sap/HDB/HDB/SYS/global/security/rsecssfs/data/SSFS_HDB.LCK) == 2 (No such file or directory) [17=EEXIST,13=EACCES,2=ENOENT,22=EINVAL,20=ENOTDIR] (RC = -3)
16:05:40.916 - INFO:       Output line 9: at com.sap.security.nw.SecStoreFS.SecStoreFS.putRecord(Native Method)
16:05:40.917 - INFO:       Output line 10: at com.sap.xs2rt.installation.impl.util.InstallationParameterWriterSecureStoreImpl.initParameters(InstallationParameterWriterSecureStoreImpl.java:235)
16:05:40.917 - INFO:       Output line 11: at com.sap.xs2rt.installation.impl.util.InstallationParameterWriterSecureStoreImpl.<init>(InstallationParameterWriterSecureStoreImpl.java:213)
16:05:40.917 - INFO:       Output line 12: at com.sap.xs2rt.installation.impl.util.InstallationParameterWriterSecureStoreImpl.createFromStdIn(InstallationParameterWriterSecureStoreImpl.java:142)
16:05:40.917 - INFO:       Output line 13: at com.sap.xs2rt.installation.impl.util.InstallationParameterWriterSecureStoreImpl.main(InstallationParameterWriterSecureStoreImpl.java:121)
16:05:40.922 - INFO:       Program terminated with exit code 1
16:05:40.922 - INFO:     Failed to write parameters to secure store.
16:05:40.922 - ERR :     Custom event postInstall failed
16:05:40.922 - INFO:   ---------------------------------------------------------
16:05:40.922 - INFO:   END: postInstall event handler (start: 16:05:38.321 duration: 00:00:02.601)
16:05:40.922 - INFO:   ---------------------------------------------------------
16:05:40.923 - INFO: -----------------------------------------------------------
16:05:40.923 - INFO: END: Installing SAP HANA XS RUNTIME (start: 16:05:17.192 duration: 00:00:23.730)
16:05:40.923 - INFO: -----------------------------------------------------------
16:05:40.922 - ERR : Cannot install
16:05:40.923 - ERR : error installing
16:05:40.923 - ERR : Installation failed
16:05:40.923 - INFO: Summary of critical errors
16:05:40.923 - ERR :   Installation failed
16:05:40.923 - ERR :     error installing
16:05:40.922 - ERR :       Cannot install
16:05:40.922 - ERR :         Custom event postInstall failed

 

 

Of course the file /usr/sap/HDB/HDB/SYS/global/security/rsecssfs/data/SSFS_HDB.DAT doesn't exist since it is at /usr/sap/HDB/SYS/global/security/rsecssfs/data/SSFS_HDB.DAT (there is one "/HDB" too much in the path).

 

It looks like installation was nearly complete, but now xscontroller, xsexecagent and xsuaaserver are not running (status red via studio). There are no errors related to those 3 processes in trace folder, but I found out that the number of instances have been set to 0 in daemon.ini configuration file.

 

What am I supposed to do now? Should I try setting the number of instances to 1? Is this an error in PL 13?

Any hints appreciated,

Fabian

Inconsistent calculation model (34011) : expression: Attribute 'substring' is missing in node

$
0
0

Hello Team,

 

I am face an issue when trying Save and activate Calculate

Cause

  Dependent information views might not have been activated successfully

 

 

Recommendations

  1) Check if the dependent information views exist.

  2) Also check if the dependent information views have been activated successfully.

 

 

Error Message

  Repository: Encountered an error in repository runtime extension;Model inconsistency. Create Scenario failed:

 

  Attribute 'locate' is missing in node J_HORAIRE_DISTANCE(CalculationNode (J_HORAIRE_DISTANCE) -> attributes -> calculatedAttribute (CC_N541_KEY) -> expression)

 

  The following errors occured: Inconsistent calculation model (34011)

  Details (Errors):

  - CalculationNode (J_HORAIRE_DISTANCE) -> attributes -> calculatedAttribute (CC_N541_KEY) -> expression: Attribute 'locate' is missing in node J_HORAIRE_DISTANCE.

  - CalculationNode (J_HORAIRE_DISTANCE) -> attributes -> calculatedAttribute (CC_N541_KEY) -> expression: Attribute 'substring' is missing in node J_HORAIRE_DISTANCE.

 

 

Calculated Columns created : CC_N541_KEY  / data type NVARCHAR(20) with Language : SQL

 

substring("SCH_ID", 1, locate("SCH_ID", '-', -1)-1)

 

Sans titre.png

Error.png

 

Thanks

Aymen

Where will modified table configuration details get stored in sap hana?

Group by option in HANA studio in graphical mode

$
0
0

Hi,

 

In calculation view i made union of 2 analytical views having information for 2 plants. now i can see the data in calculation view where i can get aggregation for the column NETWR. Now i want aggregation plant wise, like we do group by in SQL, i need Group by (sub totals) plant wise in graphical mode.

 

Please let me know if we have option avaliable in hana studio for using Group By

 

Thank you

Object Privilege Issue

$
0
0

Hi Experts,

 

I have created a repository work space logging in as USER 'A' (SAY) and went ahead creating project at which point it has given a option to create a schema( name = SCH). I have created few tables in the schema logging in as A user. Now when i am trying to grant access to the schema SCH under object privilege to another user say 'P' i see the options are greyed out.

 

Generally we create schema with the command

 

CREATE SCHEMA sch_name OWNER user_name,

 

but i have created using the option i got while creating the project as mentioned earlier.

 

Please check the attached screen shot.

 

 

Thanks & Regards

Madhusudan

Data extraction with S4 HANA

$
0
0

Hi Gurus,

 

 

 

I am starting the general design of a S4 Hana project (not yet decided which version, 1503 or 1511) and I have some questions about the best approach for outbound interfaces...

 

 

 

I have started to look at classic BAPI extraction functions but I guess that Hana can give much more modern and powerful solutions to extract the transactional data?

 

Could you give me some information about the possible techniques I could use to optimize my data extractions?

 

 

 

I was thinking about building a custom view in Hana studio or use the SAP HANA Direct Extractor Connection (DXC), could you tell me what you think about these tools for automatic data extractions?

 

 

 

Thank you in advance for your help,

 

 

 

Best regards,

 

 

 

Pascal Morizur


How to Pull HANA DB views from mobile

$
0
0

HI experts: do help

 

 

 

   Our scenario:

 

1.We have created Modelling in HANA Db.

2. Now we se  the reports in mobile.

3.what are the configurations to done in HANA DB side?? Also any thing required to be doen in Client side???

4.Through what methods we can acheive this scenario??

 

 

 

 

Thanks in advance

opening balance in calculation view

$
0
0

Hi Expert,

 

i will like to know if there is any way or  procedure i can prepare a calculation view to calculate opening balance.

 

 

if anyone can assist with screenshots on how to achieve i

HANA Certification

$
0
0

Hi Experts,

 

I am planning to give HANAIMP141 certification in the month of May. But in the sap training portal I saw that the certification will expire from July 2016. Does it mean even though I clear HANAIMP141 will it be of no value after July 2016?

Dynamic Tiering: Interactive Graphics Help You through the Installation Process

$
0
0

When installing SAP HANA, you have several choices to make:

  • Use the graphical or console interface?
  • What HANA core and option software to install?
  • Add the worker host during installation or after the fact?

 

With so many choices, finding the steps you need for each task can be a challenge. Wouldn’t it be nice if the documentation could help you figure it out and guide you there?

 

Well now it can.  We’ve added interactive graphics to the installation tasks in the SAP HANA Dynamic Tiering Installation and Update Guide, to help you make choices and guide you through each task in the installation process.

 

At each stage in the installation process, we’ll show you where you are,

Green.png

and what choices are available for the next step.

dark grey.png

We’ll show you an overview of the whole process,

What's to come.png

but won’t let you try a step until you’re ready for it.

 

light grey.png

When you click an available step,

 

Click it.png

 

we’ll take you to the relevant task.

 

Install Graphic1.png

 

When you complete that task, click your next available step,

 

Next.png

 

To go right there.

 

Doc.png

Interactive graphics guide you through the installation process, helping you find the right tasks when you need them. Take a look at the SAP HANA Dynamic Tiering Installation and Update Guide on the Help Portal and give it a try.

 

Note:  Interactive graphics are not available in PDF output.

AFL Connector File

$
0
0

Hi, We are in HANA sp9 rev 97 and studio version is 2.0.20. HANA AFL connector file is not available I checked in pallete as well as project -> new -> other. Appreciate support on this as other threads related to this are not for this version Thanks

Viewing all 6745 articles
Browse latest View live


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