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

Re: Can a person from ABAP background, learn SAP HANA ?

$
0
0

Hi Virendra,

 

You should start by reading the blog

http://scn.sap.com/community/abap/hana/blog/2012/12/04/key-learning--in-sapteched--abap-on-hana

 

Check the below links for more information :

 

ABAP for SAP HANA Community :

http://scn.sap.com/community/abap/hana

 

Check this video on Future of ABAP Platform :

http://www.sapvirtualevents.com/teched/sessiondetails.aspx?sId=3349

 

Check this blog for ABAP for HANA Reference

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

 

Check this document for SAP Netweaver as ABAP 7.4 :

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


Re: Using Where clause in Expression Editor

$
0
0

Hi Sridhar,

 

The expression editor used in Calculation column definition provides limited functionality. The WHERE condition for a column is also applicable in case of Restricted Column, but that is different from the Calculated Column.

 

I think, as per the documentation, using the IF condition is the only workaround available.

 

Can you please mention your exact requirement and what do you have in mind so that we can look into alternatives (even in the front end reporting tool) for your requirement.

 

Regards,

 

Ravi

Do we use SE11 to create tables in HANA

$
0
0

Hi,

I have few queries regarding the use of HANA database.

 

First In SAP Netweaver 7.4, the OLTP systems are using row storage or column storage of HANA.

 

Second since  SAP Netweaver 7.4 is optimized for HANA, do the new records created through standard SAP transactions stored in HANA database.

 

Third, What happens to the Data dictionary method (SE11) of creating table. Which database would these tables be stored.

 

Fourth, also I unterstand that we have a new option to get the HANA views in the data dictionary, from where would the data in these views come from.

 

Thanks

Re: Do we use SE11 to create tables in HANA

$
0
0

If you are going to use SAP system on HANA :

 

1. Then if you create a table : by default it will be Column Store but you can change it to either Row or Undefined during creation time

 

2. If you are using HANA as a database for SAP system then yes the new records will be stored in HANA

 

3.Yes you can use SE11 to create a table in SAP System on HANA

But if you are using HANA Studio to access HANA - there are no T-Codes there

You have to use SQL Statements or Create tables via GUI

 

4. These views directly access ERP tables present in HANA database

 

You can learn more here :

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

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

Re: B1 HANA 9.0 installation error

$
0
0

Hi Taw,

 

Do not type the path , just navigate it from the GUI.

 

BR

Atul

Re: Problem with file activation in SAP HANA Studio on Cloudshare

$
0
0

Hi,

 

I am facing the exact same issue..

I even cannot stop the activation process - need to close hana studio every time..

 


Does anybody have a solution for that problem?


Thanks in advance!
Kristina

Re: Conversion character to integer

$
0
0

Hi Stefan,

 

Here is the approach i followed (HANA revision 46).

 

I created a table with column YEAR with data type NVARCHAR which has numeric value.

In CE_PROJECTION I included this YEAR field and using CE_CALC function I converted NVARCHAR YEAR column to INTEGER YEAR1 attribute.

 

In the output, I not included the YEAR but included YEAR1. In the script always code the column in CE_PROJECTION which you use in CE_CALC.  

 

This is the script:


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

BEGIN

 

     T_CE_FUN = CE_COLUMN_TABLE(CE_FUN);

            var_out = CE_PROJECTION(:T_CE_FUN, [PRODUCT_ID

                                              , PRODUCT_NAME

                                              , SALES

                                              , "YEAR"

                                              , CE_CALC( '("YEAR")', integer) AS "YEAR1"

                                              ]);

 

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

 

The below screenshot shows the table definition, data, sqlscript, and output of Calculation view.

CE_FUN.jpg

Regards

Raj

Re: error feature not supported while calling afl wrapper generator inside a SQLScript procedure.

$
0
0

Hi,

 

Could you try commenting this line call OutlierDetection('I301605', 'CITY');

and validate the procedure.

 

