Quantcast
Channel: SCN : Unanswered Discussions - SAP HANA and In-Memory Computing
Viewing all 4343 articles
Browse latest View live

Prohibited Specail Characters and Reserved Characters

$
0
0

Dear Experts,

 

Regarding the titled matter,

 

Does anyone have the list of special characters and reserved characters which are not allowed to use in item code and bp code, and etc?

 

FYI, I'm using SAP Business One 9.1 PL11 (HANA)

 

Best regards,

KeiTa


Hana XSA: JavaScript vs Java

$
0
0

Hello,

 

for my upcoming project we want to use the Hana Platform as the Development Platform. With the Release of SPS 11 Sap introduced XSA with Different runtimes. Because we want stick to one programming technology the questiion arrises which runtime is better for our backend. We will have a hdi container for dB stuft via cds. next step is to define the odata service. it is better to use olingo or xsodata. on the backend several thousand users perform crud operations daily. morover we have synchronization and checking jobs on the backend side. what do you think is the better solution? XS (xsjs, xsodata) or java.

 

Maybe some of you can share your experience from past projects regarding xs or java, some advantages of the technologies, problems you have to deal with. all hints are helpful to decide for the right runtime in our project.

 

 

Regards,

Manjinder

I am facing an issue while importing a excel file(.xls) into hana table

$
0
0

Hi Everyone,

 

When I try to import the excel file (spreadsheet) into a HANA table. its not taking date datatype for date column. Herewith i attached screenshots also.

 

.Screenshot (48).png

 

Error:

Batch from record 2 to 14541 failed

java.lang.IllegalArgumentException

at java.sql.Date.strict_valueOf(Date.java:174)

at java.sql.Date.valueOf(Date.java:134)

To migrate on HANA SPS11

$
0
0

Hi Expert,

We are planning to migrate our MaxDB 7.9 to HANA SPS11 on SUSE Linux.

 

Currently we are running SAP ECC 6.0 environment as below,

1. ECC 6.0 EHP7 (Unicode)

2. MaxDB 7.9 database

3. HP Blade 860c i2 server

4. Operating system HP-UX 11.31

 

Planning to move on HANA as below,

1. HANA database SPS11

2. HP CS500 HANA Appliance

3. Operating system SUSE - SLES 11 SP4

4. ECC 6.0 EHP7

 

 

Please can you let us know the steps or any document on how we can migrate database and operating system to HANA and SUSE Linux. As we want to keep application currently same as ECC 6.0 EHP7.

 

 

Thanks,

Narendra

How to convert SQL Stored Procedure to SAP HANA Syntax and save it to HANA

$
0
0

Hi All,

 

Our client is running on SAP Business One, version for SAP HANA. However, I'm still using the traditional SQL Server on my machine. I have two transaction notification procedures that I tested on my machine and I want to migrate from SQL to SAP HANA. However I'm not familiar with SAP HANA syntax so I don't know how to do this. I require your help.

 

1. Here are the two transaction notification stored procedures that I require help in changing the syntax to suite the HANA environment.

 

--ADDYOURCODEHERE

-- Block a Standard Production Order without a Production Reference number

IF @transaction_type IN (N'A',N'U') AND @object_type = '202'

BEGIN

IF EXISTS (select DocNum from [dbo].[OWOR] T0

where T0.U_Prod_Reference IS NULL AND T0.Type = N'S' AND T0.DocEntry=@list_of_cols_val_tab_del)

BEGIN

SELECT @Error = -5006,

@error_message = N'Add a Production Order Reference Number'

END

END

 

 

--Block a Standard Production order if referencing a nonexistent disassembly production order

IF @object_type = '202' and @transaction_type in (N'A', N'U')

BEGIN

declare @DocNumRef nvarchar(10)

set @DocNumRef = (Select isnull(T0.U_Prod_Reference, '') From OWOR T0 WHERE T0.DocNum = @list_of_cols_val_tab_del)

if @DocNumRef !='' and

  not exists (Select T0.DocNum FROM OWOR T0 WHERE T0.DocNum = @DocNumRef AND T0.Type = N'D')

  Select @error = 109, @error_message = 'Please enter an existing production order that is being referenced by this Standard Order'

 

END

 

Both Transaction notifications are blocking the user from adding documents if the necessary parameters are not met and the system produces an error.

 

2. If possible, I would appreciate if I'm shown the steps of how to save it in the HANA Studio. If there's a guide I can follow that would be great.

 

Reply will be appreciated

 

Kind Regards,

Pascale

Migrating SAP Business One to SAP HANA Sizing

$
0
0

Hi Xperts,

 

