Sie sind auf Seite 1von 132

EXERCISE 1:SYSTEM PREPARATION:

EXERCISE OBJECTIVES:PREPARING OF SYSTEM FOR HANA USAGE.

START->REMOTEDESKTOP CONNECTION.

ENTER RDC ADDRESS:122.175.39.11


CLICK ON CONNECT

Enter username and password

Click ok

Go to start->open hana studio


For the first time it will open welcome window

Close this and add the new hana system


Click next

Here password:W©elcome1234

Click on finish.

New hana system created


CREATION OF NEW PACKAGE:-

GO TO CONTENT->NEW PACKAGE
HERE PACKAGE CREATED

TO CREATE SCHEMA

GO TO CATALOG (ALL THE SCHEMA WILL BE THERE IN THE SCHEMA)

RIGHTCLICK ON THE CATALOG ->OPEN SQL CONSOLE


SYNTAX:CREATE SCHEMA<SCHEMANAME>

SCHEMA CREATED

TO ASSIGN SELECT PRIVILAGES TO THE SCHEMA

FOLLOW THE BELOW SYSNTAX.


EXERCISE2:CREATING ATTRIBUTEVIEWS:
SCENARIO:CREATING OF ATTRIBUTE VIEW FOR BUSINESS PARTNER.

HERE WE ARE CREATING ATTRIBUTE VIEW OF TYPE STANDARD.

TO DO THE ATTRIBUTE VIEW OF TYPE BUSINESS PARTNER USE THE FOLLOWING TABLES

SNWD_BP

SNWD_BP_PH

SNWD_CONTACT

SNWD_BP_EM

ALL THESE TABLES ARE IN ECC WE CAN REPLICATE THIS TABLES TO HANA SERVER BY USING
DATA PROVISIONING TECHNIQUES LIKE BODS AND SLT.

HERE REPLICATING TABLES USING BODS

GO TO DATA SERVICES WORK BENCH


Create new project here project used to group the related objects.

CREATE DATA STORE FOR ECC


Click next->finish

Goto ecc data store go to tables add the tables

Create data store for hana


Next->finish

Create Replication job

Go to project->replication job
Validate

Execute
TO CREATE ATTRIBUTE VIEW

ALL THE ATTRIBUTE VIEWS WILL BE CREATED IN CONTENT OFPACKAGES


GO TO DATA FOUNDATION ADD TABLES
SNWD_BP IS CONSIDERD AS A LEFT TABLE AND REMAINING TABLES WILL BE RIGHT TABLES.

JOIN CLIENT OF SNWD_BP TO CLIENT OF ALL REMAINING TABLES AND JOIN WILL BE
REFERENTIAL JOIN AND CARDINALITY WILL BE 1:1
JOIN SNWD_BP OF NODE KEY TO THE ALL REMAINING TBALES COLUMN OF THE NODE_KEY
ADD OUTPUT FIELDS

CLIENT

NODE_KEY

BP_ID COLUMNS FROM SNWD_BP TBALE HERE BP_ID IS THE PRIMARY KEY

ADD OUTPUT FIELDS

FIRST_NAME

LAST_NAME

LANGUAGE COLUMNS FROM SNWD_CONTACT TABLE

ADD OUTPUT FIELDS

PHONE_NUMBER

PHONE_EXTENSION COLUMNS FROM SNWD_BP_PH TABLE

ADD OUTPUT FIELDS


EMAIL_ADDRESS COLUMN FROM SNWD_BP_EM TABLE

GO TO SEMANTICS

HERE WE CAN DEFINT KEY ATTRIBUTS AND PERFORM DESCRIPTIVE OR LABLE MAPPING

HERE MAKE BP_ID AS KEY ATTRIBUTE


SAVE AND ACTIVATE THE VIEW

CLCICK ON DATA PREVIEW

RAWDATA

HRE IT IS NOT SHOWING ANY DATA..WE DO NOT HAVE DATA IN ECC TABLES SO IT IS NOT
SHOWING ANY DATA HERE
TASK 2:CREATE AN ATTRIBUTE VIEW FOR PRODUCTS.

TO DO THIS USE TABLE SNWD_PD TABLE

