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

403 Error with destination to NWG service

$
0
0

I've configured a destination in a HCP trial account and I'm getting a 403 Forbidden error.  I'm able to access the service using Postman.

 

The configuration of the destination is shown below.  I followed the instructions in How to configure an external GW system with SAP Web IDE.

 

 

gbidest.png

 

The relevant portion of my index.html file is:

 

<script>

       var oDataModel = new sap.ui.model.odata.ODataModel("/gbihana/sap/opu/odata/sap/ZOSCI_GBI_HANA_ODATA_1_SRV");

 

 

       var oSalesOrdersList = new sap.m.List({headerText:"All Customers"});

       oSalesOrdersList.setModel(oDataModel);

       oSalesOrdersList.bindItems({

          path: "/Customers",

          template : new sap.m.StandardListItem({

            title: "{CUSTOMER_NAME}"

          })

       });

       oSalesOrdersList.placeAt("content");

    </script>

and my new-app.json file:

 

"routes": [

      {

      "path": "/gbihana",

      "target": {

        "type": "destination",

        "name": "HANAGBI"

      },

      "description": "Fiori Trial Demo Backend System"

    },

The error looks like this in Chromes developer tools:

 

forbidden.PNG

 

I have successfully configured Open Weather service that Rui described in Lightweight HTML5 apps and Git on SAP HANA Cloud Platform but HCP is pretty new to me and I'm sure I'm missing one small detail but I'm out of ideas.  I've seen the error mentioned in the comments of a couple of blogs but there is never a resolution mentioned.

 

Any help would be appreciated,

 

Ross


Workspace Synchronization Hana Studio 82 rev

$
0
0

Hello Everybody!

 

I'm trying Eclipse Luna with Hana Development Plugin current on rev 82 and I have a couple of questions.

 

Where I could found the workspace synchronization checkbox and what means the option Expert Mode under Preferences/Repository.

 

rev82.png

Eclipse Luna with Hana Plugin Rev 82.

 

 

I want to disable the autocommit to the hana repository as I did on Hana Studio Rev 73. Is this possible under this revision?

rev73.png

Hana Studio rev 73

 

Thanks a lot!

 

Felipe Antonio

Problem With Import SAP HANA Model

$
0
0

Hi Experts!!!

 

When i try to export my model with my Attribute And Calculation Views to SAP,

 

appears the next error:

 

               "An error occurred while accessing data; %s [Message 1740000901 -6]"

 

Do you know why occurs the error? You can help me with information or

 

orientation about this?

 

 

Thanks In Advance!!!

 

 

Best Regards!

 

 

Luis Ibarra

Re: Can not connect to Hana trial, where can I find my password?

$
0
0

I recon, they send you an email with the password on your registered account. It's different than your SDN password.

Re: Does HANA support function in index?

$
0
0

Hmm... are you sure you found the largest possible font size for questions?

 

Quickly to your questions:

 

SAP HANA doesn't support function based indexes (FBI). Instead you can create generated columns (GENERATED ALWAYS AS - check the SQL reference for the exact syntax). These generated columns are semantically the same as FBIs

 

And indexes are always local to a partition.

 

All in all the most important thing about indexes in SAP HANA is that you really should not make the mistake and apply your Oracle-Knowledge of indexes to SAP HANA.

Although indexes are not completely irrelevant in SAP HANA they are way less important and required than e.g. in Oracle.

 

I've described indexes in SAP HANA in Richard's and my book (Book Announcement: SAP HANA Administration) in some more detail.

 

- Lars

Re: Modification of subject table in trigger not allowed--

$
0
0

Instead of explicitly writing an update statement, you would simply assign the new values via the transition variables NEW.

 

Check the documentation, there's an example in there, if I remember correctly.

 

Besides that, my recommendation around triggers would be: don't use them.

If you want to ensure clean data entry to your tables - there are other and better methods to achieve this.

With triggers in place, you've build yourself a maintenance nightmare that not even you as the creator have a good grasp on, let alone the poor next guy who has to support the application in years to come.

Also, the required logic typically is not limited to just a single table (e.g. checking cross references, totals, etc.) and so you end up with a high level of barely visible dependencies.

Last but not least, triggers slow down your transaction processing and nobody wants that, right?

 

- Lars

SAP HANA 1.0: Getting SQL error while running script to create calculation views

$
0
0

Hi All,

 

I am trying to create calculation views via scripts but i am getting some SQL errors. I have all the rights and the Scripts seems to be fine syntactically.

 

Can anyone suggest what could be the reason for the same. I am attaching the document having the error message screenshot and the script.

 

Please let me know if anyone has some solution.

 

 

Regards

Re: SAP HANA 1.0: Getting SQL error while running script to create calculation views

$
0
0

Atul,

 

the attached log unfortunately doesn't contain the activation log error messages.

From one of the screenshots it's visible that at least one of the errors is that the view does not have any measures defined (on the semantic) level.

You can fix this by either defining a measure or declaring the view as a dimension view (without measures).

 

There also seems to be a second error, which I could not fully see. In case you need assistance with that too, please post the full activation log.

 

As a side remark: variable names like TABLE_1 or var_A are not a good choice ...

 

- Lars


Re: Modification of subject table in trigger not allowed--

$
0
0

Thanks Lars!

 

I am trying to use transition variable but still getting a syntax error .

 

Can you be little bit more specific may be with a sample code  regarding how to overcome update query issue?

 

 

 

-Rahul

Re: insufficient privilege: Not authorized

$
0
0

Hi Jimmy,

 

I've tried executing the statement

 

grant execute on system.afl_wrapper_generator to YOURUSER

where YOURUSER is HANA in my case.


But I am getting an error that grantor and grantee are the same.


Could not execute 'grant execute on system.afl_wrapper_generator to HANA' in 2 ms 723 µs .

SAP DBTech JDBC: [7]: feature not supported: grantor and grantee are identical

 

Then I created another user called ZIPSHOP and when I executed the command

 

grant execute on system.afl_wrapper_generator to ZIPSHOP

 

I am getting the error message:

 

 

Could not execute 'grant execute on system.afl_wrapper_generator to ZIPSHOP' in 12 ms 651 µs .

SAP DBTech JDBC: [258]: insufficient privilege: Not authorized

 

Can you please help.

 

Thank you.

 

Regards,

 

Pavan.

Push notification

$
0
0

Hi,

 

Can we implement push notification concepts in SAP HANA XS application?

 

Regards,

Harish

Concat Distinct rows into a single string

$
0
0

Hi,

 

In my table I have rows like this

 

Table Name : Test

 

Name

-----------------------

sam

khan

sun

sam

 

My query

 

Select string_agg(Name,',') from Test

 

Output

 

sam,khan,sun,sam

 

But it is giving Duplicate values like sam comes twice.

 

Please help me to Eliminate duplicates while using string_agg function

Re: Concat Distinct rows into a single string

$
0
0

You might be successful if you tell SAP HANA that you want the duplicates to be eliminated.

 

select string_agg_name,',') from