We are planning a Migration from SAP Business One 9.1 pl11 to SAP Business One Version for SAP HANA pl12 and we have some inquiries about the sizing:

 

Actually our customer DB is about 600GB in SQL

Server with the next specs:

IBM System x3550 M4 Server

Intel Xeon CPU E5-2670 0 @ 2.6GHz x32

RAM 128GB


After the migration in test environment the Database size is about 59GB, we would like to know if this server could support successfully our customers operation or we need to acquire another server, this server is a SAP HANA certified server.

 

Regards,

David

Unused tables which are loaded into memory

$
0
0

Hi,

 

How do we check the no. of column store tables which are loaded into memory and not used frequently.

 

Thanks

Mahesh

spatial error: exception 1620002: An internal error occurred

$
0
0

Hi,

 

The following query fails

 

SELECT T1.NAAM, T1.GEOM.ST_AsBinary(), T2.PROVINCIE

FROM ( SELECT * FROM SYSTEM.AUTOBAAN WHERE GEOM.ST_Intersects(ST_GeomFromWKT('POLYGON((91600 406400, 91700 406400, 91700 406500, 91600 406500, 91600 406400))', 28992)) = 1) T1

LEFT OUTER JOIN SYSTEM.PROVINCIE T2 ON T1.GEOM.ST_WithinDistance(T2.GEOM, 1, 'meter') = 1;

 

The error is:

 

Could not execute 'SELECT T1.NAAM, T1.GEOM.ST_AsBinary(), T2.PROVINCIE FROM ( SELECT * FROM SYSTEM.AUTOBAAN WHERE ...' in 350 ms 394 µs .

SAP DBTech JDBC: [669]: spatial error: exception 1620002: An internal error occurred

 

While the following queries both work

Without spatial intersects, e.g. browsing all records.

 

SELECT T1.NAAM, T1.GEOM.ST_AsBinary(), T2.PROVINCIE

FROM ( SELECT * FROM SYSTEM.AUTOBAAN ) T1

LEFT OUTER JOIN SYSTEM.PROVINCIE T2 ON T1.GEOM.ST_WithinDistance(T2.GEOM, 1, 'meter') = 1;

 

Placing the spatial intersects in the where clause.

 

SELECT T1.NAAM, T1.GEOM.ST_AsBinary(), T2.PROVINCIE

FROM SYSTEM.AUTOBAAN T1

LEFT OUTER JOIN SYSTEM.PROVINCIE T2 ON T1.GEOM.ST_WithinDistance(T2.GEOM, 1, 'meter') = 1

WHERE T1.GEOM.ST_Intersects(ST_GeomFromWKT('POLYGON((91600 406400, 91700 406400, 91700 406500, 91600 406500, 91600 406400))', 28992)) = 1;

 

Regards,

 

Patrick


Difficult to decide on which way is better

$
0
0

Hi,

 

We are developing a report to see a car part number selling status for eg: Fast Moving, Medium Moving or Slow Moving based on business defined logic. The logic is as below.

 

1) Count how many sale order lines the parts are

2) Find the percentage of sale order line of each part against total number of sale order lines

3) Sort the result descending based on percentage, and mark first 80 percentage parts as Fast moving, next 15 % as medium and next 5% as Slow moving.

 

I can bring below result using analytical view based on sale order line item table.

Capture1.PNG

But i need "Speed" Column to be calculated based on the above logic.

 

Capture.PNG

 

I am thinking of using Cursor in Scripted Calculation view to loop through the each and every record in the table and sum the percentage in each and every row  in a sum variable and mark as "Fast" till it reaches 80 if it reaches 80 then clear the sum variable, then again mark as Medium till it reaches 15 then clear the variable, then mark rest as "Slow".

 

Please let me know if this is right and best approach. As per my knowledge it is not possible to achieve this in Graphical view, please correct me if i am wrong. Is there any other way i can use in scripted calc view to achieve this.

 

Thanks

Rithika

Calculated Column - Subtracting a day from a Date

$
0
0

Hi,

 

I am trying to created a Calculated Column; where the variable would be used to subtract one day from the Current Date being populated...

 

Example: Current Date - 20160705; Expected result: 02060704...

SAP HANA Database is taking long time to restart

$
0
0

Hi All,

 

As part of performance issue happened in the  last night  , application team killed the sessions and those went in save point , we have bounced the database to clear the sessions and now it is not coming up ..almost it took 8hr and even thoug it is still startup state .

 

below is logs entry from indexserver logs.

 

[138168]{-1}[-1/-1] 2016-07-06 02:29:04.973228 i Logger           RecoveryHandlerImpl.cpp(00663) : Redo done up to position: 362231595456 and time: 2016-07-05 15:40:35.577132-05:00 (8%)

