Quantcast
Channel: SCN : Discussion List - SAP HANA and In-Memory Computing
Viewing all 5653 articles
Browse latest View live

How to create and Call Procedure

$
0
0

I experts,

 

I am facing the issue in creating the Procedure.

I have created a procedure as follows:

 

CREATE TYPE tt_mblnr AS TABLE( v_mblnr INTGER);

 

 

CREATE PROCEDURE demo_proc () LANGUAGE SQLSCRIPT READS SQL DATA AS

 

 

BEGIN

 

tt_mblnr = SELECT "MSEG"."SALK3" FROM "HANADBER5"."MSEG" ;

 

 

END;

 

When I execute above code in SQL Editor it works fine, but its giving me an error when I try to create same in PROCEDURE

 

and also could you please suggest me how see the output of the Procedure. I tried calling the Procedure in SQL editor as mentioned below but i am not getting any output.

 

CALL demo_proc() WITH OVERVIEW;

 

Thanks in advance

 

Regards,

Nagaraj


Access stored proceudre from HANA to IDT

$
0
0

Hi,

 

We have a requirement of accessing stored procedure for SAP HANA System into Business objects using Information Design Tool (IDT) for creating .unx universe. I found this forum in search.

http://scn.sap.com/thread/3254543

 

I am not sure what is calculation views and their usage as mentioned in above link. I am new to HANA as well as IDT. Other sites and documents suggests .unx conversion from a .unv (old) universe is not possible if stored procedure is used but I did not find anything saying that .unx universe is not possible to create using stored procedure (from SAP HANA database).

 

Please can any one help me out with the options/method to perform this task or any other details.

 

Thanks in advance.

delete models/package.... in Studio

$
0
0

Hi,

 

when I try to delete an Attr. view which standalone (not being used in any analytical view) using Object owner or with SYSTEM, comes an error

 

Deletion of object ...........

unsupported what for action==delete

 

want to clean up models, packages not necessary anymore

 

regards

Ahmad

Delete entries in Data Provisioning in Hana Studio

$
0
0

Hello,

Does anybody know if it's possible to delete an entry in Data Provisioning in Hana Studio? I stopped the replication of some tables and now I want to delete those entries.

Thanks in advance.

Cheers

Anybody replicating CDHDR or CDPOS tables?

$
0
0

Hi folks,

 

I am interested in knowing if any of you have replicated the huge CDHDR or CDPOS tables and whether this is a good idea to begin with.  For example suppose you wanted to track sales orders that were DELETED (not canceled) from SAP and therefore removed from VB** tables yet entries exist in CDHDR and CDPOS indicating the deletions.  There are of course many ways to tackle a problem such as this, but I'm curious if anybody has used these tables for a similar purpose or really for any reason and if it's a feasible option given the massive amount of triggers that would probably be generated.

 

Thanks,

-Patrick

Is there a way to automate SAP HANA Authorizations?

$
0
0

Hello SAP HANA Friends:

Is there a way to automate the SAP HANA Authorizations?

I'm looking for a way to automate the creation of users, roles and analytic privileges.

Has anyone discovered any scripts that would asist in the development effort?

Regards,

Joe Gonzales

856 912 1136

Is there a way to automate SAP HANA Authorizations?

$
0
0

Hi SAP HANA Friends:

Is there a way to automate the creation of SAP HANA Authorizations?

I'm looking for a way to automate the creations of users, Roles and Analytic Privileges.

Has any discovered any scripts that could assist in this development effort?

Regards,

Joe Gonzales

856 912 1136

HANA Transport Mechanism

$
0
0

Hi All,

 

I'm new to SAP HANA and was wondering how the transport mechanism works for Views Created in HANA Studio.

 