( select distinct name from test

)

 

You might be careful though when your inner select contains an aggregation already. Then the SAP HANA optimizer can find the DISTINCT to be disposable...

But that's problem to deal with when you face it

 

- Lars

XSoData Post error treatment

$
0
0

Hi All,

 

I'm trying to bulk post to an OData service and for some reason, the posting is failling. I know that in the http return, I already have a description regarding the error message, but is possible to check somewhere (maybe increasing a trace level, for example) a comple error message, or at least more details about the error?

 

Thanks and regards,

Roberto Falk

Re: cannot get the data provider outline

$
0
0

Hi ,

 

I have similar issue , i'm using HANA cloud platform and Eclipse to create information views.

 

for Analytical view, i'm able to validate and activate successfully but data preview is where it throws the error :

 

 

i have done this :

grant select on schema <Schema_Name> to _SYS_REPO  with grant option;--this executes

 

grant select on schema <schema_name> to <user_name>; below error

 

SAP DBTech JDBC: [7]: feature not supported: grantor and grantee are identical

 

 

please let me know the steps to be followed .

 

 

 

Regards,

-Prasadcannot get the data provider outline.jpg


Re: HANA Instr function to check for numbers?

$
0
0

Hi Echo,

 

I think that with a slight modification in Lars code,  you can acieve it

After replacing all the numbers with empty string, if the modified string is still same as the original string then the original string doesn't contain any numbers.

 

instead of  ::

 

