Have you ever thrown a party and only expected one set of guests, only to discover that on the day of the event, you're dealing with two or more groups? While it may seem strange, as the host, you must handle this circumstance in such a way that you do not order the unexpected group to leave the party, but rather entertain both groups according to your preferences. This is the same situation that occurs when users see "Duplicate Data" in the Analyze Screen of the Query Function when only a set of data is expected.
In this blog, not only we will answer the frequently asked question "why am I getting duplicate data when analyzing the Query function?" we will also go over on why this is happening, as well as the "tips and tricks" to managing these data effectively.
In SAP Profitability and Performance Management 3.0, users can use a Process Template when executing a processing function such as: View Function, Calculation Function, or other processing functions with the intention to filter a specific set data that the users need as an output of a Query Function and later in the Analyze Screen.
In this example, I am using a simple set of data from an input Model Table.
I also created 2 Process Templates:
In the following examples below, we will use a View Function to have a better understanding on how the data are being stored for each execution. It could happen that the users will initially execute the processing function without the use of a Process Template.
1st Execution result without a process template:
As a result, the data from the executions will be stored in a temporary data storage of the processing function also known as the YTable. Now, when the processing function (executable) is utilized as an input of the Query function, the same set of data will then be projected in the Analyzed Screen. This is due to the fact that the Query function will use the generated YTable where the result of the executions is stored. This is also the reason why users like You and I, are seeing the data as if they are duplicated.
Notice the key figures for CUST1 and CUST3 are aggregated.
The YTable of a processing function can be checked by choosing the Function Attributes button and by going to the Runtime Attributes Tab.
This is the same situation that occurs when the users execute the same functions again, this time in My Activities Application. Assuming that there are two (2) users that are assigned to execute two (2) Process Instances PROC_01 and PROC_02.
When the first user executes the Process Instance “PROC_01” Process0001 with a Selection = CUST1
And Launch the Query Function, notice that the Key Figures for CUST1 are again aggregated with the from the execution made in Modeling Environment and the execution in My Activities Application.
In your modeling environment, start by creating one Environment Field. In this example I created a field which I call ZE_PROCID (you can name it whatever you like) Choose your processing function, and on edit mode maintain the created field in the “Input Tab” and populate it with :l_proc_id in formula.
Process ID is a technical field therefore this cannot be used in function configuration/selection. However, with the use of this new field, our goal is to have this populated with the Process ID used in the execution. It is important to take note, that if you re-execute the processing function without a Process Template, this field will still be empty. However, if you re-execute the processing function again but with a Process Template, you can expect this fields will be populated with the “Process ID” of the Process Template that you’ve used.
Now, maintain the same Field in the Query Function. Once it is maintained, save your changes, and reactivate the query function.
In the Analyze Screen, you can now select the filter value for the Process ID that you want to see, in this example we only want to see the data from the execution of Process Template P0001_
Or you can remove the Field from the Rows. Toggle the Filter Bar > maintain the ZE_PROCID field > and declare the process ID that you want to see, in this example we only want to see the data from the execution of Process Template P0002_
In My Activities Application, these steps will benefit the users that will execute the Process Instances. When either of the Process Instance PROC_01 or PROC_02 is executed. The users will now have the freedom to filter the specific Process Instance used for their own execution.
I hope the short backstory and the tips and tricks that are discussed in this blog helped you as a user not only to understand the reason why there seems to be a duplicate data in the analyze screen, but also equipped you with the simple ways on how to manage the data effective.
Thank you for taking the time in reading this blog.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
3 | |
2 | |
2 | |
2 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |