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

Unable to start SAP HANA Data Provisioning Agent

$
0
0

I am unable to start the SAP HANA Data Provisioning Agent. When I start the agent it gives the following error (screenshot attached):

 

"Failed to start Agent service. Return code: 5"

 

Can someone help me what might be wrong? I would really appreciate that.

 

 

Regards,

Waleed


insert a new line character in calculated columns in SAP hana

$
0
0

Hi

 

I have created an calculated column containing concatenation {+}  here i have concatenated 2 fields {first name & last name}. After the Concatenation I am getting the O/P as "FirstNameLastName" But I wanted the O/P as
eg First Name
     Last Name
so for this Feature I have tried using /n, /r, </br> but nothing worked so is there any solution by which I can insert a New Line/Carriage Return/Break between the two fields. Please Help

 


Thanks & Regards

Rahul 

Issue with Graphical calculation view - Data Category : Dimension

$
0
0

Hi Team,

 

I was trying to create calculation view with data category as Dimension. I tried to add a filter on one of the columns, but I couldn't see any option to add a filter. Has anyone faced the same issue before?

 

nofilter.png

 

 

Regards,

Prachi Tiwari

Pass Input Parameters between Views

$
0
0

Hi,

 

I want to apply the input parameters on the underlying objects (child-calculation views or analytic view contained in a main calculation view, on which query executed). The caluclation views are all graphical. But how can I pass the input parameter set on the main calculation view into the analytic views and contained graphical calculation views?

 

Thanks and Regards,

Hai

Replication of DB from SQL server to Hana using MSSQLLOGREADER Adapter

$
0
0

Hi ,

 

I am trying to connect DB from SQL server in my system with Hana using MssqlLogReaderAdapter.

 

I am able to register my data provisioning agent and also getting the agent in the source location in HANA.

The MssqlLogReaderAdaper is also getting registered.

 

I have followed this document to setup my SQL Server http://help.sap.com/download/multimedia/hana_options_eim/SAP_HANA_EIM_Administration_Guide_en.pdf

 

When I am trying to create a New Remote Source. I fill all the details. But when I am trying to execute I am getting the following error :

 

Remote source updated

SAP DBTech JDBC: [403]: internal error: Cannot get remote source objects: exception 151044: Agent "new_animesh_agent" is not available.

 

I am not sure what could be the reason for this error, as my agent is already available.

I have attached the screenshot of the configuration and the error.

 

Need Immediate help. If anyone could help me with this.

Thanks in advance.

 

 

Thanks & Regards,

Animesh Ghosh

HANA RLANG, problem with temporary file

$
0
0

I'm using SAP HANA together with R. I use the cSPADE implementation in R and therefore load the data into a temporary file.

However until know it worked fine so far but now I getting an error. It seems to be some problem with the temporary file.

 

Could not execute 'CALL "BETA_SYSTEM"."run"()' in 15.741 seconds .

SAP DBTech JDBC: [2048]: column store error:  [2048] "BETA_SYSTEM"."run": line 21 col 2 (at pos 821): [2048] (range 3): column store error:  [2048] "BETA_SYSTEM"."beta.procedures::selectSpadeData": line 33 col 4 (at pos 992): [2048] (range 3): column store error: search table error:  [34082] Execution of R script failed.;Error in file(file, ifelse(append, "a", "w")) :

  cannot open the connection

stack trace:

2: file(file, ifelse(append, "a", "w"))

1: write.table(spade_data, file = file, sep = " ", row.names = FALSE,

       quote = FALSE, col.names = FALSE)

 

 

CREATE PROCEDURE BETA_SYSTEM.spadeR (  IN spade_data "SPADE_INPUT_T",  OUT result "SPADE_RESULT_T"
)   LANGUAGE RLANG   AS                       
BEGIN  library(Matrix)  library(arules)  library(arulesSequences)  file <- tempfile()  write.table(spade_data, file = file, sep = " ", row.names=FALSE, quote = FALSE, col.names=FALSE)  df_trans <- read_baskets(file, info=c("sequenceID", "eventID", "SIZE"))  as(df_trans, "data.frame")  err_res <- tryCatch({   s_res <- cspade(df_trans, parameter = list(support = 0), control = list(verbose = TRUE))  }, warning= function(war) {     }, error=function(err) {     }, finally={     }  )  if(length(err_res) == 0){   result<-data.frame(sequence="EMPTY",support=0)  } else {   result <- as(s_res, "data.frame")  } 
END; 

