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

Secure storage is locked

$
0
0

Hi,

 

In my cloud SAP HANA Studio...in Navigator window,suddanly its showing the following error message.

 

'Secure Storage is locked;

 

and there is UNLOCK button beside this meaasge,but when i click on this button,nothing is happening.

 

Please help me out how t oresolve this issue.

 

Thanks,
Suren.


How to get entries in M_JOB_PROGRESS

$
0
0

Hello ,

  I have a requirement to check status of job progress in HANA. I am checking system table M_JOB_PROGRESS to get the status values. Currently this system table is empty. What do I need to do to get entries in this table? I do not want to use XS jobs, but am looking for a scenario which will help populate data in this system table. I have tried enabling performance trace and writing the o/p of trace to another file , but this did not create a job.

 

Please suggest any scenarios that can get me entries in M_JOB_PROGRESS.

 

Thanks,

Suma.

AMDP language SQLSCRIPT Dynamic name of the table

$
0
0

Hello,

I would like to calculate dynamically the name of the table where I want to select in my AMDP for example like in normal  ABAP l we do:

 

1. ABAP PROGRAM

 

DATA: source_syntax TYPE string.

 

SELECT customer amount INTO TABLE lt_table

FROM (source_syntax).

 

then in ABAP I would asign the source_syntax depending on the sales org at runtime.

IF domain =  '01'.

source_syntax =  table_1

ELSEIF domain=  '02'.

source_syntax =  table_2

ELSE.

source_syntax =  table_3.

EIDIF.


2. AMDP

 

lt_table =  SELECT "CUSTOMER" , "AMOUNT" FROM (source_syntax) <--???? How I do dinamic this part?


Thanks

Social Media intergration with SAP HANA

$
0
0

Hi

 

How to integrate data which is in custom form in facebook page  and SAP  HANA.

 

 

 

Thanks in Advance

Use cases for HANA Development? (coming from an ABAPer)

$
0
0

Apologies if this isn't the correct forum, but I haven't been able to get a basic question answered elsewhere.

 

I'm an ABAPer, and we are converting our SAP ECC environment to run on HANA.  After attending TechEd, and watching multiple openSAP courses, a very basic question still lingers:

 

- If all of our data in HANA exists due to our usage of ECC, what would be a good use case to develop "in HANA" vs developing "in ECC" (i.e. ABAP)?

 

So much information online describes the tools, the platform, the performance, etc of developing in HANA and it sounds very impressive.  But nothing breaks down for a seasoned ABAPer the reason to switch gears and develop something in HANA XS compared to leveraging all of our existing business logic baked into ECC and just creating reports/rest services in ABAP/Gateway?

 

Thanks so much.

 

-Matt

Unit Conversion - Material

$
0
0

Hi all.

 

  Is there no Unit Conversion for material master data? Like FM MB_UNIT_CONVERSION?

 

  e.g. for material XY I want convert 1 BOX to KG

 

   The function convet_unit don't do this conversion.

 

Thanks.

Get details of login and transaction activity of JDBC interaction of 3rd party application with HANA

$
0
0

Hi All,

 

We have a front-end tool(3rd party application) which is connected to our HANA on AWS using JDBC.

 

We have multiple Login IDs(say 50) in our front-end app.

 

The information which we need is that which all Front-end ID were used to Login and the corresponding dashboard interaction which cause operations in HANA.

 

Thus where do we find such a Log/ Trace file in HANA.

 

Regards,

Parteek

Get all tables from a schema that a user has access to

$
0
0

Hi,

 

So I would like to get all tables from a schema. What I found on the SCN:

SELECT TABLE_NAME AS "Table" FROM  M_CS_TABLES WHERE SCHEMA_NAME = 'your schema name';

Now I would like to extend this to the security concept.

 

So if I have tables

A1

B2

C3

 

and User1 has Access to tables A1 and C3.

 

If User1 would run the query, he would only get A1 and C3 as a result, not B2 though.

 

Is that even possible? Any idea of a workaround?


Spatial Join, cardinality error

$
0
0

Hello All,

 

I'm on SAP HANA SPS09 and I want to make a simple Spatial Join. To do so I followed this tutorial :SAP HANA Academy - Modeling: Geospatial Joins [SPS09] - YouTube

 