ADD THE FOLLOWING COLUMNS TO OUTPUT

CLIENT
NODE_KEY

PRODUCT_ID

CATEGORY

TYPE_Code

SUPPLIER_GUID

GO TO SEMANTICS ADD PRODUCT_ID AS KEYATTRIBUTE.

SAVE THE VIEW VALIDATE AND ACTIVATE.

CLICK ON DATA PREVIEW->RAWDATA

TASK 3:CREATE AN ANALYTICAL VIEW FOR PURCHASE ORDER

TO DO THIS ADD THE FOLLOWING TABLES AT THE DATA FOUNDATION OF ANALYTICAL VIEW.

SNWD_PO

SNWD_PO_I
GOTO PACKAGE AND NEW ANALYTICAL V IEW

CLICK ON FINISH
AT THE LOGICAL JOIN ADD THE CREATED ATTRIBUTES

HERE WE HAVE CLIENT AND NODE_KEY COLUMNS FROM BOTHE THE VIEWS TO OVERCOME
THE NAMONG CONVENTION WE CREATE ALIAS RENAME FOR PRODUCT TABLE
AT THE DATA FOUNDATION JOIN THE TWO TABLES.

SNWD_PO IS TH ELEFT TABLE

Join the field CLIENT from SNWD_PO to the CLIENT field in SNWD_PO_I.

Join the field NODE_KEY (SNWD_PO) with the field PARENT_KEY (SNWD_PO_I).
select Referential join and a cardinality of 1:n for both joins in the properties of the join.

FROM SNWD_PO ADD THE FOLLOWING COLUMNS

CLIENT
NODE_KEY

PARTNER_GUID

RENAME CLIENT TO CLIENT_BP

DEFINE THE FOLLOWING COLUMNS AS OUTPUT FIELDS FROM SNWD_PO_I TABLE

CLIENT, Attribute
PO_ITEM_POS Attribute
PRODUCT_GUID Attribute
GROSS_AMOUNT Measure
NET_AMOUNT Measure

In the Logical View screen in the output, under the Column folder, rename CLIENT
(SNWD_PO_I.CLIENT) to Client_PD, for Product Client.
In the logical view, join the data foundation to the Product view with the following fields. Use
referential join and cardinality of n:1

CLIENT_PD to Client
PRODUCT_GUID to NODE_KEY ("Product" view)

Then, join the data foundation to the Business Partner view with the following fields. Use
referential join and cardinality of n:1

CLIENT_BP to Client
PARTNER_GUID to NODE_KEY ("Partner" view)
GO TO SEMANTICS

In the Semantics screen, define the column PO_ITEM_POS as an attribute, and the columns
GROSS_AMOUNT and NET_AMOUNT as measures.
SAVE

VALIDATE

AND ACTIVTE

TASK 4:CREATE A DERIVED ATTRIBUTE VIEW FROM PRODUCT VIEW

IN A REQUIREMENT IF YOU WANT TO ADD PRODUCT ATTRIBUTEVIEW AGAIN IT IS NOT


POSSIBLE IN ANALYTICAL VIEW.BECAUSE THAT VIEW ALREADY AVAILABLE IN ANALYTICAL VIEW.

BUT IN REQUIREMENT WE NEED SAME ATTRIBUTEVIEW AGAIN IN ANALYTICAL VIEW AT THIS


TIME WE CAN CREATE DERIVED ATTARIBUTEVIEW WITH ALIASES.

CREATION OF DERIVED ATTRIBUTEVIEW:


CLICK ON FINISH.

WE CANNOT EDIT OR MODIFY THE DERIVED ATTRIBUTE VIEW..IT IS JUST REFERENCE TO THE
ATTRIBUTEVIEW. If your model requires that you have 2 identical Attribute Views in the same
Analytical View, you will have to create a Derived Attribute with Aliases.
VALIDATE AND ACTIVATE THE ATTRIBUTEVIEW.

NOW WE CAN ADD THE DERVIED ATTRIBUTE VIEW TO THE ANALYTICAL VIEW.

In the Logical View screen (of the previous Analytic View), join it to the Data Foundation by
mapping the following fields:

