In this Blog post we will explore the Clear Cube & Merge Data Slices option in Planning and can be leveraged to EPCM applications using the REST API & Groovy
Clear Cube
The
Clear Cube can be accessed from the Simplified Interface.
In this Blog post we will explore the Clear Cube & Merge Data Slices option in Planning and can be leveraged to EPCM applications using the REST API & Groovy
The
Clear Cube can be accessed from the Simplified Interface.
In
this blog we will see how to run the EPCM (Enterprise Performance Management
Cloud) Calculation Manager rules using
groovy in a sequential manner also invoking Data Management rules as child jobs
using the jobFactory.
Groovy script is fetching substitution variable values from an operation's application and printing them. Here's a detailed explanation along with the provided script:
subVarValue is defined to fetch the value of a substitution variable from the application.
Also Sets the connection name, which is already predefined for the REST API to work.
def connectionName = 'Localhost'
Closure
subVarValue = { String subVar -> operation.application.getSubstitutionVariable(subVar).value
}
String
CurYr = subVarValue('CurYr')
String
CurMth = subVarValue('CurMth')
println
"The Rule is using the Sub Var Current Year : " +CurYr +" "
+ "Current Month : " +CurMth
User variables
function as filters within forms, allowing users to narrow their focus to
specific members, like a department. Prior to linking a user variable to a
form, you need to establish the user variable. When designing forms with user
variables, users are required to initially designate values in preferences for
the variable prior to accessing the forms. Subsequently, users can modify the
variable within the form only if it's dynamic. If not, they must persist in
setting the variable in preferences. For instance, if a user variable named
"Cost Center" is created, users must designate a Cost Center before
engaging with the form.
When users interact with a form for
the first time, they set their preferred variable, such as a department or
division, in their preferences. This initial selection is crucial as it helps
customize their form-viewing experience.
After the initial setup, users have
the flexibility to update this variable. They can either go back to their
preferences and make changes there, or they can directly adjust the variable
within the form itself. This flexibility allows users to adapt their form
interactions based on changing needs or contexts without needing to navigate
away from the form.
Overall, this approach ensures that
users have control over their viewing preferences and can tailor their
experience to suit their individual requirements.
Vanity URLs
Vanity URLs offer a convenient solution for memorizing complex URLs associated with Oracle Enterprise Performance Management Cloud environments.
These customized URLs provide direct access to EPM Cloud environments via web browsers, Oracle Smart View for Office (version 20.200 and higher), and EPM Automate.
To generate a new vanity URL, you can utilize third-party services such as T.ly, Bitly, Rebrandly, or TinyURL, or opt for an open-source alternative like YOURLS. When leveraging an API gateway or reverse proxy, substitute the EPM Cloud URL with the designated URL and context specified for your environment.
In this
blog we will see how to run multiple Rules of Enterprise Profitability and Cost
Management (EPCM) using Groovy in Sequential and proceed with the next rule
only after completion the previous rule.
/**************************************************************************************/
/*
Run IC Calcs All Region
*/
/*
Creation Date : 10th Apr 2024 */
/* Version : 1.0 */
/* Modifications : */
/* The Rule uses the Sub Var &CurMth,
&CurYr. */
/* The Rule will be executing the following, */
/*
1. Clear for EMEA */
/* 2.
Clear for APAC */
/* 3.
Clear for Americas */
/*
4. Merge Slices */
/*
5. Run Ruleset Ranges: */
/* Start End */
/* 1 999 */
/**************************************************************************************/
connectionName is a variable that stores the name of the connection to the server. In this case, it's set to 'Localhost'. This variable is later used to specify which server to connect to when making HTTP requests.
def
connectionName = 'Localhost'
Closure
subVarValue = { String subVar ->
operation.application.getSubstitutionVariable(subVar).value }
String
CurYr = subVarValue('CurYr')
String
CurMth = subVarValue('CurMth')
println "The Rule is using the Sub Var Current Year : " +CurYr +" " + "Current Month : " +CurMth
Using the Groovy script we can invoke the following REST API provided by an Enterprise Profitability and Cost Management system.
The requirement is to extract
data from an ASO Cube from a EPM Cloud application to a .csv file, while also
including the Process ID and the extraction date from the TDATASEG table.
I will not cover the steps to extract data from ASO cube, we will see how to extract the Process ID and the date it was ran using the TDATASEG_T.
The TDATASEG table serves as a repository for both the data provided by users and the transformations applied during the mapping process, capturing the relationships between original source dimension members and their resultant mappings. During the process it involves transferring data to the TDATASEG table from the staging table TDATASEG_T followed by the deletion of data in the TDATASEG_T table.
At
a high level we know to connect to SQL Server using JDBC in the EPM Integration
Agent, you need to follow these general steps:
Download the JDBC Driver: First, you need to download the Microsoft JDBC Driver for SQL Server from the official Microsoft website. Make sure to choose the appropriate version of the driver that matches your SQL Server version and Java version.
Install the JDBC Driver: Once downloaded, extract the JDBC driver files from the downloaded package and place them in a location accessible to your EPM Integration Agent. This could be a directory on your system or within the EPM Integration Agent's installation directory.
This
time, A different scenario was accomplished using the Groovy by one of my
teammates. I thought of sharing here.
The requirement is to populate the Long-range planning and the rule will perform an action if the OEP_Plan (budget) is selected in the RTP and a different action if OEP_Actual (actual) is selected in the RTP.
In the Part -1 we saw how to add a new row for a New Product or a Customer using the Calculation Manager rule. In this post, we will see how to do the same using the Groovy rule.
This is the data from where add a row option is enabled,
The actual form is shown below,
In this blog, let's discuss how to address the requirements of entering data into a New Product or a Customer in a Data From exists in the PBCS or EPBCS application where the Suppress missing data for Rows or Suppress Missing data for Columns are enabled. Or the data does not exist for that combination but the users want a provision to enter the data for that specific combination.
During the Budget or the Forecast, the users might want to enter data for a combination that never had any historical data.
It is a general best practice the Data Forms will be enabled with the following,
- Suppress missing data - Rows
- Suppress missing data - Columns