When I want to activate I got this error :

Got unknown attribute 'cardinality'(cubeSchema -> calculationScenario (dummy.******/geo_location) -> calculationViews -> spatialJoin (Join_1))

 

In fact when I want to create this SpatialJoin, the cardinality is mandatory, however, in the video (around 5 minutes), the cardinality is blank !

 

Here is my CalculationView :

<?xml version="1.0" encoding="utf-8"?><cubeSchema defaultLanguage="EN" defaultSchema="_SYS_BIC" operation="createCalculationScenario" version="3">    <calculationScenario name="dummy.******/geo_location" externalScenarioName="dummy.******::geo_location" schema="_SYS_BIC">        <dataSources>            <tableDataSource name="GEO_CURRENT_LOCATION" schema="ZGEO" table="GEO_CURRENT_LOCATION">                <attributes>                    <allAttribute />                </attributes>            </tableDataSource>            <tableDataSource name="GEO_LOCALISATION" schema="ZGEO" table="GEO_LOCALISATION">                <attributes>                    <allAttribute />                </attributes>            </tableDataSource>        </dataSources>        <calculationViews>            <spatialJoin name="Join_1" cardinality="1:1">                <debugInfo nodeName="Join_1" />                <viewAttributes>                    <viewAttribute ignoreFromInputsFlag="false" isVisible="true" name="SHAPE" />                    <viewAttribute ignoreFromInputsFlag="false" isVisible="true" name="CITY" />                    <viewAttribute ignoreFromInputsFlag="false" isVisible="true" name="JOIN$SHAPE$POINT" />                </viewAttributes>                <inputs>                    <input name="GEO_CURRENT_LOCATION">                        <mapping source="SHAPE" target="SHAPE" />                        <mapping source="SHAPE" target="JOIN$SHAPE$POINT" />                    </input>                    <input name="GEO_LOCALISATION">                        <mapping source="CITY" target="CITY" />                        <mapping source="POINT" target="JOIN$SHAPE$POINT" />                    </input>                </inputs>                <joinAttributes>                    <joinAttribute name="JOIN$SHAPE$POINT" predicate="CONTAINS" evaluatesTo="true" />                </joinAttributes>            </spatialJoin>            <projection name="finalProjection" defaultViewFlag="true">                <debugInfo nodeName="Projection" />                <inputs>                    <input name="Join_1">                        <mapping source="CITY" target="CITY" />                    </input>                </inputs>                <viewAttributes>                    <viewAttribute name="CITY" />                </viewAttributes>            </projection>        </calculationViews>        <variables>            <variable name="$$language$$" typeMask="512" isGlobal="true" usage="optional" />            <variable name="$$client$$" typeMask="512" isGlobal="true" usage="optional" />        </variables>    </calculationScenario></cubeSchema>

I tried to delete the cardinality attribute, but Eclipse do not want me to activate (No authorization !).

 

What is the problem, I believe that I do the right thing... but obviously I miss something !

 

Kind Regards,

Joseph

Analytic privilege not working with HANA scripted view

$
0
0

Hi,

 

We are facing an awkward situation with our two developed HANA views. We created analytic privileges and added them into Repository roles and then assigned it to restricted user.

But when we run the view in HANA live browser its throws below error:

dberror(PreparedStatement.executeQuery): 258 - insufficient privilege: insufficient privilege: [2950] user is not authorized :

 

 

But strange thing is when we do the same thing for other views it works fine with all privileges and authorization.

 

The Only difference between all the the other view and the two views is that we are consuming scripted view in them.

 

Steps we followed:

  • Created scripted View.

Properties: run with: Invoker's rights, Default Client: Cross Client, Apply Privileges: Classical Analytic privileges

  • Created analytic privilege

Assigned view and  applied filter with fixed value

  • Created the repository role and assigned the analytic privileges.

       Extended Roles: sap.hba.explorer.roles::Developer , RESTRICTED_USER_JDBC_ACCESS.

       // schema privileges

       catalog schema "_SYS_BIC": SELECT, EXECUTE;

       catalog schema "_SYS_BI": SELECT, EXECUTE;

       // analytic privilege

       analytic privilege: Package_Path:ZANP_MM_POC.analyticprivilege;

  • Assigned the created role to restricted user.
  • Executed the query in the HANA live browser.

 

I went through some SCN discussion but answer to this issue is to upgrade to new version(SP6) but we are using SP10.

 

Regards

Rajender Singh

HANA views implicit aggregation mechanism

$
0
0

Hi everyone,

I came across strange hana behavior that I'd like to understand.

While validating data in our model I was doing some check via SQL and I was surprised to see that there some aggregation going on behind the scenes.

 

We have a data model composed of calc. views, both graphical and script.

 

select marc_matnr from GRAPHICAL_VIEW where marc_matnr = '000000000001001000';

this returtns 1 record (aggregated from 61)

 

select marc_matnr from (select * from GRAPHICAL_VIEW) where marc_matnr = '000000000001001000' ;

this returns 61 records

 

select marc_matnr from SCRIPT_VIEW where marc_matnr = '000000000001001000';

this returtns 1 record (aggregated from 61)

 

This different  behavior between script and graphical is causing some headaches when using them in joins.

 

I think I do understand the pattern here but would like to know if this is expected behavior and what are the mechanics behind it.

 

Please can anyone help?

 

(we're running rev.84)

 

Thanks a lot, Milos.

Ushell Header Title in Fiori Launchpad - Hana Studio

$
0
0

Hi All,

 

I am working on HANA studio and I need to Give Header title in the Fiori Launchpad like in below image:

 

I found discussion relevant to this issue but not sure how to implement it. https://scn.sap.com/thread/3760158

 

Could you please help on this?

 

demo.jpg

Data Mismatch between Production and Pre prod Dashboard Reports.

$
0
0

Hi,

 

I am using HANA ->.Universes->Dashboard reports.

 

when I refresh the reports in pre prod and prod, revenue column is showing mismatch values when i compare

the two systems.

 

could you please help me to get into resolve this one.

 

Regards,

Mahesh

SDI: flat file: locale=DE

$
0
0

Hi,

 

issue: file format configuration setting "locale=de_DE" is ignored

 

i created config file according to guidelines with the following setting

...

locale=de_DE

...

COLUMN=BETRAG;DECIMAL(17,2)

...

 

the data file looks like this:

...

bla1;10,5;bla2

...

 

when replicating data into HANA

instead of 10,5 i get 105

 

when changing the value in data file from 10,5 to 10.5 decimals are processed correctly (although locale is still unchanged to "de_DE".

 

anyone facing similar issue?

 

Thanks,

Andreas

Testing XSJS followUp calls with XSUnit

$
0
0

Hello,

 

Is there a suggested way of testing XSJS followUp calls using XSUnit test suite?

 

We would like to be able have full coverage in our unit tests, but the only way we've found to do these tests so far is a setTimeout() to delay for an arbitrary number of seconds until we figure the followUp should have completed - which leads to the occasional failure if something takes a little longer, or waiting several seconds longer for each unit test which adds up to be significant.

 

Thanks.


column store error IN hana

$
0
0

Hi Guys,

 

Kindly help me on this.

 

I am trying to load a calculation view into a table.

 

 

select LOC  INTO L_LOC FROM (SELECT LOGSYS, STRING_AGG(CONCAT(CONCAT('''''',"STORT"),''''''),',') AS LOC


from (SELECTDISTINCT LOGSYS, STORT FROM"SIE_BDP"."SIE_BDP_PMLOC"WHERE LOGSYS = L_LOGSYS) GROUPBY LOGSYS);

 

I am storing the loc column into a stored variable L_LOC.

 

When I try to set the parameters of the calculation view and the run the procedure, it gives me a column store error.

 

The highlighted part throws the error. Could you please tell me how to assign a stored variable using place holder or if anything is wrong with the string_agg function.

 

 

 

SELECT GJAHR, MONAT, ORGUNIT, COMMODITY, ARENR, HWAER, LSART, MFESN, HERKL

FROM "_SYS_BIC"."SIE_BDP_VIEWS.Reporting/SIE_BDP_CAPPVIEW"

(

   PLACEHOLDER."$$BIP_MONAT1$$" => :L_MONAT1,

   PLACEHOLDER."$$BIP_MONAT2$$" => :L_MONAT2,

  PLACEHOLDER."$$BIP_LOC$$" => :L_LOC, (this part does not work)

   PLACEHOLDER."$$BIP_GJAHRMWPV$$" => '''2016'',''2015''',

   PLACEHOLDER."$$BIP_APPCONS$$" => 'NO') ;

 

Thanks ,

Jan

Multiple input parameters in HANA SQLScript calculation view

$
0
0

Dear Experts,

I'm trying to select data within date interval but when I put more than one input parameter i get this error

Error: SAP DBTech JDBC: [2048]: column store error: search table error:  [34092] search on calculation model requires parameters;Required variable $$tdate$$ is not set.

 

Capture.PNG

 

My code:

/*********** Begin Procedure Script ************/ 
 BEGIN 
VAR_OUT = select RYEAR AS "FISCAL_YEAR",  DOCNR AS "DOCUMENT_NUMBER",  RBUKRS AS "COMPANY_CODE",  RACCT AS "GL",  "GLAccountName" AS "GL_NAME",  "GLAccountDescription" AS "GL_DESC",  F.PRCTR "PROFIT_CENTER_CODE",  PC.KTEXT AS "PROFIT_CENTER_DESC",  RCNTR AS "COST_CENTER_CODE",  CC.KTEXT AS "COST_CENTER_DESC",  TO_DATE(BUDAT,'YYYYMMDD') AS "POSTING_DATE",  "IsBalanceSheetAccount" AS "ISBALANCESHEETACCOUNT",  HSL AS LC_AMOUNT  FROM "FAGLFLEXA" AS F inner join "CSKT" AS CC ON F.RCLNT = CC.MANDT AND F.RCNTR = CC.KOSTL  INNER JOIN "CEPCT" AS PC ON F.RCLNT = PC.MANDT AND F.PRCTR = PC.PRCTR  INNER JOIN "_SYS_BIC"."sap.hba.ecc/SKA1" AS GL ON F.RCLNT = GL."SAPClient" AND F.RACCT = GL."GLAccount"  where F."BUDAT" >= TO_DATS(:FDATE)  AND F."BUDAT" <=  TO_DATS(:TDATE)  AND RCLNT = '900'  ;
END 
/********* End Procedure Script ************/

Thank you in advance.

Exact Months between two dates

$
0
0

Is there any method to calculate exact months between two dates in SAP Hana sp10 version.

Error creating ST_GEOMETRY type SAP DBTech JDBC: [2048]: column store error: add attribute error: [2999] general error (no further information available)

$
0
0

Has anyone seen this error before when simply trying to alter a table via SQL and add a column of type ST_GEOMETRY?

 

My SQL statement is: ALTER TABLE "TABLE1"."DIM_LATLONG" ADD ("LOCATION" ST_GEOMETRY(3857));

 

And it throws the following error:

 

Could not execute 'ALTER TABLE "TABLE1"."DIM_LATLONG" ADD ("LOCATION" ST_GEOMETRY(3857))' in 119 ms 400 µs .

SAP DBTech JDBC: [2048]: column store error: add attribute error:  [2999] general error (no further information available)

 

 

I can't seem to find any information on this specific issue and the error message is not really helpful whatsoever.

 

Schema in Hana Cloud Platform

HANA Studio version 2.2.12

How to Consume XSODATA service in SAP WebIDE

$
0
0

Hi Everyone,

 

I have created a application with template "Empty application (with XSAccess and XSApp)" developed a xsodata service in SAP WEB IDE.

Similarly, I created another application of template "SAP UI5 Hello World", I modified this Hello World example in such a way to display table with data.

So far is good.

Here I created 2 different applications in the same package. IS it Correct?

 

I would like to consume xsodata service into this UI5 application, to display the data in my table.How can we do that?

PS: I am using SAP Web based WorkBench (SAP Web IDE)

 

Below is the code I have used in UI5-Index.html page

 

var oModel=new sap.ui.model.odata.ODataModel("https://s12hanaxs.hanatrial.ondemand.com/********trial/hihanaxs/myproducts/services.xsodata/"

,false);

oTable.setModel(oModel);

oTable.bindRows("/Services");

oTable.placeAt("uiArea");

 

 

 

 

 

Below is the screenshot for the odata service

 

 

 

Capture.PNG

Thanks&regards,

Sriram.

Viewing all 6412 articles
Browse latest View live


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