I was just reading a Document which talked about CTS+  ( I'm SAP ABAP Developer - I know CTS )- But I Read CTS+ is used for Non ABAP Objects -Can Some Explain what are Non ABAP Objects .

 

Also as per the document - First I have to create the Views In Packages which are attached to Delivery Unit - Then Download the Delivery Unit to your local PC and then go to STMS and Create a Transport and then attach the Delivery Unit File from Your Local PC and then Release the transport...

 

 

Its almost similar to what i do for SAP ABAP objects but the it asks me instantly when i edit or create a new program - I don't have to download and then attach to transport. Do we have any similar mechanism in SAP HANA or its just the downlaod attach mechanism

 

Also what about the tables that i created in HANA Studio and i believe the tables are not attached to Delivery Unit - How do you move your tables from DEV to QA to PRD

 

Thanks


Not able to insert values in var_out

$
0
0

Hello Experts,

 

I have a script based calc view and i have two columns in the 'var_out' table.

One of these fields is the input to the view, say int_id and the other field is the ext_id, which is calculated by the logic in the script.

 

I try to insert these values directly to the table but I get an error - "could not find table/view var_out in the <schema that I am using>"

 

What am I doing worng? I tried with creating a local table and then adding values, but nothing works!

 

Thanks,

Arpita

Error while creating stored procedure

$
0
0

Hi,

 

I'm trying to create a stored procedure using HANA studio (Ver 45).

But getting error "java.io.IOException: Error loading object, refer to Repository Log for more information". Refer attached document for more details.

Current HANA DB we are using is HPO : (lddbhpo.wdf.sap.corp:30215) where we are facing the above mentioned issue.

 

But when i tried to create the same procedure in another HANA database, it worked.

 

So i'm bit unclear whether its an issue with Studio or something specific to database.

 

Regards,

Sunil

Error while creating stored procedure

$
0
0

Hi,

 

Getting error "java.io.IOException" while creating stored procedure. For details refer the attachments.

This error comes up only with HANA database HPO (lddbhpo.wdf.sap.corp:30215).

 

But when i use different HANA database, i'm able to create the same stored procedure.

Is it something to do with HANA DB roles OR is it related to HANA studio (ver 45).

 

Regards,

Sunil

Date truncate function?

$
0
0

So I have a fact table that has a date field (datatype: TIMESTAMP and it looks like this 2012-09-03 01:00:00.0. I want to create a calculated column where i truncate the timestamp portion of this.I defined a function like this: TRUNC("PROMISE_DATE",'YYYY')

 

But when trying to validate, get an error like this:

    • testpkg.TEST_AV2: ABAP name validity successful
  • Server side validation
    • Activation Id:278
      • Repository: Activation failed for at least one object;At least one runtime reported an error during activation. Please see CheckResults for details
        • Activation is performed with activation mode Cascade one-phase.
        • Internal deployment of object failed;Repository               :                Encountered an error in repository runtime extension;Internal Error:Create Scenario: failed aCalcEngine.createScenario(): The following errors occured: Inconsistent calculation model (34011)nDetails (Errors):n- CalculationNode (finalAggregation) ->
          attributes ->
          calculatedAttribute (PROMISE_DATE_TRUNC) ->
          expression: Attribute 'trunc' is missing in node finalAggregation.nnnprinting XML <?xml version="1.0" encoding="utf-8"?>
          <cubeSchema version="3" operation="createCalculationScenario">
          <calculationScenario name="testpkg/TEST_AV2" schema="_SYS_BIC">
          <dataSources>
          <olapDataSource name="dataSource" schema="_SYS_BIC" view="testpkg/TEST_AV2/olap">

How do we find foreign keys in SAP HANA ?

$
0
0

Hi guys,

 

I have a simple question, How do we find foreign keys in SAP HANA ?

 

Cheers,

Aryan

When doing save and activate of analytical view i am getting below error

$
0
0

When doing save and activate of analytical view i am getting below error

 

 

Message :

Internal deployment of object failed;Repository: Encountered an error in repository runtime extension;Internal Error:Create Scenario: failed aCalcEngine.createScenario(): The following errors occured: Could not create repository entry for scenario (34053)nnprinting XML <?xml version="1.0" encoding="utf-8"?><cubeSchema version="3" operation="createCalculationScenario"><calculationScenario name="mypackage/ANAT" schema="_SYS_BIC"><dataSources><olapDataSource name="dataSource" schema="_SYS_BIC" view="mypackage/ANAT/olap"><attributes><allAttribute/></attributes></olapDataSource></dataSources><calculationViews><aggregation name="finalAggregation" defaultViewFlag="true"><inputs><input name="dataSource"/></inputs><viewAttributes><allViewAttribute/><viewAttribute name="SALE_PRICE"><attributeHints pushDownCountOnAttributeFlag="true"/></viewAttribute><viewAttribute name="CATEGORY"><attributeHints pushDownCountOnAttributeFlag="true"/></viewAttribute><viewAttribute name="ARTICLE_LABEL"><attributeHints pushDownCountOnAttributeFlag="true"/></viewAttribute><calculatedViewAttribute name="express" datatype="fixed" length="12"><formula>"SALE_PRICE" * 10rn</formula></calculatedViewAttribute></viewAttributes><keyfigures><keyfigure name="ARTICLE_ID" aggregationType="sum"/><keyfigure name="AMOUNT_SOLD" aggregationType="sum"/><keyfigure name="QUANTITY_SOLD" aggregationType="sum"/><keyfigure name="SHOP_ID" aggregationType="sum"/><keyfigure name="row.count" aggregationType="count" datatype="fixed" length="18"/></keyfigures><unitConversionInfos/><calculationNodeHints countStarAttribute="row.count"/></aggregation></calculationViews></calculationScenario></cubeSchema>nVersion: 42n

Which module has a good scope in future either SAP HANA or SAP BW?

$
0
0

Hi,

 

I am SAP BO consultant.Currently in the market SAP BI-BO has good demand, but in future( May be after 2 years) SAP HANA has a good demand.

 

In SAP HANA  SAP R/3 data directly replicate to HANA using Sybase replicate server and  SAP BI sources & Non SAP Data sources  should be transformed to SAP HANA using  BODS.

 

In BW 7.3 the DS 4.0 was tightly integrated.

 

Please guide me which module should i learn,  SAP BW 7.3 with BO 4.0 or SAP HANA with BO DS 4.0 & BO 4.0.

 

Thanks & Regards,

Rajesh.


What arethe nexts' to be on HANA?

$
0
0

Dear HANA experts,

 

I'm interested to know what are the nexts' to be on HANA?

 

 

As far as I know there are BW, erp, crm, Business one already on HANA right ?

 

 

Thank for solving my puzzles

Kate

 

 


error while importing .csv file

$
0
0

Hi,

 

I tried to import  flat .csv file from HANA studio. I follow http://scn.sap.com/docs/DOC-27960

 

I have HANA Studio with  1.0.29 and HANA Database with 1.0.26.

 

See the below error:

 

Error.png

 

My Log File:

 

<status>ERROR</status>

<info>Data Load - Batch Information</info>

<message>

<status>ERROR</status>

<info>Batch from Record 1 to 3401 Failed: [301]: unique constraint violated(input position 482)</info>

<error>com.sap.db.jdbc.exceptions.BatchUpdateExceptionSapDB: [301]: unique constraint violated(input position 482)

<br/> at com.sap.db.jdbc.CallableStatementSapDB.executeBatch(CallableStatementSapDB.java:681)

<br/> at com.sap.db.jdbc.trace.PreparedStatement.executeBatch(PreparedStatement.java:615)

<br/> at com.sap.ndb.studio.bi.filedataupload.deploy.populate.PopulateSQLTable.populateTable(PopulateSQLTable.java:89)

<br/> at com.sap.ndb.studio.bi.filedataupload.deploy.job.FileUploaderJob.uploadFlatFile(FileUploaderJob.java:186)

<br/> at com.sap.ndb.studio.bi.filedataupload.deploy.job.FileUploaderJob.run(FileUploaderJob.java:59)

<br/> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

<br/></error>

</message>

 

I am new to HANA Studio and with HANA Database. Can anyone help?

 

Thanks for your time.

 

Regards,

Hardik

Error saving object: Repository: More than one inactive version exists;there exist already 2 inactive versions for object

$
0
0

Any one experienced this issue?

 

I am attempting to import a calc view from rev 47 hana EE to rev 51 hana EE.

 

Message :

    Error saving object: Repository: More than one inactive version exists;there exist already 2 inactive versions for object {tenant: , package: zsls, name: P_CALC, suffix: calculationview}, for following (user, workspace) :  ( usr1,  ),  ( usr2,  ), : Repository: More than one inactive version exists;there exist already 2 inactive versions for object {tenant: , package: zsales, name: P_CALC, suffix: calculationview}, for following (user, workspace) :  ( usr1,  ),  ( usr2,  ),

java.io.IOException: Repository: More than one inactive version exists;there exist already 2 inactive versions for object {tenant: , package: zsls, name: P_CALC, suffix: calculationview}, for following (user, workspace) :  ( usr1,  ),  ( usr2,  ),

    at com.sap.ndb.studio.sdk.resource.repository.core.impl.AbstractResourceController.save(AbstractResourceController.java:1020)

    at com.sap.ndb.studio.sdk.resource.repository.core.impl.ResourceManager.importModels(ResourceManager.java:2334)

    at com.sap.ndb.studio.modeler.job.type.importexport.ImportModelsJob.importObjects(ImportModelsJob.java:74)

    at com.sap.ndb.studio.modeler.job.type.importexport.ImportModelsJob.run(ImportModelsJob.java:59)

    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

Nullable Column with Constraint Error on Insert

$
0
0

When inserting into a table and excluding a value for a nullable column with a foreign key reference, I am getting an error:

 

Could not execute 'INSERT INTO ATTRIBUTE_VALUE (ATTR_VALUE_KEY, ATTR_KEY, VALUE) values (30,1,'VALUE 30-1')' in 43 ms 845 µs . SAP DBTech JDBC: [461]: row locked by other transaction:

 

However, if I provide a valid foreign key reference in the fourth column, the insert will work just fine.

 

Statement 'INSERT INTO ATTRIBUTE_VALUE (ATTR_VALUE_KEY, ATTR_KEY, VALUE, DATA_SOURCE_SYSTEM_KEY) values ...' successfully executed in 27 ms 54 µs  (server processing time: 2 ms 711 µs) - Rows Affected: 1

 

Why is this happening?

Nullable Column with Constraint Error on Insert

$
0
0

I have a table which has a nullable column (ie, Null is allowed), but which also has a foreign key constraint. During an insert, I am getting an error when I leave out the fourth column, which I presume would make the column null:

 

Could not execute 'INSERT INTO ATTRIBUTE_VALUE (ATTR_VALUE_KEY, ATTR_KEY, VALUE) values (30,1,'VALUE 30-1')' in 96 ms 467 µs . SAP DBTech JDBC: [461]: row locked by other transaction:

 

However, if I were to add the a key for the fourth column, DATA_SOURCE_SYSTEM_KEY, referencing a valid row, the insert will work.

 

Why would this happen?

Viewing all 5653 articles
Browse latest View live


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