If it is working then it is easy to invoke the procedure using parameters with placeholder.

 

Regards

Raj


Re: Error when Exporting on Hana cluster when connecting to secondary

$
0
0

Hi,

 

 

hdbsql=> \c -i 00 -n hana109:30015;hana108:30015;hana110:30015 -u CC41 -p ********

Connected to A01@hana108:30015

hdbsql A01=> export "CC41"."*" AS CSV INTO '/usr/sap/A01/HDB00/work' WITH REPLACE THREADS 4

* 8: invalid argument: No objects to export found in given schema(s) SQLSTATE: HY000

 

Above it is connected to primary host hana108, not to secondary host hana109.

 

I am not very much sure of this but why not export the objects from single host multiple times.

 

Regards

Raj

HANA SAP BW Integration

$
0
0

Hello,

I have a couple queries regarding  SAP BW integration with HANA.

 

Is there a way of replicating BW Models(Infoobjects,DSO) into SAP HANA without using DXC.?

 

Does DXC only helps me in replicating BW models but not data corresponding to the models.?

 

When i replicate BW model like infoobjects to HANA,it creates an analytic view,with underlying tables and if i use Data services to read data for

that infoobject through openhub destination only aggregated data can be read,but not data pertaining to tables that makeup the info object.so how

do i solve this issue?

 

Greatly appreciate your help.

regards

Kaushik

Re: error feature not supported while calling afl wrapper generator inside a SQLScript procedure.

$
0
0

hi, thanks for replying.

I actually did that, the procedure compilation is successful (as far as the debugger is saying)

bu when I call the procedure i am getting weird errors. You can check my message on the employee network here: https://community.wdf.sap.corp/message/422872#422872

 

thanks & regards

Mohamed Ali

Problem in creating Input parameter

$
0
0

Hello folks,

 

We have an Analytical view named as "AN_WARRANTY" whose data preview is as below-:

 

We are trying to create one Calculation view on top on Analytical view where we require to use "Fiscal_Year_Week_Name" attribute in where clause. and the requirement is when the user input the value of "Fiscal_Year_Week_Name" then it will show the previous 5 week data in advance means.

For example if user input FY10W03 then in the output it should show the detail of previous 5 week data ie. FY10W02,FY09W03,FY08W49,FY08W44,FY08W41.

 

But the problem is when we tried to create the variable for user input that will filter the value to 1 value only and when we use input parameter then it will not shows us attribute value("Fiscal_Year_Week_Name") as an option to select the values .

Re: Conversion character to integer

$
0
0

Raj,

 

Thanks, i will try this on monday.

 

The big difference seems not to use any kind of implicit conversion function (like int or to_decimal).

 

I'll let you know what the result is :-)

 

Grz,

Stefan

Re: HANA SAP BW Integration

$
0
0

Hi Kaushik,

 

DXC is the extraction process which bypasses the normal data flow and sends data from the source SAP Business suite system to SAP HANA and provides data models into SAP HANA. After the extraction process, an In-memory Datastore object (IMDSO) is generated which consists of several tables and an activation mechanism. The active data tables are the basis for for building data models in SAP HANA.

 

There are two ways of getting BW data into HANA.

  1. Using BODS ETL tool
  2. Using Import option from HANA studio.

For the above second option, We can Import SAP Netweaver BW objects and those are SAP HANA-optimized DatStore objects, Infocubes, and Query snapshot InfoProviders and these objects are imported as SAP HANA information models and can be used for reporting.

 

Below tables shows what happens when SAP BW objects get imported into SAP HANA and their equivalent model in SAP HANA.


SAP BW objectEquivalent SAP HANA Model
DataStore ObjectAnalytic view (same name as DataStore Object)
InfoCube ObjectAnalytic view and Calculation view
InforProviderAnalytiv view
Analysis AuthorizationsAnalytic Privileges

 