if length(:tmp_string)>0 then

    isNumeric := 0;

else  

    isNumeric := 1;

end if;

 

you can replace it with

 

 

if length(:tmp_string)= length(:checkString) then

    isNumeric := 0;

else  

    isNumeric := 1;

end if;

 

Thanks to Lars for the cool logic.

 

Regards,

Lalu George

HANA SQL Sub Query - Unique Record

$
0
0

I have a sub query question on VBAP & VBEP.I want to get a unique record for my sub query based on the below criteria.

Appreciate any help on sql subquery.

 

1) Sort the data by VBELN,POSNR ASC & Confirmed Qty ( VBEP-BMENG)  DESC.

2) Now read only the first record for each Sales Order / Item. The result should extract ONLY one record from VBEP table.

 

Sample Data -1

 

VBAP Data

Sales Order               Item

320910685                10600

 

VBEP Data

Sales Order   Item        Schedule Line   Delivery Date    Confirmed Qty

320910685     10600      1                     10/21/2014           0

320910685     10600      3                     10/21/2014           0

320910685     10600      6                     10/21/2014           0

320910685     10600      7                     11/03/2014           100

320910685     10600      8                     11/03/2014           20

320910685     10600      9                     11/03/2014           30

 

RESULT:

Sales Order   Item        Schedule Line   Delivery Date    Confirmed Qty

320910685     10600      7                        11/03/2014            100

 

 

VBAP Data

Sales Order               Item

320910685                11800

 

VBEP Data

Sales Order   Item        Schedule Line   Delivery Date    Confirmed Qty

320910685      11800      2                        12/30/2015           1

320910685      11800      3                        12/30/2015           1

 

RESULT:

Sales Order   Item        Schedule Line   Delivery Date    Confirmed Qty

320910685     10600      2                         12/30/2015           1                              

                           [ OR ] 

320910685     10600      3                         12/30/2015           1

Re: HANA SQL Sub Query - Unique Record

$
0
0

Not sure if your requirements are actually fulfilled by the following, but it should at least generate your samples:

 

SELECT ap."Sales Order", ap."Item", ep."Schedule Line", ep."Delivery Date", ep."Confirmed Qty"

FROM "VBAP" ap

     INNER JOIN

          (SELECT TOP 1 "Sales Order", "Item", "Schedule Line", "Delivery Date", "Confirmed Qty"

           FROM "VBEP"

           ORDER BY "Confirmed Qty" DESC) ep

     ON ap."Sales Order" = ep."Sales Order";



Looking at the sample result sets it looks as if it would be possible to select the data only based on "VBEP", but I assumed that there are some more selection criteria that you want to apply based on "VBAP".

Also, and don't take this the wrong way, but it is really a SQL beginner's question. So if you are going to develop more SQL it might be a good choice to top up your game and learn more about SQL programming.

 

- Lars


Re: HANA Trial - XS Application not available in Project Explorere

$
0
0

Hi Thomas,

 

Recenty we´ve updated to SAP HANA and now I´m looking for what tecnology use to make a app to sell differents products with this app, I don´t know if this is possible or I must looking for other technology to do this...

perhaps Dot Net (ASP) + webservices or SAP Gateway (OData).... I don´t want to make a native application por Ipad, Iphone or Android....

 

I´ve decided to use SAPUI5 + SAP Gateway or WebServices in SAP, I´ve found SAP WEB IDE (before known as SAP River) this is a wysiwyg editor (great !!! at last !!!). I´m going to install the local demo to check the SAP Web IDE. But I´ve got a very big doubt. is it possible to use like this link ????

 

End to End Development Example with SAP NetWeaver 7.4 & SAP HANA

 

Or Must I use SAP HANA Cloud ???? If I need SAP HANA Cloud I won´t be interested.....

 

Could I use XS Engine from SAP Hana to house the app ????

 

Maybe I must write the application in SAPUI5 and I must forget the Sap Web IDE ????

 

Any help about this topic ?????

 

Thanks in advances and sorry for me english ....

Persistence Layer

$
0
0

can any one explain about what is  Persistence Layer 

 

 

and write a head LOGS,

 

Shadow Paging

 

Save Point

 

 

 

Thanks for your Responce

Viewing all 9165 articles
Browse latest View live


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