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

How to select specific rows,when the id of one table is equal to id of other table

$
0
0

Hi All,

 

       I have two HANA tables,

       both have a common column, (but only some of the records of 1st table will be present in the second table).

      Now, when i want to retrieve the data for all rows when

 

                                                                Id.table1 = Id.table2

 

     I tried doing it with attribute view, where in I am getting all the rows,

     How do i go with the row selection, Please guide


Restriction on Tables based on client in HANA

$
0
0

Hello,

 

I have system ERP on HANA.

I have created one of the HANA DB user. I have copied few tables from SAPSID schema to this user schema.

These tables have data for various clients 000, 001, 100, 200.

I want to put the restriction that this user can view the data of only client 100 from tables not other.

 

I have tried setting the session client parameter to 100, but still it is giving all data in table content.

 

Also I want to consume this data in BO using IDT, so we want to connect this HANA system with this user and take data only for client 100.

 

Please suggest.

 

Regards,

Saurabh

MAX date from the table

$
0
0

Hi All

 

can anyone please help me in finding the MAX date from the table.

 

I have data like below.

 

I only want to display that particular row where the NEW delivery date is higher.

 

Below case should show only 2 row for item 001710

 

 

000010 item should be kept as it is.

 

 

 

 

Billing
  Document
Billing itemSales documentSales Document
  Item
New Delivery
  Date
Cost - Comp
  Code Curr
Net Value -
  Comp Code Curr
904312869700001000219115610000102014-08-12482.16642.88
904312869700171000219115610017102014-08-12638.80592.04
904312869700171000219115610017102014-08-10638.80592.04

XS Engine Session Timeout?

$
0
0

Hi,

 

Anyone know if it is possible to set the XS Engine Session Timeout at the server side (say I want my sessions to last no more then 2 minutes before the user has to login again). I do not seem to find a global setting for that, or should I just do that in the code?

 

thx.

S.

Getting the "Cannot get the data provider outline" Error due to "insufficient privilege: Not authorized"

$
0
0

Dear SAP HANA Dev Community,

 

I created a trial user on the SAP HANA Cloud Platform in order to test the Analytic View functionality.

 

Unfortunately, I am always getting the "Cannot get the data provider outline" error when I try to make a Data Preview of the Analytic View:

1. ---->> 2.

 

I checked the Error logs and it seems that the error is caused by insufficient rights for my trial user. Each time SAP HANA tries to make a SQL SELECT on the "_SYS_BI.BIMC_ALL_CUBES" an error is caused.

In order to check, I entered the statement in an SQL console and received the following error:

 

 

I wanted to ask, if anyone could please help me with this problem and show me how I can acquire the necessary privileges on my trial account.

 

     *)  I already tried the "GRANTSELECTONSCHEMA"<schema name>"TO _SYS_REPO WITHGRANTOPTION" statement but it unfortunately didn't

         change anything.

     *)  I also tried to grant the "Analytic Privileges" by myself, but also here I get the insufficient rights error:

         1. 

         2.

 

I would really appreciate any help at all! :-)

 

Kind Regards,

Stephan

Create custom control before calling view.js

$
0
0

Hi,

 

I want to create line chart with one dynamic customized list box.Based on dynamic list box value, I should create line chart. First I excuted list box creation code, thereafter only I am calling view.js, but I am getting undefined for list box value. It seems list box is not ceated before calling listbox.

 

Here is my code,

 

 

script for creating creating list box and calling view.js       

 

var viewbydata = [{viewby : "Customer"  }, {viewby : "City" },{ viewby : "State"},{viewby : "Country"}];

var selectElement = $("");

$.each(viewbydata, function(i, item) {

$("", {value: item.viewby, text: item.viewby}).appendTo(selectElement);

});

new sap.ui.commons.Label({ text: "viewby"}).placeAt("viewbyList_lbl");

$("#viewbyList").append(selectElement);

sap.ui.localResources("Test");