Pain Areas:

  1. After the extraction process, in order to reflect changes made to BW models in SAP HANA generated models, you need to re-import the models.
  2. CKF and RKF are not imported and you need to create Calculated Measures and Restricted Measures respectively.

 

Regards

Raj

Re: error feature not supported while calling afl wrapper generator inside a SQLScript procedure.

$
0
0

Hi,

 

I do not have access to view your error message.  Always paste the error message here to get fast response.

 

Regards

Raj


Re: error feature not supported while calling afl wrapper generator inside a SQLScript procedure.

$
0
0

Thanks for replying.

 

new infos:

when I try to create a new PAL procedure within my stored procedure using the AFL_WRAPPER_GENERATOR

the call of the stored procedure, in this way:

 

call OutlierDetection('I301605', 'CITY');

 

take a very long time like 40 minutes or so. And I get an error, which says in the indexserver trace file :

[50637]{-1}[25/150706897] 2013-07-04 03:09:32.864566 e AFLPM_SQL        AFLPM_SQLDriverObj.cpp(05151) : Registration of AFL wrapper PALOutlierDetectionProcedure4 failed at "grant execute on _SYS_AFL.PALOutlierDetectionProcedure4 to AFL__SYS_AFL_AFLPAL_EXECUTE" with error 131: "transaction rolled back by lock wait timeout - Lock timeout occurs while waiting TABLE_LOCK of mode EXCLUSIVE(TRANSACTION_ID=49, UPDATE_TRANSACTION_ID=150706904)"!

but  when i call my procedure, with a pal procedure name that's been already used i get this error in the indexserver trace file, which says that:

[50632]{-1}[25/150707381] 2013-07-04 03:52:38.955776 e AFLPM_SQL        AFLPM_SQLDriverObj.cpp(05151) : Registration of AFL wrapper PALOutlierDetectionProcedure4 failed at "CREATE TYPE _SYS_AFL.PALOutlierDetectionProcedure4__TT_P1 AS TABLE ( "CITY" VARCHAR(100), "SUM_MEASURE" DOUBLE )" with error 396: "cannot use duplicate user-defined type name - PALOUTLIERDETECTIONPROCEDURE4__TT_P1: line 1 col 22 (at pos 21): line 1 col 22 (at pos 21)"!

the second error is weird because before calling the wrapper generator I am always calling the AFL_WRAPPER_ERASER before I call the AFL_WRAPPER_GENERATOR

 

by the way, I tried to call the AFL_WRAPPER_GENERATOR outside of my stored procedure and every thing works fine in this case. here is the call process

 

drop procedure OutlierDetection;

create procedure OutlierDetection(in  schemaName varchar(100),

   in  currentDimension varchar(100))

          language SQLSCRIPT as

          insertInto varchar(100);

begin

    exec 'set schema '||:schemaName;

    exec 'drop type DATA_T';

 

    exec 'create type DATA_T as table("'||:currentDimension||'" VARCHAR(100), SUM_MEASURE DOUBLE)';

 

  exec 'DROP TYPE OUTLIER_T';

  exec 'create TYPE OUTLIER_T AS TABLE("'||:currentDimension||'" VARCHAR(100),"OUTLIERS" INT)';

 

  exec 'DROP TYPE RESULT_T';

    exec 'CREATE TYPE RESULT_T AS TABLE("MEAN" DOUBLE,"SD" DOUBLE)';

 

    exec 'DROP TYPE CONTROL_T';

  exec 'CREATE TYPE CONTROL_T AS TABLE("Name" VARCHAR(100), "intArgs" INT, "doubleArgs" DOUBLE,"strArgs" VARCHAR(100))';

 

  DROP table SIGNATURE_TAB;

  create column table SIGNATURE_TAB("ID" INT,"TYPENAME" VARCHAR(100),"DIRECTION" VARCHAR(100));

 

  insertInto := :schemaName||'.DATA_T';

  insert into SIGNATURE_TAB values (1,:insertInto,'in');

 

  insertInto := :schemaName||'.CONTROL_T';

  insert into SIGNATURE_TAB values (2,:insertInto,'in');

 

