APD (Analysis Process and Designer)
APD (Analysis Process and Designer)
com/community/data-warehousing/netweaverbw/blog/2012/06/15/apd-analysis-process-and-designer
APD (Analysis Process and Designer)
Analysis Process Designer (APD) is a workbench for creating,
executing, and monitoring analysis processes. The analysis process is
primarily based on data that was consolidated in the Data Warehouse and
that exists in InfoProviders. One of the applications of APDs from a technical
point of view would be feeding query results into a DataStore object or an
attribute of a characteristic. In this post I review a few examples on how
consultants may use APDs for addressing particular analysis tasks.
The Analysis Process Designer (APD) is a workbench with an intuitive
graphical user interface for creating, executing, and monitoring analysis
processes. The analysis process is primarily based on data that was
consolidated in the Data Warehouse and that exists in InfoProviders.
Different set of Data Sources, Transformations and Data Targets are available
in APD.
Analysis Process Designer allows you to set up a model where you move data
from source to target and do some transformations on the way. As a source
we can use any InfoProvider in the data model.
The following types of Data Sources are available in the Analysis Process
Designer:
Read Attributes of Characteristics
Read Data from Info Providers
Use Query to Read data
Read Data From File
Read Data From DB Table
Read Analysis Authorizations
The following types of Transformations are available in the Analysis Process
Designer:
Filter
Aggregate Data
Join
Union
Projection
Sorting
Formula
Transform
ABAP Routine
ABC Classification
Weighted Table Scoring
Regression Analysis
Prediction with Decision Tree
Prediction with Cluster Model
1.
The infocube contains measures (KPIs) used for scoring, such as sales
volume and sales budget. It also has a set of traffic light KPIs that need to be
populated with indicators for each granularity level.
3.
Why using APD in the scoring model
It is important to note that in the scoring model instead of APD/Query approach one can use a
transformation (formerly known as an update rule) connecting cube to itself. In the start/end routine
we can build business logic required for scoring results calculations.
However, this approach requires complex development in ABAP. Specific scoring requirements have to
be documented by a business user in advance, which usually makes development cycle longer. Any
adjustments to the scoring logic require ABAP code modifications.
Alternatively, when we use Query/APD approach, analysts are able to define scoring requirements in
the queries, test and modify them whenever it is needed. They can also run queries and check
preliminary results. Needless to say, it is usually easier to modify and test queries rather than
transformations with ABAP code.
Step: 2
General -> Rt Click ->Create Analysis Process -> Enter the Description
Step: 3
Now we can drag and drop the source & target objects which are there in the Functional
Area. We can map Source & Target by using the Transformations. We can use several functions which
are available in Transformations. (Join, Aggregate, Filter, Formula, ABAP Routine etc)
As per our requirement, we have to send the Query result to a DSO. So drag and drop
Query (Use Query to Read Data) form Data Sources in the Graphical Work Area.
Maintain the source details in the Data Source: Query window -> enter Description and
choose query -> Enter Query Variant. (There should be a Variant for the Query which is data Source for
the APD)
Step: 4
Query Variant:
A query variant is a query for which the variable values have already been selected. You
can also use the variants for opening the query in the online display and for background processing.
Go to RSRT -> Enter Query name ->Query Variants -> New -> Enter variant name and
Description -> Select the value in the Variable Selection screen -> Save Values.
Hence the Query variant is created. We have to enter the Query Variant in the APD Data Source:
Query screen. APD result will be based on the Query Variant (We have given priority: High in the
Query variant.)
Step: 5 Drag and drop the Data Target which is DSO (Direct Update) and enter the DSO details.
Now connect the Source (Query) and Target DSO by dragging one end to the other. We
can use Transformations Join, Aggregate, Filter, Formula, ABAP Routine etc based on our desired
output. We can use ABAP Routine for complex transformations. Here in the present example we are
not using any of these transformations.
Step: 6
Step: 7
result.
In the same way we can create APD with multiple tansformations between multipme Sources and
Targets .
When we have to get the data from the Query (Query as a Source), we
go for APD. We can use all RKFs , CKFs present in the Query and can
perform transformations on it. For analysis purpose also we use APD's.
Scenario:
One scenario is like if you want to get ranking wise analysis(Eg. Vendor wise OR Dealer wise ranking) we can use
this functionality in BEx Query with Rank function. This ranking will calculate on run-time, So all corresponding
Dealers or vendors should be in Query drill-down.
But if we want to give this rank analysis to vendors or dealers individually it will not work properly as for only one
(vendor or dealer) it will always give rank as one.
This type of analysis can be done be APD.
We can store Query output to DSO and again make Query on this DSO accordingly and give to (vendor or Dealer)
also with less calculation Query will be faster.