Client_PD to Client

Product_GUID to Node_Key. (DataFoundation is on the left.)


GIVE ALIAS NAME
VALIDATE

ACTIVATE THE VIEW

CLICK ON ANALYSIS
TASK 5: Create a new Analytic View for Sales Orders and reuse the shared Product
Attribute view.

TO CREATE THIS VIEW WE CAN USE SALES ORDER TABLE

SNW_SO_I

TO CREATE ANALYTICAL VIEW

GO TO ANALYTICAL VIEW ->RIGHTCLICK->NEW ANALYTICAL VIEW


GO TO DATA FOUNDATION ADD THE TABLE

TO ADD THE TABLE TO THE DATA FOUNDATION CLICK ON + ICON

Add the following fields to output in the Data Foundation screen:


CLIENT Attribute
SO_ITEM_POS Attribute
CURRENCY_CODE Attribute
PRODUCT_GUID Attribute
Gross_Amount Measure
Net_Amount. Measure

ADD THE PRODUCT ATTRIBUTEVIEW TO THE LOGICAL JOIN ANALYTICAL VIEW

Join with a referential join (cardinality n,1) the Data Foundation (on the left) to the
Product Attribute view with fields the following fields:

CLIENT to CLIENT (Product Attribute View)


PRODUCT_GUID to NODE_KEY (Product Attribute View).
VALIDATE AND ACTIVATE THE VIEW.

CLICK ON DATA PREVIEW


TASK6:MODIFY THE PARTNER VIEW CREATE A CALCULATED ATTRIBUTE.

HERE WE NEED TO MERGE THE PHONENUMBER AND PHONE EXTENSION.

GO TO ANALYTICAL VIEW AN_BUSINESSORDERS

CREATE A CALCULATED ATTRIBUTE


NAME:PHONE_NUMBER_EXTENSION

DATATYPE:VARCHAR

LENGTH:20

DEFINE THE FOLLOWING FORMULA:

if PHONE_EXTENSION is null, take PHONE_NUMBER, if not, merge PHONE_EXTENSION with


PHONE_NUMBER.
CLICK ON OK

VALIDATE

ACTIVATE.
Now open the Attribute View again. Hide the fields PHONE_NUMBER and PHONE_EXTENSION,
by setting the Hidden property to True for these 2 fields in the Data Foundation View screen.

Save and Activate.


View the results.
CREATION OF HIERARCHIES:U

IMPLIMENT A LEVEL HIERARCHY


FOR THIS CREATE ATTRIBUTEVIEW

ADD THE FOLLOWING COLUMNS TO OUTPUT


PRODUCT_ID
TYPE_CODE
CATEGORY
TO CREATE THE HIERARCHIES
GO TO SEMANTICS
HIERARCHIES
CLICK OK
VALIDATE->ACTIVATE->DATA PREVIEW

TASK 2:CREATION OF PARENT CHILD HIERARCHY


CREATE THE ATTRIBUTE VIEW AT_BUSINESS PRODUCT
ADD THE FOLLOWING COLUMNS TO OUTPUT
Product_id
Type_Code
Category

GO TO SEMANTICS->HIERARCHIES
SAVE AND VALIDATE AND ACTIVATE.
Open the attribute view
And go to category

save and validate and activate the view


CREATE ANALYTICAL VIEW
VALIDATE AND ACTIVATE THE VIEW

TO EXPORT THIS TO EXCEL AND GENERATE THE REPORT

GO TO START->MS OFFICE->MS EXCEL->DATA->FROM OTHER SOURCES->SELECT SAP HANA


MDX DRIVER->PROVIDE HANA CREDENTILAS->SEARCH FOR OUR PACKAGE->STUDENT99-
>AN_HIE_BP
TASK:CREATE A HIERARCHY OF TYPE PARENT CHILD
CREATE A ANLYTICAL VIEW
GO TO START->ALL PROGRAMS->MS OFFICE->MS EXCEL 2007->DATA->DATA FROM OTHER
SOURCES->OTHER/ADVANCED->
NEXT->FINISH->OK

EXERCISE4:CREATING RESTRICTED AND CALCULATED MEASURES

