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

Re: What is the correct way for calling odata?

$
0
0

Hi Kemal,

 

You can use application privilege in your project and grant this application privilege to those who you want to access your xsodata. You can use xsprivileges, hdbrole and xsaccess to achieve this.

 

You can have a look at the following stuff.

Create an SAP HANA XS Application Privileges File - SAP HANA Developer Guide - SAP Library

The Application-Privileges File - SAP HANA Developer Guide - SAP Library

Application Privileges - SAP HANA Developer Guide - SAP Library

 

Best regards,

Wenjun


Re: Validation Exit with XSJS

Re: Validation Exit with XSJS

$
0
0

Wenjun Zhou wrote:

 

Hi Aamod,

 

You need to use "var" instead of "let" which does not exist in the syntax of JavaScript. I think it's pseudo code in Tutorial: Creating a Modification Exit with XS JavaScript - SAP HANA Developer Guide - SAP Library

 

Best regards,

Wenjun

I'm sorry but you are wrong. LET is valid syntax.  JSLint might report it as a syntax error but it does activate correctly with the checks on the server side.

 

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/let

HALM - Transport Blocker: Time difference between systems is more than 1 minute.

$
0
0

Hi all,

 

I try to setup a transport route between a HANA ONE Rev 70 and a Developer HANA Rev 80 system. I did the usual setup:

  1. Adding the system
  2. Create the DU
  3. Create the transport route

 

I did these steps several times before with different systems, DU's and routes and everything was fine. But with our productive HANA ONE Rev 70 as target system I get the following warning:

 

  1. message: "Time difference between systems is more than 1 minute. That can lead to inaccurate information in the log files."
  2. severity: "WARNING"
  3. status: 4
  4. status_updated_at: "2014-10-24T14:51:51.331Z"

 

This warning is blocking all transports I try to start.

 

I have no clue what I can do to fix the problem. I can't find anything about it in the documentation or in the forum.

 

delivery_warning.PNG

 

I would be happy about any hint.

 

Best,

 

Mathias

Re: Validation Exit with XSJS

XSODATA Best Practices

$
0
0

Hi All,

 

 

 

    What's the best way? and Why?

 

 

          - All Services in ONE XSODATA File

          - XSODATA Files per Business Object

          - 1 XSODATA File per table

 

 

 

Thanks,

Re: Validation Exit with XSJS

$
0
0

Hello Thomas,

 

Thanks for replying. I was able to get to the code using the thread, How to load HANA table in UI5 table control.

 

I was able to resolve the issue. One more thing I noticed in HANA studio, the IDE shows error messages on js files, however we are able to activate and deploy the xsjslib files and the code / logic works as expected. So is there a way to get rid of these errors from studio.

 

Thanks

Aamod.

Re: Validation Exit with XSJS

$
0
0

>So is there a way to get rid of these errors from studio.

 

Yes. Right mouse click on the project and choose Disable JSLint.


Re: Migration of data Archive Files from one DB to HANA H/W.

$
0
0

Jeeth,

 

I would not use the classical archiving in BW but switch right away to the NLS (Near Line). With ADK based archiving the DATA has to be reloaded (see note 1652907).

 

SAP now offers this in conjunction with Sybase IQ as a storage system. The NearLine data will be available for reporting without reloading.

 

Sybase IQ will compress the Data ( 70-90% ) with a performance equal or better than the traditional row oriented databases.

 

Please check note 796393 for compatible Netweaver releases.

 

 

When migrating to HANA the NLS storage will run seamlessly with the new HANA DB.

 

http://scn.sap.com/docs/DOC-54468 

 

Best Regards

 

Stefan

Practice Engineer ILM

Re: Call ABAP function by xsjs

$
0
0

Thank you very much Thomas/Sreehari,

 

I got logic and solved the problem myself !!!

Re: Convert GUID_X16 to GUID_C22

$
0
0

Hi Aamod,

 

 

 

You can call ABAP function module in HANA using HTTP Outbound Connectivity the logic behind it as below.

 

 

 

1 Create Web service or RFC connection in the SAP System and in the service use GUID_CONVERT function module that will return you converted GUID_C22 format.

 

 

 

2.Consume the Web service in HANA using Outbound that will return you expected converted GUID_C22 according to your GUID_16 paramaeter.

 

 

 

3.Use GUID_C22 and search with ITEM table and once get match GUID with table GUID, return the MATNR.

 

Thanks,

Shambhu Nath

Re: XSODATA Best Practices

$
0
0

One xsodata file for a business need will be a suggested method always .

 

           --All Services in ONE XSODATA File

               -->less readability , huge metadata will be generated, all objects will be activated in change of file.

              --> one odata model will be required to consume from ui5 or any such ui services

          - XSODATA Files per Business Object

            -- >for a particular business use, we can keep one file . It will have separated odaata models per file, better readability

          - 1 XSODATA File per table

             --> not at all required. separate metadata will be generated for each of these files, which is not required at all

Re: Call ABAP function by xsjs

$
0
0

great to know. If you have used any approach other than what we have discussed, please share it and close the thread !

 

Sree

Re: XSODATA Best Practices

$
0
0

My personal approach:  If tables/entities have a relationship to one another they go into a file together so that they can have association links. Otherwise I break them up into separate files.

Re: Smart Data Access can not add virtul table

$
0
0

How did you create the virtual table? With SQL or by right click and add virtual table?


Re: Smart Data Access can not add virtul table

$
0
0

Right click! i also did create another SDA connection to HANA db  (rev 73),it's OK! so  i wonder  whether it is because two HANA DB have different version.

Re: Smart Data Access can not add virtul table

Re: Smart Data Access can not add virtul table

$
0
0

i  have tried using SQL, but same error!

"Could not execute 'CREATE VIRTUAL TABLE vt_T006 AT "CRM on HANA"."NULL"."SAP_HANA_DEMO"."T006"' in 15 ms 85 µs . SAP DBTech JDBC: [476]: invalid remote object name: Unable to retrieve remote metadata for SAP_HANA_DEMO.T006: line 0 col 0 (at pos 0) "

Re: Converting Store Procedure from SQL to HANA

$
0
0

Is there any automated tool to convert. Regards Manish

Re: Smart Data Access can not add virtul table

$
0
0

From your SQL statement, does your remote source look the same as follows?

 

Capture.PNG

Viewing all 9165 articles
Browse latest View live


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