Authorization error trying to access a repository with eclipse HANA dev tools

$
0
0

Hi,

 

I have created a trial instance for HCP that uses the HANA shared instance. I created my schema in the cockpit and followed the steps to add the cloud system in the SAP HANA Development perspective (I have the latest eclipse plugin).  After I create the repository I get the error

 

"You are not authorized to execute this action; you do not have the required privileges"

 

as shown in the attachment.  Any further action I take on the repository, like trying to create a package, results in the same error. My assumption is that all required permissions should be there automatically since the installations steps indicate that you should be able to access the repository immediately.  A colleague tried the same thing and got the same error, so maybe this is a global issue.  Is there anything I need to do to correct the permissions?

 

Thanks

Error creating ST_GEOMETRY type SAP DBTech JDBC: [2048]: column store error: add attribute error: [2999] general error (no further information available)

$
0
0

Has anyone seen this error before when simply trying to alter a table via SQL and add a column of type ST_GEOMETRY?

 

My SQL statement is: ALTER TABLE "TABLE1"."DIM_LATLONG" ADD ("LOCATION" ST_GEOMETRY(3857));

 

And it throws the following error:

 

Could not execute 'ALTER TABLE "TABLE1"."DIM_LATLONG" ADD ("LOCATION" ST_GEOMETRY(3857))' in 119 ms 400 µs .

SAP DBTech JDBC: [2048]: column store error: add attribute error:  [2999] general error (no further information available)

 

 

I can't seem to find any information on this specific issue and the error message is not really helpful whatsoever.

 

Schema in Hana Cloud Platform

HANA Studio version 2.2.12


Help: Auto-Login to HANA Web Workbench for HCP Trial not working after the update last night

$
0
0

Hi,

 

I have a problem in a HCP trial account with a HANA XS application after the update last night.

 

When I select the application in the HCP cockpit, there is a link named "Open in Web-based Development Workbench" which normalles logs you in automatically to the Web Workbench. In my case however, I get since last night a HANA login prompt (not an SAP Accounts SAML login prompt!), which apparently wants the internal HANA credentials which I don't have on a HCP trial account with a shared HANA instance.

 

The URL

https://s9hanaxs.hanatrial.ondemand.com/sap/hana/xs/ide/editor/index.html?startURI=p1941627274trial/hc/demo

is opened, which redirects to

https://s9hanaxs.hanatrial.ondemand.com/sap/hana/xs/formLogin/login.html?x-sap-origin-location=%2Fsap%2Fhana%2Fxs%2Fide%2Feditor%2Findex.html%3FstartURI%3Dp1941627274trial%2Fhc%2Fdemo

instead of logging me in automatically.

 

What can I do to access my application again?

 

Regards,

Wolfgang

morning everyone

$
0
0

i'm a new as a sap hana DeVeloper joiner in a company. can you please tell me as a sap hana DeVeloper what is Daily routine. n how to work. if your client or reporting manager\team members to sitting another city.?

Access in abap report to hana view in SYS schema

$
0
0

I want to create a report in abap and execute this query:

     "Select PATH from M_DISK"

 

and I have this error: "M_DISK" is not defined in the ABAP Dictionary as a table, projection view, or database view.

 

M_DISK is a view in SYS schemafrom hana.

 

Thanks

Nested table in hana by using Calc views

$
0
0

I have a requirement to get data in the below format from hana, I have written a Calc view..but I am not sure how get to store the looping data (Awards, Wall of fame) by using Nested table. So that I can get the data in the below format. I am using Java Spring Framework to call the calc view.

 

Main table have to contain Awards and Wall of fame has nested tables.

 

{

  "Name": "A",

  "No": 89700,

  "Awards": [

    {

      "Award_key": 1,

      "Award_name": "Best Performer1"

    },

    {

      "Award_key": 2,

      "Award_name": "Best Performer2"

    },

    {

      "Award_key": 3,

      "Award_name": "Best Performer3"

    }

  ],

  "Wall_fame": [

    {

      "WF_key": 1,

      "WF_name": "Best Performer1"

    },

    {

      "WF_key": 2,

      "WF_name": "Best Performer2"

    }

  ]

}

 

Need help.

Transform a BO IDT Filter in HANA Calculation view parameter

$
0
0

Hi,

 

are there any way to create a BO 4.1 IDT Filter that push down a single parameter value into a SAP HANA SP8 calculation view ?

The use case is : From WEBI, the user drag & drop the filter into the query and the system generate a parameter selection statment into HANA.

For technincal constraints I cant' use variable .

 

I've seen may guide and tutorial on the topic but this particular case is not documented .

 

thanks

Maurizio

Connect to SAP HANA DB using ODBC driver in PowerShell

$
0
0

I am using the following Power Shell code to connect to a HANA instance from a windows host where HANA Client is installed -

 

function Get-OLEDBData ($connectstring, $sql) {

    $OLEDBConn = New-Object System.Data.OleDb.OleDbConnection($connectstring)

    $OLEDBConn.open()

    $readcmd = New-Object system.Data.OleDb.OleDbCommand($sql,$OLEDBConn)

    $readcmd.CommandTimeout = '300'

    $da = New-Object system.Data.OleDb.OleDbDataAdapter($readcmd)

    $dt = New-Object system.Data.datatable

    [void]$da.fill($dt)

    $OLEDBConn.close()

    return $dt

    }

 

 

    $hdbSqlCmd = "myquery"

    $hdbConnectionString = "Driver={HDBODBC};ServerNode=myserver:30015;UID=myuser;PWD=mypasswd;"

    Get-OLEDBData $hdbConnectionString $hdbSqlCmd

 

But I get following error -

 

New-Object : Exception calling ".ctor" with "1" argument(s): "An OLE DB Provider was not specified in the ConnectionString.  An example would be, 'Provider=SQLOLEDB;'."

   At C:\myspace\hana_connect_1.ps1:5 char:27+    $OLEDBConn = New-Object <<<<  System.Data.OleDb.OleDbConnection($connectstring)

+ CategoryInfo          : InvalidOperation: (:) [New-Object],        MethodInvocationException

+ FullyQualifiedErrorId : ConstructorInvokedThrowException,Microsoft.PowerShell.Commands.NewObjectCommand

 

 

When I change the connection string to Provider instead of Driver -


Exception calling "Open" with "0" argument(s): "The '{HDBODBC}' provider is not registered on the local machine."

   At C:\myspace\hana_connect_1.ps1:6 char:19

   +    $OLEDBConn.open <<<< ()

  + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException + FullyQualifiedErrorId : DotNetMethodException

 

 

The error remains the same even if I change to 32 bit driver - HDBODBC32, saying HDBODBC32 is not registered.


Any ideas!

XS Advanced Client: Error building cloud model: Invalid Key

$
0
0

Hello Guys,

 

I want to install the SAP WEB IDE in a SAP HANA SPS 11 Environment, but i'm running to an curious error, while trying to install the required packages with my XSA Client:

 

error.png

 

I cannot find anything that could help me with my problem...

 

Do you guys have any ideas?

 

Thank you!

 

Tom


HCP : HTML5 Application SSO with SAP Cloud Identity

$
0
0

Hi,

 