[138168]{-1}[-1/-1] 2016-07-06 02:39:14.978135 i Logger           RecoveryHandlerImpl.cpp(00663) : Redo done up to position: 362231595456 and time: 2016-07-05 15:40:35.577132-05:00 (8%)

[138168]{-1}[-1/-1] 2016-07-06 02:49:24.983491 i Logger           RecoveryHandlerImpl.cpp(00663) : Redo done up to position: 362231595456 and time: 2016-07-05 15:40:35.

 

 

could some one can give an idea how much it will take actually to comeup ..my guessing this is taking long time to redoing the data .

 

Thanks

Hakar

Subpartitions in HANA

$
0
0

Hi All,

 

we are trying to move Oracle tables to HANA.

 

for one of the table we found sub-partitions, is this feature possible in HANA.

 

We tried using RR, Hash,Range.. Please suggest if there is a possibility.

 

Regards,

Suresh

HANA on Azure

$
0
0

Dear Experts,

 

We are moving our on-premise SAP landscape to SAP HANA on Azure cloud platform. As per SAP, the migration using DMO is not recommended to non SAP clouds. Therefore, we want to understand what would be the best approach to achieve the goal.

 

Does anyone has experience of migration using DMO on Azure ?

 

Thanks,

Rachit

'PLACEHOLDER' = ('$$IP_SOR_DATE$$', '2016-07-07') vs PLACEHOLDER."$$IP_SOR_DATE$$'" => '2016-07-07'

$
0
0

Dear, collegues.

My answer is what differencies between two versions of PLACEHOLDER in SELECT statement?

My task is get data from Calculation View CV_UOR_SOR_AVAILABILITY using ABAP Database Procedure and I need pass values of two Input Parameters. After creating the procedure, importing it in ABAP dictionary and writing the ABAP program. I am executing this programm and getting Memory allocation error.

I made investigation an see that if use 'PLACEHOLDER' = ('$$IP_SOR_DATE$$', '2016-07-07') in my SELECT statement it succesfully ending after 10 seconds. But if use PLACEHOLDER."$$IP_SOR_DATE$$'"   => '2016-07-07' I get memory error.

Please sorry for my English. You can understand me better from attached pictures.

SELECT

  "ZBPC_CFO",

  "ZSUPERVIS",

  "PLANT",

  "MATERIAL",

  "ZMATGR1",

  "ZMATGR2",

  "ZMATGR3",

  "ZMATGR4",

  "NDAY",

  "NWEEKDAY",

  "NWEEK",

  "NMONTH",

  "NYEAR",

  "NHOUR",

   "QTY_A",

   "QTY_P",

  "PLU_PRICE",

   "QTY_NEG",

   "QTY_MIS"

/* FROM "_SYS_BIC"."uor.sor.availability/CV_UOR_SOR_AVAILABILITY"('PLACEHOLDER' = ('$$IP_SOR_DATE$$', '2016-07-07'),

                                                                                                                       'PLACEHOLDER' = ('$$IP_SOR_VERSION$$', '000')) */

FROM "_SYS_BIC"."uor.sor.availability/CV_UOR_SOR_AVAILABILITY"(PLACEHOLDER."$$IP_SOR_DATE$$'"   => '2016-07-07',

                                                                                                                     PLACEHOLDER."$$IP_SOR_VERSION$$" => '000')

ORDER BY

  "PLANT",

  "NDAY",

  to_int("NHOUR")

Input parameter with no entry .how to handle

$
0
0

Hello Colleagues,

 

I would like to know how we can handle input parameters that may or maynot be entered by the endusers?

How can we consider input parameter with no entry?.

What should be the expression in Filter to handle an input parameter with no values and multiple entries?

I get an error"SAP DBTECH JDBC:Column Store error,Search table Error" .


HANA - Unable to login to database

$
0
0

Hi

 

I created an AMI image of my HANA SPS 10 test system in Feb this year, and re-launched it today.

 

I cannot login to the database - keeps on getting "invalid user name or password" in HANA studio and hdbsql.

 

I followed the steps to reset the SYSTEM password in this link several times:  http://saphanawiki.com/2015/08/how-to-reset-system-user-password-in-sap-hana/

 

I also updated parameter password_lock_for_system_user = false as per this link:  http://dbsnix.com/?page_id=22/sap-hana/10-authentication-failed-sqlstate-28000

 

Still, I'm unable to connect to the database with the SYSTEM password I chose in step 1:

 

imdbmaster:/usr/sap/HDB/HDB00> hdbsql -n imdbmaster -i 00 -u SYSTEM  -p Willem098