var view = sap.ui.view({id:"Test, viewName:"Test.LineTest", type:sap.ui.core.mvc.ViewType.JS}); view.placeAt("content","only");

 

Html element

 

<div class="viewbyDiv" style="" >

  <div style="padding-bottom:0px; font-size:12px; font-weight: bold;" id="viewbyList_lbl"> </div>

  <div id="viewbyList" class="sltDiv"> </div>

  </div>

 

  <div id="content"> </div>

 

 

 

I am new to SAP HANA. Please help me to solve this problem.
Thanks in Advance,
  Suja Arjunan

Index Server Ping Time, what does it mean, specifically?

$
0
0

Hello everyone,

 

I'm looking at the HANA Studio Administration Performance tab, the subtab called "Load" and I'm looking for some enlightenment here.

In the bottom right corner there is a KPI called "Ping Time" for the "Index Server", for all good purposes I attached a picture (see below).

 

Is there anyone who can tell me what this KPI specifically means ? And what would be a proper value for this indicator ?

 

This is what I discovered so far:

-It is most likely not the ping time from my studio to the server, as it is not matching with the ping times from a terminal to that server.

-It is most likely not the ping time from the slaves to the master, if the master is selected.

 

I have not been able to discover anything regarding this KPI in the manuals, which makes sense, as most other KPI's are quite obvious.

 

 

with kind regards,

 

 

Eric van Lent

 

 

 

 

Message was edited by: Eric van Lent - corrected typo, minor layout

AFM error - Could not call procedure

$
0
0

Hi all,

 

I am trying to use the AFM to perform a linear regression and i got an error stating that my *Coefficient table is missing.

2014-09-26 15_54_11-SAP HANA Development - SCHIA_lregression.png

 

Under my lists of tables, i can see the regression fitted table but not the coefficient. Have anyone experienced this before in the past? I have even tried to build the table manually and it didnt work. any help from your side is greatly appreciated.

2014-09-26 15_57_01-SAP HANA Development - SCHIA_lregression.png


SAP HANA Client download troubles

$
0
0

Hello All,

 

I tried to download the "SAP HANA Client" Windows 32-bit from http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/webcontent/uuid/402aa158-6a7a-2f10-0195-f43595f6fe5f but it keeps throwing me out with "Unfortunately we have trouble completing your download request. Please contact sdn@sap.com for further support. "

 

I emailed with the info to sdn@sap.com, but no luck.

 

Has anyone else faced the same trouble ? Is there a way around this ? I downloaded the studio though.

 

Thank You,

Joe.

How to install Hana studio and Hana client?

$
0
0

Hi folks,

 

Can anyone tell me what are the names of the hana studio and hana client installers?

 

The reason why, when you download the application through the links provided, it gives a zipped file and once you unzip it, it shows many files ended by .exe and you really don't know which one to choose.

 

Please help.

 

Thank you!

 

Amédé

MCSHIERB in HANA view

$
0
0


Hi experts,

Can you please try to explain me how to model a parent-child hierarchy base on MCSHIERB?

Grtz

Koen

/uilib-sample/proxy in the TDG demo

$
0
0

Hi all,

I've tried to create the Best Practices Demo as described in https://sapui5.hana.ondemand.com/sdk/#docs/guide/170638b7a2b4424e8580fb473af6a3cd.html in the Developer Guide. However, the code snippet

 

config : {            resourceBundle : "i18n/messageBundle.properties",            serviceConfig : {                name : "Northwind",                serviceUrl : "/uilib-sample/proxy/http/services.odata.org/V2/(S(sapuidemotdg))/OData/OData.svc/"            }        },

expects /uilib-sample/proxy... to be a valid URL on Hana, but unfortunately, at least in our Hana, it is not. This should work as a proxy to odata.org because direct connection is no allowed due to CORS limitations. Where does /uilib-sample come from, is this some external package or is it part of NetWeaver or similar? Can the demo be constructed without it? Or is it possible to get it somewhere?

 

Cheers,

 

-- Micha

How to return custom output message in store procedure after performing operation .

$
0
0

Hello Devps.

 

i m writing custom Exits for OData Write Requests in Hana

 

here is the simple example from Hana guide.

 

 

create procedure "ODATA_TEST"."sample.odata::createmethod"(IN new 
"sample.odata::table", OUT error "sample.odata::error") 
language sqlscript 
sql security invoker as 
 id INT;
begin
 select ID into id from :new;
 if :id < 1000 then
 error = select 400 as http_status_code, 
 'invalid ID' error_message, 
 'value must be >= 1000' detail from dummy;
 else
 insert into "sample.odata::table" values (:id);
 end if;
end;

 

the above procedure code is working fine if id values is less than 1000.

i want to write success message in the same error table after performing insert operation.

 

 

so for this i tried the below customized code in Hana

 

 

 

create procedure "ODATA_TEST"."sample.odata::createmethod"(IN new 
"sample.odata::table", OUT error "sample.odata::error") 
language sqlscript 
sql security invoker as 
 id INT;
begin
 select ID into id from :new;
 if :id < 1000 then
 error = select 400 as http_status_code, 
 'invalid ID' error_message, 
 'value must be >= 1000' detail from dummy;
 else
 insert into "sample.odata::table" values (:id);
//My Logic
error = select 400 as http_status_code, 
 'ID' error_message, 
 'Successfully inserted' detail from dummy;
 end if;
end;

 

but after updating my code. i am getting successful message. but its not inserting data in my table. and if i remove success message then i m able to persist data in table.

 

Can anyone help me with this. ???

 

Thanks..

How to add external Pginator to the SAPUI5 table

$
0
0

Hi,

I am using the SAPUI5 XS application and using Table for showing the data.My requirement is, First need to fetch the 100 records and should have 5 pages in pagination with Next button.If i click next button, then need to fetch 101 to 200 data and pages should be 6,7,8,9,10 in the pagination. So for this requirements, as per my understanding,we can not use in built table pagination. So we need to use external Pagination control. My Question is, How to connect the Table data with the external Pagination control.

Can't bind input parameter to Calc View's SQL with $$param$$ notation

$
0
0

Dear all,

Not sure if I am missing something, but I just can't seem to get my SELECT statement working with an input parameter using $$field$$ notation.

I have a Calc View with this. Simply a select statement from an AV to count the entries.

 

var_out = SELECT FIELD1, FIELD2, 1 as "COUNT"

FROM "_SYS_BIC"."playpen/AT_VIEW"

(PLACEHOLDER."$$FIELD2$$" = '1234' );

 

I need to use the $$FIELD2$$ notation because I am using Explorer which requires it.

 

I checked the document "Using SAP HANA Variables and Parameters in SAP BusinessObjects BI4.0" but this just does not help at all.

 

I cannot be this hard, I must me missing something.

 

Does it have to be in a Procedure ?

 

Thanks in advanced


Unit testing/testing in general on Hana

$
0
0

Hi guys,

 

It's been a while since I was actively developing on Hana, and the last time I did, testing tools on Hana were either in their infancy or not even existent. I'm wondering if anyone out there has experience of writing unit tests for hana that don't rely on a java architecture (i.e. not Junit tests), but that actually run on the hana db itself. The code we're planning to write will only live on hana in the form of procedures and possibly some other db objects in the future. Have you done something like this? How did you test it?

 

Any insights would be appreciated!

 

Jen

SSO between XS application as frontend to ABAP backend

$
0
0

Hi,

We have GRIR XS app in our HANA system. http://<hostname.fqdn>:<port>/sap/hba/apps/grircm/WebContent/index.html

Here you can display Purchase Orders with open G/L Items from HANA DB (snap shot below)

 

HANASSO1.png

Click on any PO to choose and click on ‘Post Clearing’ button.

This button will post the PO in ECC system.

Once you click on ‘Post Clearing’, it pops up the logon screen for ECC.

 

HANASSO2.png

To avoid logon to ECC through password, we want to configure single sign-on.

 

If any one has done similar setting for their XS apps, request to let us know the procedure to enable SSO between SAP HANA XS app & ABAP system.

 

Thanks much

Asutosh Rout

Newbie to SAP HANA need any SAP work experience?

$
0
0

Hi All,

 

I am having 6+ experience in Java/J2ee platform. Upon my own interest and market value i thought of learning SAP HANA. Before start-up i have some queries on mind to ask about SAP.

 

1) To start a career in SAP HANA needed any SAP background experience?

2) Whether my profile will suits to learn SAP HANA? I have some knowledge in SQL and database concepts.

 

