View Function - Advanced Tab - SAP Blogs
View Function - Advanced Tab - SAP Blogs
Community
Follow
Ask a Question
Like Write a Blog Post Login
RSS Feed
Technical Articles
If you are one of the modelers exploring the array of functions offered by SAP
Profitability and Performance Management and stumbled upon a seemingly plain
function called View; curious of its functionality besides the usual ones such as
projection and aggregation – then this blog post is for you.
As view is one of the most straightforward functions offered by the solution, in which
I concur. In the sense that: the modeler can simply just indicate an input function
with optional input selection criteria, activate and run the function then you will have
your desired result projection – in addition to the manipulation that the modeler
could do from the output tab. However, as much as these tabs (input and output) are
essential, the real-deal can be found in View’s Advanced Tab – wherein I will be
focusing on.
For starters, general information about the View function can be read here:
https://help.sap.com/viewer/56471df1959f4cfd9e3bf7a6d2d5be42/latest/en-
US/23dc009edd8f4e9594e24c912d89d39e.html
Pretty basic isn’t it? Now moving to the main topic, the Advanced tab section has the
following settings:
Figure A.
https://blogs.sap.com/2020/11/09/view-function-advanced-tab/ 1/12
2/15/22, 12:36 PM View Function: Advanced Tab | SAP Blogs
Follow
Like
RSS Feed Note: The configuration above for Advanced Tab is just a depiction of what kind of
input these fields accept.
I will try my best to explain each Advanced tab settings in the next section using
simple scenarios that will show their relevance and behavior when properly
configured:
1. Top
This one is pretty direct, by indicating a number or parameter will restrict the
output records coming from the input. For example, I have the following input
records:
As an additional flavor, I’ve used Order by for both fields in the Output tab.
https://blogs.sap.com/2020/11/09/view-function-advanced-tab/ 2/12
2/15/22, 12:36 PM View Function: Advanced Tab | SAP Blogs
Follow
Like
RSS Feed
For instance, I have two data sets: (1) Assumed (2) Actual.
A View function on top of these model tables will do the trick by specifying the
precondition for example as shown in Figure A above. These two view functions
are then called using From and Union All rules inside a Join function (JO – Data
Processing) which serves as the main function to be executed.
https://blogs.sap.com/2020/11/09/view-function-advanced-tab/ 3/12
2/15/22, 12:36 PM View Function: Advanced Tab | SAP Blogs
Follow
Like
RSS Feed
To help you imagine what I am talking about, the function tree structure looks
like this:
Note: Figure shown is from FS-PER 3.0 Visual Modeler. And for easier reference,
I’ve indicated the set Parameter precondition on each View function.
https://blogs.sap.com/2020/11/09/view-function-advanced-tab/ 4/12
2/15/22, 12:36 PM View Function: Advanced Tab | SAP Blogs
Follow
Like
RSS Feed
You might want to also check another blog post citing another scenario wherein
Run Parameter Precondition feature was found essential by Andrey Fedorin:
https://blogs.sap.com/2020/10/06/sap-profitability-and-performance-
management-how-to-manage-sequence-of-functions-in-execution-chain/
3. Default Type
If the Default Type is set to Default Output, if input empty and the input
function’s Y-TABLE is empty, the run result will have a one line of dummy record
as shown below.
https://blogs.sap.com/2020/11/09/view-function-advanced-tab/ 5/12
2/15/22, 12:36 PM View Function: Advanced Tab | SAP Blogs
Follow
Like
RSS Feed
On the other hand, if the input function has records, it will be shown as is.
Basically, the exact behavior as setting Default (none) which is the normal View
functionality.
4. Iteration
Iteration often referred to as ‘looping’ is a process in order to generate a
sequence of outcomes which function View is also capable. Iteration type have
three options: Default (None) the succeeding settings will be grayed out as
shown below:
While both For Loop and For Loop Reverse enables the looping capability of the
View function. The difference using the latter is that it switches the Low and
High effect in the iteration. As for Low and High fields, its values can be set
using static integer value or an environment parameter.
To show you that the iteration values can be reused, I’ve assigned the Iteration
Parameter I_ITER to an output field ZE_ITERATION.
https://blogs.sap.com/2020/11/09/view-function-advanced-tab/ 6/12
2/15/22, 12:36 PM View Function: Advanced Tab | SAP Blogs
Follow
Like
RSS Feed
After successful activation and run, each iteration value are passed on to the
output field ZE_ITERATION and shown completely in the image below:
This is just one (of the simplest) example wherein a user can utilize iteration.
From repetitive enrichment and calculation to mass data generation, this
feature will certainly be of aid for modelers.
https://blogs.sap.com/2020/11/09/view-function-advanced-tab/ 7/12
2/15/22, 12:36 PM View Function: Advanced Tab | SAP Blogs
Follow
Like
RSS Feed
Moreover, View can also be used as a caller for a repetitive process and/or
enrichment in a chain of functions such as below:
In this scenario, as long as the Iteration logic is satisfied, the View Function will
trigger the Writer that calls its child functions until the iteration parameter
reaches the High limit set and will end the iteration process. But what if I am
already satisfied with the enriched data mid-way before reaching the value I
have set for High – which is the upper limit of my set iteration?
A soft-limit that will end the iteration cycle if a certain condition is met
is basically how Early Exit Check works and will fulfill this requirement.
5. Early Exit Check
Another functionality coming from the View’s Advanced Tab is the Early Exit
Check. Wherein a condition can be configured in the environment through
‘checks’ which the View function can use as constraint. And once this condition
is met, the iteration process will be terminated.
https://blogs.sap.com/2020/11/09/view-function-advanced-tab/ 8/12
2/15/22, 12:36 PM View Function: Advanced Tab | SAP Blogs
Using the first iteration example from the previous section, I have created a
Like check with condition ZE_ITERATION = 6.
RSS Feed
And have set this as the Early Exit Check under the Advanced Tab of the View
function:
Upon running of the function, the result shows that the last value of
ZE_ITERATION is 5:
https://blogs.sap.com/2020/11/09/view-function-advanced-tab/ 9/12
2/15/22, 12:36 PM View Function: Advanced Tab | SAP Blogs
Follow
Like
RSS Feed
As such, this feature will be useful for scenarios that requires a certain condition
or fulfillment of a field’s record, without having to rely specifically on the
number specified in the Low and High fields for iteration.
I have removed the early exit check from our previous example to make it
simpler (similar to our the Iteration section example). As such,
Alertthe last iteration
Moderator
which is the value of 10 is shown as a result:
Assigned Tags
FS-PER
fsper
modeling
PaPM
https://blogs.sap.com/2020/11/09/view-function-advanced-tab/ 10/12
2/15/22, 12:36 PM View Function: Advanced Tab | SAP Blogs
view
Follow
Similar Blog Posts
Like and Performance Management – How to manage sequence of functions in execution chain
SAP Profitability
By Andrey Fedorin Oct 06, 2020
RSS Feed
General recommendations for data retrieval performance in SAP PaPM
By Erik Schmidt Apr 08, 2021
The new tool for replicating InfoObjects' Master Data delivered by SAP Profitability and Performance Management
By Andreea Botea Nov 03, 2020 As you’ve already reached the end of my blog post, I hope that you’ve learned how
SAP Profitability and Performance Management’s View Function – Advanced Tab
works and find this helpful with your modeling requirements.
PaPM, using function and query based on same function in process doubles numbers in report/query.
By nathan franck Oct 28, 2021
Coffee Corner
Join the new Coffee Corner Discussion Group.
https://blogs.sap.com/2020/11/09/view-function-advanced-tab/ 11/12
2/15/22, 12:36 PM View Function: Advanced Tab | SAP Blogs
RSS Feed
Find us on
Newsletter Support
https://blogs.sap.com/2020/11/09/view-function-advanced-tab/ 12/12