TO DO THIS TAKE TABLES CE1IDEA , KNA1,T005T TABLES

TO CREATE THE RESTRICTED COLUMNS


GO TO LOGICAL JOIN
CREATION OF CALCULATED COLUMN

NEW->CALCULATED COLUMNS

SAVE
VALIDATE AND ACTIVATE THE VIEW

DATA PREVIEW

EXERCISE 5:USING FILLTER OPERATIONS

CREATE A CLIENT DEPENDENT VIEW

GO TO OUR ALREADY CREATED ANALYTICAL VIEW AN_BUSINESSPARTNER

RENAME THE MEASURE GROSS_AMOUNT TO GROSS_AMOUNT_USD


On the Logical View screen, select the measure GROSS AMOUNT USD in the Output, and change
the Measure Type from Simple to Amount with Currency in the properties.
On the Data Foundation screen, right-click on the field SNWD_PO_CURRENCY_
CODE and choose Apply filter. Choose Operator Equal and Value USD.
LIKE ABOVE WE CAN APPLY FILLTERS.

EXERCISE6:USING VARIABLES

After completing this exercise, you will be able to:


• Create Attribute Value Variables
• Create Static Value Lists
• Create Date Variables
• Create Variables with formulas

CREATE THE ANALYTICAL VIEW


TO CREATE THE VARIABLE

GO TO SEMANTICS->VARIABLES->
VALIDATE->ACTIVATE->DATA PREVIEW
HERE IT IS SHOWING THE DATA OF ONLY BUKRS 1000

HERE WE AEE RESTRICTING THE BUKRS DETAILS TO 1000,IF WE WANT TO REMOVE THE
RESTRICTION THAN DELETE THE VARIABLE CUSTOMER_VARIABLE.

TASK 2:ADD DATE AS AN ATTRIBUTE


FORTHIS ADD FADAT AS ATTRIBUTE FROM CE1IDEA TABLE.

TASK 3:INPUT PARAMETER

TO CREATE THE INPUT PARAMETER

SELECT NEW
GIVE NAME TO THE INPUTPARAMETER

SET TYPE TO :STATIC LIST SELECT IS MANDATORY

SET DATA TYPE TO DATE

ADD LIST OF VALUES

CLICK OK

EXERCISE 7:CREATING CLACULATION VIEWS

CREATION OF GRAPHICAL CALCULATION VIEW


TAKE AGGREGATION

AND ADD SNWD_So table to the aggregation.


Take gross_amount column as aggregate column, and also apply a Filter to the same column:
Greater Than Equal3000000.

Add another Aggregated Column: CREATED_AT.


In the Properties for this Aggregated Column, set the Aggregation Type to “Max”.
Add another aggregation node
Add snwd_So table to the aggregation node
In the new Aggregation node, add the CREATED_AT column to output
In the new Aggregation node, add GROSS_AMOUNT as an Aggregated Column, and also apply a
Filter to the same column: Between 1000000 and 2999999

Add a Calculated Column to the new Aggregation node. Name the column
OVER_3MEUR_FLAG and set the Data Type to VARCHAR, Length: 1.
In the Expression Editor of the new column, enter the following: ‘N’
(include the single quotes) then click Add

Ok
Add a Union node in between your Aggregation nodes and the Output node. Connect the two
Aggregation nodes to the Union node.
In the details of the Union node, click on the Auto Map by Name button.

Right click on the OVER_3MEUR_FLAG Target Mapping. Click on Manage Mapping


Add a Constant Value to this column from the Aggregation node that is missing a flag entry. Set
the value to: Y
Connect the Union node to the Output node.

In the Output node, add all columns from the Union node as Attributes.
Click on the background of the Graphical Calculation view in order to edit the properties of the
Calculation View.

Make sure that the Calculation View has “Multidimensional Reporting” set to “disabled”.
Save the View.
Activate and preview. Click on the Raw Data tab.
The Aggregation node for OVER_3MEUR_FLAG = Y contains only Aggregated columns

EXERCISE:CREATE A SIMPLE CALCULATION VIEW OF TYPE SQL SCRIPT

