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

hana studio on top of hana runtime

$
0
0

hi gurus:

 

We are using hana runtime (SAP HANA Platform Ed. 1.0 SPS08 (SAP HANA DB 1.00.82) for SAP BW 7.4, I d like to know if I can use hana studio here or do i need hana enterprise?

 

regards

 

mah


hana Decision Table Error

$
0
0

Hi Experts,

 

I have created decision table based on 2 tables product and orderid.When i am validating I am gettting the Below error.

 

 

 

 

 

 

 

The Error is as below. Please help me out

 

Default value for Date Field

$
0
0

Hi All,

 

I am trying to convert one table into .hdbtable.

 

Below is the SQL code for my table.

CREATE COLUMN TABLE "SCHEMA"."TABLE" (                                                  

                 'FIELD1' VARCHAR(128),                                             

                 "FIELD2" VARCHAR(64),                                             

                 "FIELD3" VARCHAR(128)) UNLOAD PRIORITY 5 AUTO MERGE      ;      

                                                     

ALTER TABLE "SCHEMA"."TABLE"                                                            

WITH PARAMETERS ('CONCAT_ATTRIBUTE'=('EXPRESSION=FIELD4_DATE( now() )',                                                       

 

Now I want to convert the above into .hdbtable


table.schemaName = "SCHEMA";

table.tableType = COLUMNSTORE;        

table.columns =              

[            

{name = "FIELD1";                sqlType = VARCHAR; length = 128;} ,

{name = "FIELD2";                sqlType = VARCHAR; length = 64;} ,

{name = "FIELD3";                sqlType = VARCHAR; length = 128;} ,

{name = "FIELD4_DATE";     sqlType = TIMESTAMP; nullable = true; }

];           

 

Now I want to provide default date to field "FIELD4_DATE".

In SQL we can achieve this by 'ALTER'.

 

Can you please suggest me how to do in the .hdbtable?

is there any other way to convert the table into .hdbtable? rather than righting code..."table.schemaName = "SCHEMA";  .......]


PS: I have googled and searched in SCN portal. Not able to get any answers. Hence, I have posted.

 

Thanks in advance.

Accessing tables from different schema in HANA CDS

$
0
0

Hi,
I also like to be able to create a CDS view in the repository which fetches data from a (virtual) table in a different schema. I found the code below in the developer guide:

 

 

 

view AddressView as select from Address

{ id,

  street.name,

  street.number

};

 

I already tried to replace the first line with: "view AddressView as select from SCHEMA.Address" (also with single and double quotes but it doesn't work.

 

From the catalog it is very easy to create a view which does a select from tables in a different schema, so I assume it should be possible in the repository as well?

 

Kind Regards,

Nico van der Linden

 

Message was edited by: Jasmin Gruschke

New Applications with HANA xs - what is the right way

$
0
0

Hello together,

 

we would like to develop a own application modul (only for desktop, not for mobile devices), in which we don’t need any functions from the ERP business logic (with own apps, with own data model). Now we’re thinking about HANA xs / SAPUI5 (like the platform model) – but in the internet we don’t find any deeper cocking books for this procedure.

 

We have some questions about this procedure:

 

  • How many layer need our system architecture – two or three (developing system, test system, production system – or is a developing system and a production system enough)
  • How can be the process for system changes. Is there a similar handling as the cts / stms? How is the regular process for system changes and the transfer between the systems?
  • When the app has an output for a printer – what possibilities do we have for creating / design an output document for the printer. Is there an API. Is there an output control for the spools (similar SP01).
  • Is there an API to send information via SMTP (from the server – not from the mobile client)?
  • Is there an API for a workflow process (for approval, release, information)?
  • Is it possible to write programs for the background? For example, we would like to check attributes / sums – and then we would like to send an information to the user via mail.

 

Some questions… :-).

 

Or is it easier to work with an netweaver stack as toolbox for this requirements.

 

I am pleased to get many answers from the experts. At the moment for us it is unfortunately new stuff. It’s very exciting and interesting.

 

Best regards

Thomas

Function to support Dynamic SQL

$
0
0

Hi,

     I was trying to create a function that accepts parameters, used to query a table. Those parameters are part of the query in the function.

Eg

create function (a varchar2,b varchar2)

return result number

LANGUAGE SQLSCRIPT  

SQL SECURITY INVOKER

as

(

exec 'select count(1) into result from table t1 where t1.col='||a||' and t2.col='||'b;

)

end;

 

But it says :-

As function was giving the error:- feature not supported: dynamic sql is not supported in the read only procedure/function

 

 

What could be the alternative for it?

If i need to create a procedure for the same. Below is the hurdle I'm facing again:-

Many of my functions have dynamic sql and multiple returns are there in the function.

So creating a procedure i would require a skip or GOTO statement. That also isn't provided in HANA.


Request you to help me with this.

Thanks,

Athrey

How to checkout selective objects from a Package.

$
0
0

We have so many objects(AV,AN,CV) created for different projects inside the same package. I want to checkout only those objects which are related my project. In repository I am checking out only those objects(only four CV's) but when I am creating a project for that repository location and sharing the project then its showing me all objects belongs to that package inside my project.I am also allowed to edit to those objects. How can I keep only selective objects from a package inside my project?

Aggregate at change in value

$
0
0

I'm trying to find a way to aggregate data only at changes in a specific dimension when joining tables of different granularity in HANA.

 

Let's say I have 1 table that stores corporate card transactions, and I have 2 transactions for hotel stays.

 

DocumentNumberEmployeeRegionEstablishmentTransaction DateTransaction Amount
10395345125123456EASTMarriott2/15/2015$359
23450971252123456WESTHyatt3/15/2015

$233

 

 

I also have an internal expense system to break these down into smaller parts. The first transaction was for a 2 night stay including meals. The second for a 1 night stay including meals:

 

DocumentNumberEmployeeExpense TypeReceipt DateExpense Amount
10395345125123456Hotel2/15/2015$150
10395345125123456Meal2/15/2015$30
10395345125123456Hotel2/16/2015$150
10395345125123456Meal2/16/2015$29
23450971252123456Hotel3/15/2015$190
23450971252123456Meal3/15/2015$43

 

 

I want to be able to combine these into a single view for a report. If I join these together on the Document Number field, I get this, where the transaction amount is repeated on multiple expense lines:

 

Doc NbrEmployeeRegionEstabExp TypeTranx DateReceipt DateTrnx AmtExp Amt
10395345125123456EASTMarriottHotel2/15/20152/15/2015$359 $150
10395345125123456EASTMarriottMeal2/15/20152/15/2015$359 $30
10395345125123456EASTMarriottHotel2/15/20152/16/2015$359 $150
10395345125123456EASTMarriottMeal2/15/20152/16/2015$359 $29
23450971252123456WESTHyattHotel3/15/20153/15/2015$233 $190
23450971252123456WESTHyattMeal3/15/20153/15/2015$233 $43

 

 

If I want to do ad-hoc analysis on any dimension, how can I ensure the transaction amount only aggregates at changes in the document number?

 

For example, if I aggregate on Establishment, I will see:

 

Row LabelsSum of Trnx AmtSum of Exp Amt
Marriott1436359
Hyatt466233
Grand Total1902592

 

But I want to see this, since there is only a TOTAL of 592 in transaction amounts:

Row LabelsSum of Trnx AmtSum of Exp Amt
Marriott359359
Hyatt233233
Grand Total592592

 

 

Keep in mind this is a simplified example as the expense amounts could be different than the total transaction amount (personal spend). Any help would be appreciated.

 

Thanks.


Material Long Text - via HANA to BO Report

$
0
0

Hi ,

 

We have SAP BW 7.4 ( HDB ) HANA SP08 and BO 4X & ECC.

 

I want material long text in Bo report using HANA. Please suggest the possibility ,

ABAP team enhanced in MM03 -> Basic data ->Application - new tab added

 

Output as below :

MATNR - MAKTX- Material Long Desc -......

123     - SHIRT - Summer casual shirt.

 

Regards,

kamruz

HANA live - Displaying error while Data Preview

$
0
0

I am getting error while executing HANA Live view PurchasingDocumentItem. I used this view many of our custome view as underlying.

All the view which I build based on this view displaying error while data preview.

 

HANA live view "sap.hba.ecc/PurchasingDocumentItem" is not displaying any data and giving error:

 

Error: SAP DBTech JDBC: [339]: invalid number:  [6930] attribute value is not a number..

 

 

Regards,

Kamruz

List out Inactive HANA view

$
0
0

Hi,

 

Our Team have created so many Inactive view ( Attr, Ana, Cal)  and they didn't deleted those view. I want to list out all inactive view. How to find out those view.

 

Regards,

Kamruz

Transport : HANA view issue

$
0
0

Hi,


We have transport the HANA view Dev to QA. Earlier all the view was fine in QA system. This time got the below warning  message and all the view technical name is showing red under package -> calculation view -> View name ( Red color)


1.The model has opened in view-only mode as it doesn not have edit authorization
2. Editing object under package with different source system is not recomended since they may be overwritten by next import.

Please suggest.

 

Regards,
Kamruz

SAP HANA Performance Tuning

$
0
0

I am running the following update statement on SAP HANA via Apache JMeter, a load testing tool, over a JDBC connection and am getting a pretty low throughput something around 20 requests per second simulating 10 clients and iterating the update about a 100 times for each simulated client.

 

Is there a way to tune HANA so that I achieve a higher throughput? CPU and Memory usage is quite low on my system so I am also lost on where the performance is going.

unable to view data in analytic view

$
0
0

Hi Experts,

 

i have created analytic view and activated succesfully,it is generated from bw and i joined analytic view with master data customer after activating the view successfully i could nt find the data in data preview,how to get data here and how to check data here,please help here.

 

awaiting your valuable inputs.

 

 

Thanks in advance..

 

Madhu.

No data in data preview of Analytic view

$
0
0

Hi Experts,

 

 

Here i am  facing  issue like no data preview in analytic view,only showing columns and no values(data) ,Please help me to resolve this.

 

In my project version SP7 i created analytic view on BW generated DSO( which is default analytic view), in analytic view joined with two attribute views and maintained key attributes and used referential join cardinality given n:1 ( fact table : attribute view) but joined many fields from attribute view all are maintained key fields and activated successfully no errors given,when i go to data preview tab not showing any values in the tab? i checked default client in properties its maintained session client and tried with cross client also tried with both but issue not solved,please let me now what could be the reasons for this to get data??

 

awaiting for your valuable inputs.

 

 

Thanks,

Madhu.


Error while validating or activating Decision table in Hana

$
0
0

Hi All,

 

 

while validating or activating a decision table i am getting the below error

 

"Repository: Internal error during statement execution, please see the database error traces for additional details; error in generated procedure - insufficient privilege: Not authorized at ptime/query/checker/query_check.cc:2224line: 0 column: 0"

 

I am thinking that administrator didnt assign me enough privileges for _SYS_BIC schema....

 

 

can any one suggest what exactly the problem is....

 

 

Thank you

vijay

how to do data provisioning in sap hana studio

$
0
0

data provisioning in hana studio

XS/ODATA access to analytic view field lables

$
0
0

Hi all,

 

we are consuming analytic views in a SAP UI5 frontend using odata services. The odata services provides us with the technical field names of the analytic views. Is there a way to show the field lables of the analytic view in the odata-service as field name?

 

Thanks and best regards,

Christian

Wrapper for the session variables

$
0
0

Hi,

     In the course of time as we evolve from Oracle to HANA. We want to make minimal changes to the front end code.

As part of session variable we had written a wrapper in Oracle to do the job. Similarly i want to write a simple procedure or a function which would accept the key,value pair and do the set and get the session context variables.

getting the below error:-

session management statement is not allowed in SQLScript

required attribute table

$
0
0

Hi All,

 

We have been using HANA as secondary data base.

 

We have given Connection information as followed:   112.19.27.12:30015&ECC_SLT_HAN(IP address:Port&Schema).

 

When i execute HDBC transaction code, I am getting below errors.

 

Errors when generating view V_GLPOS_N_CT; see long text

 

Message no. FAGL_HDB_GENERATION099

 

When we go internally, it is telling ...

 

Required attribute table FAGL_ORG_INFO does not exist on SAP HANA DB

Required attribute table FAGL_ORG_INFO_CT does not exist on SAP HANA DB

invalid column view: GLPCA: line 9 col 24 (at pos 228)

invalid table name:  Could not find table/view /1F IGL/AN_GLPCACT in schema SYSTEM

 

 

Could you please do let me know how to correct it. We have all ther required objects in Schema "ECC_SLT_HAN".

 

Regards,

Jo

Viewing all 6745 articles
Browse latest View live


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