In HCP, I have a HANA XS Application public.dev (https://**.hana.ondemand.com/public/dev/) containing an xsodata service (https://**.hana.ondemand.com/public/dev/services/services.xsodata).

 

In HANA XS configurations, I connected SAP Cloud identity (https://mytenant.accounts.ondemand.com/admin/) to manage users. I also configure all HCP features to be managed with the SAP Cloud Identity.

 

Now it is configured, when I want to access to my xsodata service (https://****.hana.ondemand.com/public/dev/services/services.xsodata), I have a login page from SAP Cloud Identity. (I enter an email and password of my personal SAP Cloud Identity and xsodata service is working).

 

In HCP, I want to create HTML5 Applications (FIORI). When I launch SAP Web IDE, I have also a login page from my own SAP Cloud Identity provider. Email/Password and I can access to the WebIde and develop.

 

I want to consume my xsodata service from my HTML5 application. In this service, there are some features in terms of user information. I want to create a destination for that. Back in my HCP, I choose Destinations and create one with AppToAppSSO Authentification. In my Web IDE, I can see destination, it’s trying to connect to my Hana XS Service, but it’s not working. This is the error of my HANA XS server:

 

Assertion authentication failed with reason: Unable to verify XML signature(StatusCode: , StatusMessage: )

 

This is a SAML error.

 

I tried to launch my application using destination with the Launchpad, but I have the same issue in logs.

 

The real question is: How can I consume my xsodata service (in HANA XS) from my HTML5 Application without losing user information? Knowing that all identity management is configured with SAML – my own SAP Cloud identity provider.

 

For SAML and Destinations configurations, I followed guides:

 

SAP_Cloud_Identity_Service.pdf

SAP_HANA_Administration_Guide_en.pdf

SAP_HANA_Cloud_Platform.pdf

SAP_HANA_Developer_Guide_en.pdf

 

Thank you for your help.

 

Cheers,

 

Severin

SAP HANA ondemand - sap.ushell.bootstrap don't exist for display userid with SAPUI5

$
0
0

I try to use the solution from this page to display the id of user on sapui5 application. 

The needed snippet: sap.ushell.Container.getService("UserInfo").getId()

The sap.ushell don't contains any of service methods, described on this page.

It contains only ui-specific entries. The sap hana cloud by my account don't have any abap js, needed to initialize the sap.ushell:

For convenience, platform-specific bootstrap code is available and can be easily included (before the SAPUI5 bootstrap) by a corporate shell as follows:

<script> src="/sap/public/bc/ui5_ui5/resources/sap/ushell_abap/bootstrap/abap.js"></script> 

This bootstrap code will automatically defer the initialization of SAPUI5 until the container is available. This is the preferred way of bootstrapping the Unified Shell.

<script src=".../resources/sap/ushell_abap/bootstrap/abap.js"></script> <script id="sap-ui-bootstrap" src=".../sap-ui-core.js"></script> 

 

I declase data-sap-ui-libs="sap.m,sap.ui.commons, sap.ui.table,sap.ui.ux3,sap.ushell" and use the following source for sapui5

https://sapui5.hana.ondemand.com/1.34.9/resources/sap-ui-

core.js

 

How to initialize the sap.ushell in case of sap hana ondemand?

Thanks

404 Not found issue - XS project and UI5 Projects

$
0
0

Hi Experts,

 

We have moved XS project and UI5 projects from Dev environment to Test environment using Life cycle management.Transport is successful and we could able to see transported content in Test Environment.But when we are running ui5 projects and xs projects we are getting 404 -not found error.Hana version which we are using in both environments is 1.74.Could you please provide some inputs on this.

 

Regards,

Pavani

HANA client installation ODBO error

$
0
0

I am trying to install HANA client into my Windows 7 machine. Everything installed but the ODBO  package failed. The error points to system32 folder missing in the windows registry. Have anybody run into this and have a solution? I have attached a screenshot here.

 

I installed HANA client into another windows 7 machine before and it successfully installed without any error.

SAP HANA Passing parameter to temp table using stored procedure

$
0
0

Hi Experts,

 

Ive been trying to make a stored procedure that include a temporary table but i encountered this error.

 

 

 

 

Could not execute 'CREATE PROCEDURE "SBODEMOAU"."SampleSample"(IN sample1 varchar(200)) AS BEGIN CREATE LOCAL ...' in 3 ms 972 µs .

SAP DBTech JDBC: [467] (at 72): cannot use parameter variable: SAMPLE1: line 1 col 73 (at pos 72)

 

 

HERE IS MY SCRIPT

 

 

CREATE PROCEDURE "SBODEMOAU"."SampleSample"(IN sample1 varchar(200))

 

 

AS

 

 

BEGIN

  CREATE LOCAL TEMPORARY TABLE #"Mike1" AS(

  SELECT "DocEntry", "CardName", "DocDate" FROM "OINV" WHERE "CardName" = :sample1);

 

END;

Viewing all 6412 articles
Browse latest View live


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