DEFINE THE OUTPUT OF THE CALCULATION VIEW

IN THE SCENARIO PANE CLICK ON SCRIPT_VIEW


DEFINE OUTPUT WITH FOLLOWING VALUES:
FIRST CREATE PUBLISHER AND BOOKS TABLES

You want to copy the SQL script and paste it after var_out =

DEFINE ATTRIBUTES AND MEASURES


VALIDATE AND ACTIVATE

CLICK ON DATA PREVIEW

EXERCISE 10:-CREATING A CALCULATION VIEW OF TYPE SQL SCRIPT USING CE FUNCTIONS


In one of your Calculation Views you want to see if you can improve performance by replacing
standard SQL statements with CE_FUNCTIONS

VALIDATE ACTIVATE
DATAPREVIEW
EXERCISE:
CREATING PROCEDURE:
TO CREATE A PROCEDURE
CREATION OF SCALAR INPUT PARAMETER
CREATION OF OUTPUT PARAMETER:
VALIDATE AND ACTIVATE THE PROCEDURE

TO EXECUTE THE PROCEDUTE

GO TO CATALOG

_SYS_BIC SCHEMA AND LOOK FOR THE PROCEDURE


TO EXECUTE THE PROCEDURE

USE CALL()

HERE WE USED INPUT PARAMETER

SO PASS THE INPUT PARAMETER VALUE AT THE EXECUTION OF PROCEDURE


EXERCISE:CURRENCY CONVERSION IN ANALYTICAL VIEW

CREATE THE ANALYTICAL VIEW

GO TO PACKAGE->NEW->ANALYTICAL VIEW

ADD THE TABLE SNWD_SO TABLE TO THE DATA FOUNDATION


ADD THE CURRENCY SCEMA TO THE DEFAULT SCHEMA

CLICK ON OK

ADD THE FOLLOWING COLUMNS TO THE DATA FOUNDATION

ADD GROSS _AMOUNT COLUMN AS THE ADD TWO INSTANCES OF THE COLUMN

MAKE GROSS_AMOUNT COLUMN AS MEASURE


FOR GROSS_AMOUNT COLUMN BASE CURRENCY IS EURO

Rename the Measure GROSS_AMOUNT to GROSS_AMOUNT_EUR

Change the Measure Type to Amount with Currency


Set the Currency to Fixed Type EUR
Do not “Enable for Conversion” or for “Decimal Shifts”.
Click OK.

CLICK OK

Add a Gross Amount Measure in USD currency.

Rename the Measure GROSS_AMOUNT_1 to GROSS_AMOUNT_USD


Change the Measure Type to Amount with Currency
Set the Currency to Fixed Type EUR.
Enable the Measure for conversion.
Note: By setting the Currency to EUR this will automatically set the Source Currency to EUR

Set the Target Currency to Fixed Type USD.


Set the Exchange Type to M.
VALIDATE ->ACTIVATE->DATA PREVIEW

EXERCISE:PROCESSING INFORMATION OBJECTS

After completing this exercise, you will be able to:


• Set your own preferences in Validation Rules.

Task:
Close all open views prior to modifying preferences in Validation Rules.

Unselect "Key Attribute Validity Check" in your Validation Rules

FOR THIS GO TO WINDOW->PREFERENCES->MODELER


CREATE A NEW ATTRIBUTEVIEW

GO TO PACKAGE->NEW ATTRIBUTEVIEW

CREATE A ATTRIBUTE VIEW

Convert the Key Attribute to Attribute.


Validate the view.

What is the Logs result?


Return to the Validation Rules preferences and set it back to default values.

Click OK and validate your view again.

EXERCISE:WORKING WITH SAP HANA USERS AND ROLES

roles and users created by the hana admin.

We can apply privialges to packages and views.

TO create analytical privilages

Go to package->new->analytical privilages.
Click finish

SCENARIO:-Here restricting the data based on company code

Go to associated attributes restriction click on add


To assign restriction click on ASSIGN RESTRICTIONS

CLICK ON ADD

Here restricting company code of 1000

Click on 1000
Click ok

Click on validate and activate.

IN order to test this create users

Go to security->users->new users->