insertInto := :schemaName||'.RESULT_T';

insert into SIGNATURE_TAB values (3,:insertInto,'out');

 

insertInto := :schemaName||'.OUTLIER_T';

insert into SIGNATURE_TAB values (4,:insertInto,'out');

 

exec 'GRANT SELECT ON '||:schemaName||'.SIGNATURE_TAB to SYSTEM';

 

call SYSTEM.afl_wrapper_eraser('PALOutlierDetectionProcedure');

 

end;

 

 

call OutlierDetection('I301605', 'CITY');

 

call SYSTEM.afl_wrapper_generator('PALOutlierDetectionProcedure','AFLPAL','VARIANCETEST', SIGNATURE_TAB);

 

DROP TABLE #CONTROL_TAB;

CREATE LOCAL TEMPORARY COLUMN TABLE #CONTROL_TAB ("Name" VARCHAR(100), "intArgs" INT, "doubleArgs" DOUBLE,"strArgs" VARCHAR(100));

INSERT INTO #CONTROL_TAB VALUES ('SIGMA_NUM',null,3.0,null);

INSERT INTO #CONTROL_TAB VALUES ('THREAD_NUMBER',8,null,null);

 

DROP VIEW DATA_VIEW;

create VIEW DATA_VIEW AS select CITY, sum(AMOUNT_SOLD) AS SUM_MEASURE from _SYS_BIC."efashion/EFASHION_STAR_SCHEMA" where MONTH_NAME='April' and YR = 2003 GROUP BY CITY;

 

 

DROP TABLE RESULT_TAB;

CREATE COLUMN TABLE RESULT_TAB ("MEAN" DOUBLE,"SD" DOUBLE);

 

 

DROP TABLE OUTLIERS_TAB;

create COLUMN TABLE OUTLIERS_TAB ("CITY" VARCHAR(100),"OUTLIER" INT);

 

CALL _SYS_AFL.PALOutlierDetectionProcedure(DATA_VIEW, "#CONTROL_TAB", RESULT_TAB, OUTLIERS_TAB) with overview;

 

drop view VT_outliers_results;

create view VT_outliers_results as select a.CITY, SUM_MEASURE, b.OUTLIER from DATA_VIEW a full join OUTLIERS_TAB b on (a.CITY = b.CITY);

 

select * from VT_outliers_results;

 

 

hope this makes the problem clearer.

 

 

thanks & regards

Mohamed Ali.

Re: Using Where clause in Expression Editor

$
0
0

Hi Ravi,

 

Thanks for your time. My requirement is just to create a calculated column as below:

calculated column = ("CITY" WHERE "REGION"='APAC') so that my calculated column only returns the filtered values.

 

regards,

Sridhar

Re: Conversion character to integer

$
0
0

Hi Rijinkels,

 

Could you provide error evidence for detail information, besides, whether you use to_int function to do convert character to int?

 

Regards,

Jerry

Re: Problem in creating Input parameter

$
0
0

Hi Ruchi,

 

Little confused here, what is the logic used while deciding which 5 previous weeks data has to be displayed? As per the example you have given the previous 5 weeks are not in any particular order.

Did you mean for input as FY10W03, the output shown should be for FY10W02,FY10W01,FY09W53,FY09W52 and FY09W51?

 

Regards,

Rudrabhupal PB.

Re: Problem in creating Input parameter

$
0
0

Hi Jain,

 

According to your explanation, I think that you need to create one calculation column "FYWEEK" base on "Fiscal_Year_Week_Name" as well,

such as "FY10W03" convert to 1003, then you fetch top 5 from analytic view or calculation view where "FYWEEK" <1003 order by FYWEEK desc.

Regarding as input parameters, you can create static list or base on column to input parameters.

 

hope this can help you.

 

Regards,

Jerry

Viewing all 8968 articles
Browse latest View live


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