Vous êtes sur la page 1sur 19

IMPLEMENTING ATTRIBUTE VIEWS BY USING DESIGN TIME

FILTERS
Design Time Filter:

Filters are expressions which limit the data that is retrieved. For instance you can restrict the data

Retrieved based on the date or SAP client using filter expressions

Go to remote desktop connection<start<click on SAPHANA studio


How to create a package:

Expand best system<right click on content<new<click on package


Provide name<provide description<click ok

How to create a sub package:

Right click on package<new<click on package


Provide name as SD <provide description <click ok

How to create an attribute view:

Right click on sub package<new<click on attribute view


Provide name AT_CUSTOMER<provide label<select subtype as standard <click
finish
Click on plus icon to add objects

Search for table KNA1<click on table<click ok

Select the required outputs


Again click on plus icon<enter table T005T<click ok
Connect KNA1 LAND1 to T005T LAND1 to get output as LANDX <select
LANDX as output column

Join type as text join<language as SPRAS

Text join: text join is used to fetch the description based on user's session
language. Once we implement the text join in sap hana, it automatically finds out
user's language and gives description in that language.
Again click on plus object<select T005U table<click ok
Join KNA1 LAND1 to T005U LAND1 because regions are specified with country

Join type as text join <language as SPRAS


Join KNA1 REGIO to T005U BLAND<select output column as BEZEI

Join type as text join <language as SPRAS


Click on semantics<select key attribute as KUNNR

Key attributes:

Key attribute is a kind of primary key for the attribute view. But, it doesn’t prevent the
Passage of duplicate values. It is basically needed to determine the join execution order
At the run time when multiple tables are used in an attribute view.

In attribute views there is one mandatory step. Whatever keys in the table one key?
We need to define inside an attribute view
Provide label mapping

Label mapping:

We can choose to associate an attribute with another attribute description. Label

Mapping is also called as description mapping. For example if a1 has a label

column B1, then you can rename b1 to a1.description. The related columns appear

side by Side during data preview


Click save and validate<click save and activate

Click on data preview


Click raw data<to get output
Now we are applying design time filters:
We want to see customers only belong to US country then we create a design time filter

Go to view < apply filter on LAND1 < Right Click on LAND < Apply Filter

Select operator
Select value as US<Click ok

Click ok
Save and activate<save and validate

<click data preview<click raw data

Vous aimerez peut-être aussi