Please advise me. Thanks in advance.

 

Regards,

 

Senthil Kumar.

Convert Standby Node to Worker node : SAP HANA

$
0
0

Hi All,

 

 

We have an appliance BW on HANA. BW is on SAP NW 7.31 and HANA is on SPS7 Rev73.

 

 

HANA Database is distributed with 3+1 (3 worker nodes and 1 standby node). Due to increase in memory utilization, we have decided to convert the standby node to a worker node which is a temporary work around.

 

 

Question : Can I change the configuration file to change the node from standby to worker and redistribute the tables across all the slave nodes from HANA Studio. Will this suffice my need?

or

Do I need to delete the standby host from SAP HANA Lifecycle manager(HLM) and then add the same host as a worker node from HLM?

 

 

Present configuration of Standby node

=====================================

Name server configured role : Slave

Name server actual role    : Slave

Index server configured role: Standby

Index server actual role    : Standby

 

 

New configuration of Standby node to change the role to worker

==============================================================

Name server configured role : Slave

Name server actual role    : Slave

Index server configured role: Worker

Index server actual role    : Slave

 

 

Please let me know all possible options, best practices to implement this.

 

 

Thanks,

Sampath

How to call a SOAP webservice using SAP HANA?

$
0
0

Hello, how do I call an external SOAP webservice from SAP HANA xsjs?

 

 

Thanks,

Matheu Pontim

Viewing all 6412 articles
Browse latest View live


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