Quantcast
Channel: SCN: Message List - SAP HANA and In-Memory Computing
Viewing all 8968 articles
Browse latest View live

Re: Redeployment of object/view using HANA SQL code

$
0
0

Hello Biswajit,

 

have you found a way to deploy or re-deploy using HANA SQL code/key word/syntax?

 

Thank you sincerely,

Daniel


Re: BEx Query Slower in Hana?

Re: Information Composer: "Could not grant permissions to role(s)"

$
0
0

Hi Martijn (and other gurus ;-),

 

Ever come across this in newer revisions? Facing the same issue in a SPS6 box.

 

Authorisations seem ok, IC role assigned, user has Admin roles and root access to packages/views.

Re: Standard Sql scripting Vs CE built-in functions ? Which one should I need to choose?

$
0
0

Much awaited reply.

 

Thanks a lot Jain !

 

But just one more point to bring out, if some of requirements can be done through bothCE functions and Scripting,  and some are possible through only scripting then we need to go for sql scripting only ..as we are not supposed to bring both the coding standards together, results in performance issues. ( Even your diagram shows either CE functions or Use SQL)

 

am i right?

 

Thanks,

Sree

The serialized resource has an missing value for member "TEST_NAME"

$
0
0

Hello Experts,

 

I am using oModel.create (oModel is object of sap.ui.model.odata.ODataModel) to create new entry in db table using odata services. I am getting values from user and passing it to above method.

service is using procedure for creatio which is having one input parameter of line type of backend table.

 

I am getting error message "The serialized resource has an missing value for member "TEST_NAME".

 

You can see , I am passing value of both fields in request but still this issue is happening. Your help would be highly appreciable.

 

Please refer to attached file for detail.

 

Regards,

Amit Sharma

Quantity Conversion in Analytic View

$
0
0

Hello Folks,

 

We are converting quantity from one uom to another uom in an analytic view.

 

All the required table T006,T006A,T006D are available in the schema but still quantities are not being converted.

 

What could be the issue. Please suggest.

Re: Where to download SAP HANA Platform Edition

$
0
0

FYI: just to confirm what someone stated earlier about only being able to see HANA software downloads (ie SAR files) if your customer is licensed for HANA.  I confirmed this today: on one screen, I was logged into the software download center with a customer's OSS ID who is not licensed for HANA and I could not find a HANA SAR file I was looking for and then on another screen I was logged in with my OSS ID for a customer who is HANA licensed and I was able to find the SAR file.

 

Jim Cleek

HP Enterprise Services

SAP Basis Support

Re: Use external libraries in XS Engine

$
0
0

Hi,

 

So in order to use any external JS library (underscore.js for instance). I have to create my own underscore.xsjslib, and incorporate the source manually?

 

(In fact I am trying to do that right now, however I am fighting lots of jslint errors on the server side)


Time taken for HANA System to become available after a System restart for continuing transaction (in ERP on HANA)

$
0
0

Hi HANA Gurus,

 

