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

HANA Project Editor vs Studio SQL Editor

$
0
0

Hi,

 

I'm trying to create a procedure within a HANA Project however it seems that the syntax required for some bits of code is different when compared to creating the procedure in the Studio SQL Editor. I have found two specific cases

 

1) CE_PROJECTION filter

 

In Studio SQL Editor this works fine:

    

     t_objk_proj = CE_PROJECTION(:t_objk_sn, ["OBKNR","EQUNR", "TASER"], ' "TASER" = ''SER03''');

 

However if I try to create the procedure in a Project and Commit and Check to the Repository I get an error "Syntax error, "'SER03'" is incorrect or misplaced."

If I change the code to the following then it works:

 

    

t_objk_proj = CE_PROJECTION(:t_objk_sn, ["OBKNR","EQUNR", "TASER", CE_CALC(':ser03', NVARCHAR(5)) AS"SER03"], ' "TASER" = "SER03" ');

 

Is this by design or is it a bug?

 

 

2) ROW_NUMBER()

 

In Studio SQL Editor this works fine (Note: goods_movement_out is a table variable ):

 

SELECT *, ROW_NUMBER() over (partition by equnr order by cpudt desc, cputm desc) as row_num

FROM :goods_movement_out

 

However if I try to create the procedure in a Project and Commit and Check to the Repository I get an error "Syntax error, "(" is incorrect or misplaced."

I haven't been able to fnd a workaround or correct syntax for this in the Project Editor.

 

I'm on version 51.

 

Please advise.

Thanks

Peter


AWS HANA Developer Ed. Access to SAPUI5 Toolkit

$
0
0

Hi,

 

I've signed up to a Dev instance of HANA on AWS following the signup guide (http://scn.sap.com/docs/DOC-28294)

 

However when I try and access the SAPUI5 toolkit I get an error saying the link is broken. Below is the URL I try and access the demokit with-

 

http://<hana_server>:8000/sap/ui5/1/sdk/index.html

 

 

I can successfully access the XS status page using

 

http://<hana_server>:8000

 

so don't think its a port access issue

 

 

 

Thanks in advance,

 

Stephen

Weird Replication Issue

$
0
0

Hi

 

Replication works perfectly fine except the tables related to material master (MARA, MARC, MAKT). Replication is happening but something weird  is going on. The first load works good and brings all the materials from client 300 (HANA is hooked to client our ECC client 300). When I try changing something in a material it gets reflected in HANA but with a different client number 100. So what ever changes made it gets reflected only in the client 100 record. I even tried a new replication but didnt help. Appreciate the help.

 

 

HANA.jpg

 

Thanks, Raj

Replicating ECC hierarchies in SAP HANA

$
0
0

Hi Gurus

 

Can we replicate ECC hierarchies in SAP HANA?

As per my understanding it is not possible and have to recreate them in Studio.

 

If yes, please explain the process..we are using SLT to replicate data from ECC to HANA

 

Thanks,

Nikhil

HANA Studio and READ ONLY procedures / debug catalog-based procedures

$
0
0

Dear experts,

 

I'm evaluating HANA trial version with HANA Studio Version: 1.0.48.

 

we can't create procedures that uses i.e. dynamic SQL like EXEC in a project

Thats a limitation build into HANA

 

Problem:

 

I had to switch to catalog and define a procedure directly in my schema

This works and I got my READ WRITE procedure, BUT now I have no possibility to DEBUG my source

because this seems only possible under projects explorer - and I'm trapped here

 

This is a little bit frustrating since I'm used to debug such procedures under ORACLE database

with SQL developer i.e.

 

For development this is a major backdrop: How you want to handle DDL/DML statements inside

procedures by using dynamic SQL i.e. for automating partition handling and NOT able to debug it in advance?

 

Please can someone give an input?

Access Hana with SOAP

$
0
0

Hi all,

 

I would like to access Hana data using SOAP-based web services (from an existing Xcelsius dashboard). In the Hana Academy it was said that this is going to be possible with the XS engine but I cannot find any docs or instructions how to actually make a WS. Can please someone provide some pointers for this?

 

Cheers,

 

-- Micha

Confusing documentation of the SAPUI5 installation

$
0
0

Hi all,

 

I was trying, unsuccessfully, to use the SAPUI5 kit on the AWS Hana instance. There are various sources of information how to install SAPUI5 (why is it not installed by default in the first place?), all of which, at least in my case, did not lead to a successful installation:

 

  • Most sources refer to the section 10.1 of the Developer Guide. The title of this section is "10.1 Data Access with JavaScript in SAP HANA XS", so this is certainly not the right one. The title of the section 11.1.1 is "Installing SAPUI5 Application Development Tools", so this looks more like the one.
  • This section then says "SAPUI5 application development tools are downloaded from the SAP Software Download Center on SAP Service Marketplace (http://service.sap.com/swdc) and search for SAPUI5 TOOLS IDE PLUGIN 1.00." This assumes that each Hana One user has an access to the SAP Service Marketplace, which is obviously not the case.
  • I happen to have access, however when searching for this string, all I get are three packages with some pdf documents, no code. This is probably due to the fact that my company has not bought a Hana licence, we have only another SAP product. So this path stops here.
  • There is a video http://www.saphana.com/docs/DOC-3034  which handles the SAPUI5 installation. Strangely, instead of telling where to download the package, it says that the author is using an internal SAP download URL which does not work from the outside, customers are referred to the online help and to the Developer Guide which allegedly contains the download URL. It does not.
  • Other blogs here say that the AWS Hana should use Import/Delivery Unit to download the package from the server. This seemed quite promising, the package is there and I could start the import. Unfortunately, after the import, Hana Studio shows no sign of having the package installed. In Help/About/Installation Details the SAPUI5 package is nowhere to be seen and when trying to create a UI5 project in New/Other, there are no SAPUI5 entries here, so well visible in the exercise videos. Another bummer.

 

So, please, would it be possible to present some uniform documentation that tells the user how to really install SAPUI5?

 

Cheers,

 

-- Micha

Backup Wizard Disabled in from HANA Studion

$
0
0

I am trying to Backup a HANA Revision 36 AWS machine to SPS5 Rev 48 AWS. However when I am trying to backup my original instance I see the backup wizard has been disabled from the  HANA studio. Also I notice there is a an error in licence tab that the system has been locked as its using more memory than allocated although looking in the overview tab of admin console shows there is still enough capacity left. Is there any reason why the backup wizard has been disabled and how to fix it.

 

How can I do the backup and recovery into SPS 5 without doing a lot of export/Import.


Error while creating a function in HANA

$
0
0

I need help with an error that comes after I do a select statement for a function that I created.

 

This is the function

 

CREATEFUNCTION"PTIRUCHANUR"."ufnGetAllCategories"(retCategoryInformation INT)

RETURNS table (

   "PARENTPRODUCTCATEGORYNAME"NVARCHAR(50) ,

    "PRODUCTCATEGORYNAME"NVARCHAR(50),

      "PRODUCTCATEGORYID"INTEGER

)

LANGUAGE SQLSCRIPT

SQL SECURITY INVOKER AS 

 

-- Returns the CustomerID, first name, and last name for the specified customer.

BEGIN

      RETURN  Select

      "PARENTPRODUCTCATEGORYNAME",

      "PRODUCTCATEGORYNAME",

      "PRODUCTCATEGORYID"

     

      from"PTIRUCHANUR"."VGETALLCATEGORIES"

      Select * from "PTIRUCHANUR"."ufnGetAllCategories" ('5')

 

    where  :retCategoryInformation = "PRODUCTCATEGORYID";

     

END;

 

The error that I get when I do


Select * from "PTIRUCHANUR"."ufnGetAllCategories" ('5')

 

is as follows

Could not execute 'Select * from "PTIRUCHANUR"."ufnGetAllCategories" ('5')' in 44 ms 838 µs . SAP DBTech JDBC: [2048]: column store error: search table error:  [34092] search on calculation model requires parameters;Required variable $$retCategoryInformation$$ is not set.

 

Please help me with this.

 

Thanks.


Does SAP HANA supports JCO?

$
0
0

Dear All,

 

There is one requirement where we need to Integrate SAP HANA And JAVA using SAP JCO Libraries.

 

Can anyone tell me if this is feasible.

 

Can we integrate SAP HANA using JCO (Either 2.1 or 3.0)?

Which JDK Version should be used??

Query plan not available

$
0
0

Hi, due to the performance issues we are facing, we try to investigate the query plan.

We found some description how to generate it in admin guide, however it is not sufficient in a sense that it only refers how to generate but not interpretation which information means what.

What is worse, we now cannot generate it on rev. 52 which used to work on rev. 47.

 

Please someone kindly advise how to resolve the issues above.

How to get global cpu an memory statistics for my HANA landscape?

$
0
0

Hello,

 

I am looking for information like to be found in

_SYS_STATISTICS.GLOBAL_CPU_STATISTICS and

_SYS_STATISTICS.GLOBAL_MEMORY_STATISTICS.

After an update these table appear to be empty. I have found in [1] that they are deprecated now, but there is no hint how I get the cpu and memory usage of my landscape. Where are these to be found? Is there any possibility to enbale the statisticsserver to provide this information again?

 

I appreciate any help.

 

Thanks,

Cornelius Bock

 

[1]: http://help.sap.com/hana/html/sys_statistics_views.html

Stopping Scriptserver

$
0
0

Hello,

recently I enabled the scriptserver to try some PAL functions.

I followed the steps on

http://search.sap.com/notes?id=0001650957

 

Now I want to stop it again t free some RAM.

 

The Note says:

"Stopping the script server

To stop the script server change the parameter 'instances' to 0. After the next SAP HANA database restart the script server is stopped."

 

It worked out so far (scriptserver stopped), but now my System-State is always red because of the stopped scriptserver...

System_State.PNG

 

System_Landscape.PNG

 

Additionally I get some alerts:

alerts.PNG

 

What do I need to do to stop these alerts and remove the red system state?

 

EDIT: Additional Problem is, I can't do a data backup any more...

 

Regards,

Fabian

Import from CSV FILE does not insert....

$
0
0

Hi,

 

I am executnig following statement using Studio -

 

insert from CSV FILE '/usr/sap/H11/list.txt' into SAPH11.USZZZ with records delimited by '/n' field delemited by '|';

 

It does not insert any records. The csv file looks as follows -

 

"ASDFGHU"|"0"|"ASDFGHJKLPOIUYTREWQA"

"QWERHFY"|"128"|"ZXCVBNMKLKHGFDSAQWER"

"IUYTFGR"|"66"|"OIUYHJKMNBGFVCDXSERW"

 

I am hoping that it is a auto commit. It does not give any error.

I tried to reduce the length to 4-5 CHAR only for last field then it inserted only one row, which is first row in the file.

 

What could be the reason?

It appears to be a simple thing but does not seem to work. It does not give any error.

I see the message "successfully executed......".

 

Please help me.

Best Regards,

SS

Register for trial fails

$
0
0

Hello everybody,

 

unfortunately i can't register for a cloudshare trial. I found in the forum the same issue from different users, but none of described answers there helped to solve the issue.

 

I tried different browsers and looked for misspelling terms, but nothing helpe. I always get the message " Thank you for your interest in ...." but there is no redirection to cloudshare.

 

Anybody who has other suggestions to solve the problem?

 

Thanks in advance

 

Tim Anderson


Unable to connect to SAP HANA from HANA Studio

$
0
0

Unable to connect to AWS HANA instance from HANA Studio. Right clicked on the navigator and opened properties. The "License" section is giving below error
"Licensing functionality is not active in this SAP HANA database
Reason: Cannot retrieve JDBC connection for: HDB"

Tried creating new system but gives error
"The system is not reachable, the login data could not be considered."
Since the license section isn't working, unable to renew the license.
The instance is running fine from AWS management console.

 

Please help.

Regards,
Smita

SLT Replication - Status Scheduled

$
0
0

Hi All,

 

I am facing an issue while replicating tables from an ECC(source system) into HANA server(target system).

 

I have a working SLT replication server which is hosted on a different system than the source system.

 

The replication status is showing 'Scheduled' for the last 48 hours.

 

Can you suggest some measures to solve this issue ?

Connecting Studio to HANA running in AWS

$
0
0

I am trying to connect SAP HANA Studio to the running HANA instance in AWS, but getting the following issue.

 

------

"The system is not reachable, the log-in data could not be considered.

 

Are you sure you want to add the system into your workspace?"

----

HANA issue.png

 

Elastic IP address was created and associated to HANA instance in AWS.

 

Default log-in details used: SYSTEM/manager

 

HANA running with green status in AWS:

 

Please help as to what I am missing in connecting Studio to HANA running in AWS.

 

Thanks

Intellipaat provides SAP HANA online Training.

Backup Wizard Disabled in from HANA Studion

$
0
0

I am trying to Backup a HANA Revision 36 AWS machine to SPS5 Rev 48 AWS. However when I am trying to backup my original instance I see the backup wizard has been disabled from the  HANA studio. Also I notice there is a an error in licence tab that the system has been locked as its using more memory than allocated although looking in the overview tab of admin console shows there is still enough capacity left. Is there any reason why the backup wizard has been disabled and how to fix it.

 

How can I do the backup and recovery into SPS 5 without doing a lot of export/Import.

Viewing all 6412 articles
Browse latest View live




Latest Images