* 10: authentication failed: ERR_AUTHENTICATION_FAILED SQLSTATE: 28000

 

When I try to login as another user I get this error:

 

imdbmaster:/usr/sap/HDB/HDB00> hdbsql -n imdbmaster -i 00 -u BACKUP -p B@ckup123

* 19: invalid license SQLSTATE: HY000

 

Please assist.

Conditional summation - If in Calculated column

$
0
0

Hi All,

 

I have a need to add values based on input month. The scenario is as below.

 

Month          Value

01               V1

02               V2

03               V3

04               V4

05               V5

06               V6

07               V7

08               V8

09               V9

10               V10

11               V11

12               V12

 

Based on the month value I need to sum upto that month value. I have used the IF condition but the result does not seem to be right. Let me know whether this logic will do my need.

 

if('$$Month$$' = '01',V1,

  if('$$Month$$' = '02', (V1+V2),

   if('$$Month$$' = '03', (V1+V2+V3),

    if('$$Month$$' = '04', (V1+V2+V3+V4),0

      ) -- 04

     ) --3

   ) --2

) --1

 

this is extended up to 12 months. But the result does not seem to be correct , any idea?

 

Thanks

Arthur.

CASE WHEN equivalent in SQLSCRIPT

$
0
0

Hello everybody,

 

I am new to this forum, maybe somebody can help me

 

At it's core, I want to create a calculation view that calculates count() of different values for one column

 

in SQL, I was able to solve the problem with the following code:

 

SELECT"Id", count(casewhen"TA_TYPE"='StrongPositiveSentiment'then 1 end) as"SPS",

count(casewhen"TA_TYPE"='WeakPositiveSentiment'then 1 end) as"WPS",

count(casewhen"TA_TYPE"='Sentiment'then 1 end) as"S",

count(casewhen"TA_TYPE"='WeakNegativeSentiment'then 1 end) as"WNS",

count(casewhen"TA_TYPE"='StrongNegativeSentiment'then 1 end) as"SNS"

FROM"GBI_011"."$TA_GRUPPE_3_ENGLISH_IDX"

GROUPBY"Id"


The corresponding output looks like this:


hana.PNG



Now, I want to create the same in a calculation view with SQLScript, but it seems the same code doesnt work there. I want to group by "Id" and get the count() values for different entries in "TA_TYPE", e.g Sentiment, WeakPositiveSentiment etc... in the calculation view


any suggestions? I hope I made my problem clear


Greetings

Daniel


fatal error: Error in the generated plan. See error trace for details

$
0
0

Hi Guys

do you have an hint for me?

 

This query gives me the error

fatal error: Error in the generated plan. See error trace for details

 

here the query:

select "orpa_flg_status" , "orpb_c_part"

from "flusso_orpa" , "flusso_orpb" , "flusso_mrpa"

where "orpa_tst_doc"="orpb_tst_doc" and

"orpa_prf_doc"="orpb_prf_doc" and

"orpa_a_doc"="orpb_a_doc" and

"orpa_n_doc"="orpb_n_doc" and

"orpa_c_ditta"="orpb_c_ditta" and

"orpb_c_part"="mrpa_c_part" and

"orpb_c_ditta"="mrpa_c_ditta" and

( "mrpa_tst_doc"='PAA' or

"mrpa_tst_doc"='RAA' or

"mrpa_tst_doc"='PLE' ) and

 

 

"orpa_c_ditta"='01' and

"orpa_tst_doc"='ROA' and

"orpa_dt_ini_val" <={d '2016-07-08' } and

"orpa_dt_fin_val" >={d '2016-07-08' } and

"mrpa_c_part" >='' and

"mrpa_c_part" <= 'zzzzzzzzzz'

 

If I try just some clause I've no error

How can I see error trace?

 

Thanks in advance

Required privileges on HANA (SPS 9) to view procedure definition without DATA ADMIN role

$
0
0

Dear all,

 

We have a customer that uses HANA SPS 9 and we need to create a special account that can read definition of store procedures. We do in this way:

 

SELECT PROCEDURE_NAME, DEFINITION FROM SYS.PROCEDURES WHERE SCHEMA_NAME='SBODEMOGB' and PROCEDURE_NAME= 'SBO_SP_TRANSACTIONNOTIFICATION'

 

Unfortunately if we create a new user without the DATA ADMIN role then we always see NULL values in the definition column. Our customer doesn’t allow us to use an account that has DATA ADMIN role.  It looks that maybe “SELECT METADATA” can be used but it was added in SPS 11 so we can’t use it.

Does anybody know what the minimal privilege to access the procedure definition is?

 

Many thanks in advance

Viewing all 4343 articles
Browse latest View live


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