Would like to know in a normal system replication based HA for SoH, without memory preload, after an automatic failover to the second node,in how much time HANA becomes available for the SoH(ERP) users to continue transaction.  Consider an ideal scenario with  512 GB appliance , with allocation limit of 490GB approx., considering normal 90% of first 64gb and 97% of every further 64GB memory on the single host.  Also consider a used memory of say 128 GB(indicating database size and considering no custom configuration for specific  tables preload  .Consider the save point is every five minutes as default and committed transactions are written to the log.  Host is replicated to second node using HANA System replication and with HANA automatic failover option. This means on first node failure the HANA system will be restarted on second node and data will be loaded to the memory based on the last state in the other node. As I understand the save points are loaded, logs are applied and database become available for users, the lazy load continues etc. Kindly answer me if anyone knows by experience how much time it takes from the failure detection  to next state of the system becoming available for user to start updating for example a Sales Order. Also like to know more about this start-up process to understand it better(for example the last save points are done by saving the changed pages, so time taken to load the last savepoint pages to memory, then applying transactions from last save point (last 4 minutes for example  before failing over etc).  The purpose is to understand whether the failover time from Primary to standby takes similar time like a traditional db  (for example db2) or more due to memory load time in HANA. At the same time I am aware of other options available to reduce the RTO by using memory preload, cluster solutions from vendors , OS like SUSE etc.

 

Thanks in advance.

 

Rajesh Vikraman

Special SP_TransactionNotification Migration

$
0
0

Hi everybody, can someone help me to convert the following code block from T-SQL to SQL Hana Script?

 

The purpose of this code block, is to avoid to make inventory movements affecting the same accounts financial that i have configured in the inventory item.

 

 

 

Best Regards.

 

IF @OBJECT_TYPE IN ('59') AND @TRANSACTION_TYPE IN ('A', 'U') 

BEGIN

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

DECLARE @DOCENTRY INT

DECLARE @LINENUM  INT

DECLARE @ITEMCODE NVARCHAR (50)

DECLARE @ACCT_MOV NVARCHAR (20)

DECLARE @ACCT_CNF NVARCHAR (20)

DECLARE @GLMETHOD NCHAR (2)

DECLARE @WHSCODE  NVARCHAR (20)

DECLARE @GRPCODE  NVARCHAR (20)

DECLARE @CUENTAS TABLE (LINENUM INT

, ITEMCODE NVARCHAR(50)

, ERROR NCHAR (2))

 

 

DECLARE @BASE TABLE (DocEntry  INT, LineNum  INT, ItemCode NVARCHAR(50), AcctCode NVARCHAR(50)

, AcctCnf NVARCHAR(50), GLMethod NCHAR (2), WhsCode NVARCHAR(16), ItmsGrpCod NVARCHAR(20))

 

 

 

INSERT INTO @BASE

SELECT A.DocEntry, B.LineNum, B.ItemCode, B.AcctCode, '' AS AcctCnf, C.GLMethod, B.WhsCode, D.ItmsGrpCod

FROM OIGN AS A INNER JOIN IGN1 AS B ON A.DocEntry = B.DocEntry

INNER JOIN OITM AS C ON B.ItemCode = C.ItemCode

INNER JOIN OITB AS D ON C.ItmsGrpCod = D.ItmsGrpCod

WHERE @list_of_cols_val_tab_del = A.DocEntry

AND @num_of_cols_in_key = 1

 

 

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

 

 

DECLARE C CURSOR FOR

SELECT DocEntry, LineNum, ItemCode, AcctCode, AcctCnf, GLMethod, WhsCode, ItmsGrpCod

FROM @BASE

 

OPEN C

FETCH NEXT FROM C

INTO @DOCENTRY, @LINENUM, @ITEMCODE, @ACCT_MOV, @ACCT_CNF, @GLMETHOD, @WHSCODE, @GRPCODE

WHILE @@fetch_status = 0

BEGIN

IF @GLMETHOD = 'W'

BEGIN

/* 1 */

PRINT 'W'

SET @ACCT_CNF =

(SELECT  C.BalInvntAc

FROM OITM AS A INNER JOIN OITW AS B ON A.ItemCode = B.ItemCode

  INNER JOIN OWHS AS C ON B.WhsCode  = C.WhsCode

WHERE A.ItemCode   = @ITEMCODE

AND  B.WhsCode    = @WHSCODE)

 

 

IF @ACCT_CNF = @ACCT_MOV

BEGIN

/* 1A */

INSERT INTO @CUENTAS

VALUES (@LINENUM, @ITEMCODE, 'SI')

/* 1A */

END

ELSE

BEGIN

/* 1B */

INSERT INTO @CUENTAS

VALUES (@LINENUM, @ITEMCODE, 'NO')

/* 1B */

END

/* 1 */

END

ELSE IF @GLMETHOD = 'C'

BEGIN

/* 2 */

SET @ACCT_CNF =

(SELECT B.BalInvntAc

FROM OITM AS A INNER JOIN OITB AS B ON A.ItmsGrpCod = B.ItmsGrpCod

WHERE A.ItemCode   = @ITEMCODE

AND B.ItmsGrpCod = @GRPCODE)

 

IF @ACCT_CNF = @ACCT_MOV

BEGIN

/* 2A */

INSERT INTO @CUENTAS

VALUES (@LINENUM, @ITEMCODE, 'SI')

/* 2A */

END

ELSE

BEGIN

/* 2B */

INSERT INTO @CUENTAS

VALUES (@LINENUM, @ITEMCODE, 'NO')

/* 2B */

END

/* 2 */

END

-- Avanzamos otro registro

FETCH NEXT FROM C

INTO @DOCENTRY, @LINENUM, @ITEMCODE, @ACCT_MOV, @ACCT_CNF, @GLMETHOD, @WHSCODE, @GRPCODE

END

 

--cerramos el cursor

CLOSE C

DEALLOCATE C

 

IF (SELECT COUNT(*)

FROM @CUENTAS

WHERE [ERROR] = 'SI'

) > 0

BEGIN

SET @ERROR = 10

SET @ERROR_MESSAGE = 'It's not possible make movements affecting the inventory account configured'    END

END

Calculation View error for CE_PROJECTION while applying Input Parameter

$
0
0

Let say i am in starting stage of learning HANA. My question may look like silly but it is a big deal for me. So, please help me to understand where and what is wrong with my procedure. I really appreciate your help.

 

/********* Begin Procedure Script ************/

BEGIN

  sel1 = CE_COLUMN_TABLE("STAGING"."PARTIES",["PARTY_ID","PARTY_NUMBER","PARTY_NAME","PARTY_TYPE","VALIDATED_FLAG","COUNTRY","STATE","CITY"]);

 

sel2 = CE_COLUMN_TABLE("STAGING"."PARTY_SITES",["PARTY_ID","LOCATION_ID","PARTY_SITE_NUMBER"]);

 

  Cal1 = CE_JOIN(:sel1, :sel2, ["PARTY_ID"], ["PARTY_ID","PARTY_TYPE","VALIDATED_FLAG","COUNTRY","STATE","CITY","LOCATION_ID"]);

 

  var_out = CE_AGGREGATION(:Cal1, [count("PARTY_ID") as "PARTY_ID", '"COUNTRY" = :IN_CNT'])

 

 

END

/********* End Procedure Script ************/

 

Please note that :IN_CNT is a input parameter with following settings

Parameter type = DIRECT

Default Value = CONSTANT

Data Type = VARCHAR(60)

 

I am getting following error message:

Message :

  Internal deployment of object failed;Repository: Encountered an error in repository runtime extension;Internal Error:Deploy Calculation View: SQL: sql syntax error: incorrect syntax near ""COUNTRY" = :IN_CNT": line 7 col 70 (at pos 744)nSet Schema DDL statement: set schema "SYSTEM"nType DDL: create type "_SYS_BIC"."test/TEST/proc/tabletype/VAR_OUT" as table ("PARTY_ID" BIGINT, "COUNTRY" VARCHAR(60))nProcedure DDL: create procedure "_SYS_BIC"."test/TEST/proc" ( IN in_cnt VARCHAR(60),  OUT var_out "_SYS_BIC"."test/TEST/proc/tabletype/VAR_OUT" ) language sqlscript sql security definer reads sql data as  n /********* Begin Procedure Script ************/ n BEGIN n t sel1 = CE_COLUMN_TABLE("STAGING"."PARTIES",["PARTY_ID","PARTY_NUMBER","PARTY_NAME","PARTY_TYPE","VALIDATED_FLAG","COUNTRY","STATE","CITY"]);n t sel2 = CE_COLUMN_TABLE("STAGING"."PARTY_SITES",["PARTY_ID","LOCATION_ID","PARTY_SITE_NUMBER"]);n t Cal1 = CE_JOIN(:sel1, :sel2, ["PARTY_ID"], ["PARTY_ID","PARTY_TYPE","VALIDATED_FLAG","COUNTRY","STATE","CITY","LOCATION_ID"]);n t var_out = CE_AGGREGATION(:Cal1, [count("PARTY_ID") as "PARTY_ID", '"COUNTRY" => :IN_CNT'])n /nnEND /********* End Procedure Script ************/n

Re: Calculation View error for CE_PROJECTION while applying Input Parameter

Re: Calculation View error for CE_PROJECTION while applying Input Parameter

$
0
0

Hi,

 

I think you need to use one CE_PROJECTION and one CE_AGGREGATION instead of just one CE_AGGREGATION.

 

Best regards,

Wenjun

Hana is a Database or Memory and why BW on Hana?

$
0
0

Dear Experts,

 

I have read few documents regarding Hana and I am confused?

 

Following is my understanding. Correct me if I am wrong in my understanding?

 

1. I believe Hana is a database(a different kind of data base with Software and hardware) which stores the data and is very fast.

This Hana Database comprises of both Drive and Ram. Hana's Drive is for storing the Data permanently and Hana's Ram is where the full data from Drive is transferred to Ram and in-memory calculation happens which is very fast.

 

2. I read that we can have 2 options,a Standalone Hana which reads data from SAP ERP and BW on Hana. Why do we need to have BW on Hana, we can just have Hana itself right, because even without BW its faster?

 

Please correct me if I am wrong.

 

Regards

Sam

Re: Calculate Column Subtotal in  Attribute View

$
0
0

Hi Lars,

 

Thanks for the suggestions ...

 

I want to do this calculation in view so as to consume the benefits of Views by bringing down most of the calculations to Database level itself.

 

Thanks,

Gaurav


Help with Text Analytics on a load of PDF docs!

$
0
0

Hi,

 

Am looking for some guidance w.r.t text analytics. We are trying to use HANA as a datamart.

 

Have tried out FULL-TEXT index on structured data and used the 'Contains' functions and fuzzy search - This works as described. However a questoin here is: is there a general rule of the thumb on what will be size of the index table when FULL-TEXT index is switched on? (If I have a 1 GB table where approx 100 MB is a text column, what will the index table size add up to?)

 

Also, Can you guide me with the below:

1. How to upload PDF files into HANA?

2. How to generate text indices on the PDF files

3. How to do select queries on the resultant data?

 

Thanks

Sudarshan

Steps to Implement SAP HANA RDS

$
0
0

Hi All,

 

    Can any one help how to implement SAP HANA RDS .

Run shell commands on Hana Server with XSJS

$
0
0

Hi everyone,

 

Since XSJS is server-side JavaScript such as Node.js, I wanted to know if there is some solutions to execute shell command (like "ls -al" or "pwd") as the example below (with node.js), or like 'exec' command in PHP:

Execute A Unix Command With Node.js | DZone

 

Or maybe if there is any xsjslib which does the same that ShellJS for Node.js (once again):

arturadib/shelljs · GitHub

 

I spent some time searching for examples with xsjs but I could not find any.

I know this has strong security issues so I understand we cannot do it but I prefer to be 100% sure with the answer of someone who has more experience than me with XS.

Re: Run shell commands on Hana Server with XSJS

$
0
0

No, there is no API in XSJS that would allow access to the Shell or OS.

 

The only work around I could think of is to call back to the OS via outbound HTTP connectivity.  Of course this would require creating some executable or using some external Web Server on the OS level directly. In a HANA Appliance model that wouldn't be allowed.  Only certified applications are allowed installed on the same OS. 

Re: Run shell commands on Hana Server with XSJS

$
0
0

That's all I need to know.
Thank you !

Viewing all 8968 articles
Browse latest View live


Latest Images

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