Give username and password

When we create a user the default role public will be assigned to user.

To create a role go to security role->new role

Give rolename->here we need to assign our analytical privilege to role and role to user.

Go to analytical privilages tab->click on + icon to add our created privilege to role


Here we can give package privilages for this goto package privilages->click on + icon->
Here we can assign privilages to entire package or our required pckage

Here we can give privilages like read the package->activate the package->maintain the package.

Here we have object privilages->when we create any view a column view will be generated in _sys_bic
schema
We can apply to _sys_bic schema by using object privilages.

Go to object privilages->click on + icon->

CLICK OK

Go to system privilages tab


Click on + icon

Click on ok

Click on deploy(f8)
The creation of roles will be done by hana admin..here we donot have permission to create roles it si
throwing error like above.

If we want to create roles and user and analytical privilages we have admin privilages to do all these.

Here we need to assign our created roles to user for this

Go to security->users->go to our created user(myuser)->go to granted roles-<click on + icon

Assign our roles to user(1000_Saphr)

Role is a reusable object..we can assign one role to multiple users

Click on deploy(f8)
To check this

Create new hana host with our created user credentials

Go to systems->add systems->

Host:hanaserver

Instancenumber:07

Description:saphana

Username:myuser

Password:m(c )yusersec48

Click on next->give old password

Newpassword:W©ELCOME1234

CLICK OK
HERE WE DO NOT HAVE PRIVILAGES,IF WE HAVE PRIVILAGES.WE ONLY GET COMPANY CODE OF 1000
DATA.

We can create analytical privilages at content area .like views not at tables.

EXERCISE:START,SUSPEND,RESUME THE REPLICATION


TASK1: Use real time replication of your table ZSNWD_EMPLOYEEXX including data
transformation

Start the replication of your table ZADDRESS3

Start in Memory Studio:


Start → Programs → SAP in-memory computing → studio

Chose the Modeler perspective in Studio via menu Window:


Window → Open Perspective → Others → Modeler

Click on Data Provisioning in the Quick Launch tab.


Click on the Replicate button in the Data Provisioning Editor tab

Enter zaddress3 in Tables for selection and click on the black triangle to filter the table list.

Choose you table zaddress3 and click the Add button.

Click on Finish to start the load process.

GO TO ECC

LTRC
CLICK ON EXECUTE

CLICK ON DATA PROVISIONING

CLICK ON EXECUTE
Exercise :Data Acquisition using SAP Data Services
Log in to SAP Data Services Designer.
Start SAP Data Services Designer by using the following path:
Start Menu → Programs → SAP Business Objects Data Services 4.1 Patch→ Data Services
Designer.

GO TO DATA SERVICES WORK BENCH

Create new project here project used to group the related objects.
CREATE DATA STORE FOR ECC

At the bottom left hand side, you will see your local object library. From the tabs at the bottom
select the blue data ton icon
From the context menu select New to create a Data store
Enter the following details to create an ECC Data store and click OK
Click next->finish

Goto ecc data store go to tables add the tables

Import the metadata from the ECC extractor into SAP Data Services Repository
Right click on the new ECC Data store and from the context menu choose Import by Name.

Create data store for hana

From the context menu select New to create a Data store


Next->finish

Create Replication job

Create a Batch Job and load data into SAP HANA

Go to project->replication job
Validate

Execute
Data Acquisition using SAP Data Services
Log in to SAP Data Services Designer

Start SAP Data Services Designer by using the following path:


Start Menu → Programs → SAP Business Objects Data Services 4.1 Patch
3→ Data Services Designer
Enter username and password Of designer
Choose you are repository.
Create a datastore for ecc

Click on advanced give credentials of ecc click on finish


Import the metadata from the ECC extractor into SAP Data Services Repository

Right click on the new ECC Data store and from the context menu choose Import by Name.

Then select Extractors from the type and import the extractor called SFLIGHT. In the pop-up
add the Name of consumer and Name of Project as shown below
CREATE A HANADATASTORE:

Create a Batch Job and load data into SAP HANA


At the bottom right hand side, in the local object library click on the tab with the yellow folder
icon to create a new Project

Right click and from the context menu select New and create a Project with
the name, SREEHANA
In the Project Area located on the left side, right-click on your new project and click on New
Batch Job and create a job called HANA_JOB.

On the right hand side, you will now see a toolbar. Click on the Dataflow icon and click again in
the workspace to create a Dataflow called HANA_DF.
Double click on your new HANA_DF, and add an ABAP Dataflow by clicking on the ABAP
Dataflow icon from the right toolbar.

Double click on the new ABAP_Dataflow and drag-drop the SFLIGHT Extractor from the the ECC
Data store.
Add the Query transform from the right toolbar which has the Query icon (orange and yellow
triangle).

Add the Data Transport from the right toolbar which has the icon.
Connect all of them together.
Double-click on the query transform drag all fields from the SCHEMA IN to the SCHEMA OUT for
the mappings.

Navigate back to the ABAP Data Flow.

Double-click on the Data Transport and add the following name in the filename section,
HANA.dat

On the top of the Data Services Designer click on the back button which will take you back
outside of the ABAP dataflow and show the Data Flow. Click on the green arrow to the left icon.

Now add the Query Transform from the right toolbar and drag-drop the template tables folder
under the HANAXX Data store. Call the template table, SFLIGHT .
Now add the Query Transform from the right toolbar and drag-drop the template tables folder
under the HANA Data store. Call the template table, SFLIGHT.
Double-click on the query transform drag all fields from the SCHEMA IN to the SCHEMA OUT for
the mappings.

You have now setup the Batch Job to load ECC data into SAP HANA using an extractor

Now right click on the Job and Execute. It will prompt you to save and then accept all the
defaults on Execution Properties window.

To monitor the job, click on the icon on top.


Once the job is completed, go to the SAP HANA Studio, and refresh the table structure.
You should now see a new table called SFLIGHT under your HANAUSER Schema. Check the data
by right clicking on this table and selecting Data Preview.
Exercise: Creating an Extractor Connection (DXC)
You are at a customer site and you need some SAP ECC data directly in HANA.
You need these data with the least amount of effort.

Task 1:
Create a DXC Data Source and load ECC data directly into HANA
Check the parameters in table RSADMIN
For this go to ecc
Se11
Rsadmin
PSA_TO_HDB → “Global” (All activated Data Sources will create an SAP HANA Optimized DSO)

PSA_TO_HDB_DESTINATION → “DXC_HANA_CONNECTION” (Based on the HTTP Connection prepared in


SM59)

PSA_TO_HDB_Schema → “DXC<LOCATION>” (Schema for automatically generated SAP HANA Optimized


DSO tables based on new Data Sources)
Check the parameters in table RSADMIN (check only)

Use transaction SE16 and open table RSADMIN. Select all entries which started with “PSA*” and
check them
Create your own Data Source based on credentials of existing Data Source
Go to ecc

Se11

Give table name and copy structure of table

The table name should be given with ‘z’

So I given table name as zmic_vbak


save and activate the table.

Than go to rso2
Provide table name in the transaction data click on create.

In the popup to create a new Object entry choose Local ($TMP) and Save.
In the Data Source: Customer version Edit screen save again without any changes to the
defaults.

Expand node Generic Data Source and click on Maintain Generic Data Sources
click on save

Again click on save

Than go to rsds
Replicate your Data Source based on application component

Right-click on node DXC and choose Replicate Metadata All Data Sources for application
component DXC will be replicated.
For new Data Source choose type as Data Source (RSDS) and confirm.

go to data source->replicate data source


Go to rsa1

Go to data sources and check your data source here

Than right click on your data source and click on change


And than activate your data source

Than right click on data source and click on create info package

Click on save
Go to schedule click on start

Go to data source and right click on data source and click on manage
Than go to hana studio

Go to catalog

G o to dxc schema and here you can find out your tables

Check the new SAP HANA Optimized DSO directly in the SAP HANA Studio.

Check the new SAP HANA Optimized DSO and identify the tables in the SAP HANA Studio.

Open the table folder and identify the tables of your new SAP HANA Optimised DSO.
.

Das könnte Ihnen auch gefallen