0% found this document useful (0 votes)
111 views6 pages

Input Schedule Validation Using EPM Add-In Events

Input Schedule Validation Using EPM Add-In Events

Uploaded by

Akhlaque Shamsi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
111 views6 pages

Input Schedule Validation Using EPM Add-In Events

Input Schedule Validation Using EPM Add-In Events

Uploaded by

Akhlaque Shamsi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 6

10/19/2017 Input Schedule Validation using EPM Add-in Events | SAP Blogs

Products
Products Industries
Industries Support
Support Training
Training Community
Community Developer
Developer Partner
Partner

About
About


Home / Community / Blogs + Actions

Input Schedule Validation using EPM Add-in


Events
August 28, 2013 | 559 Views |

Badrish Shriniwas
more by this author

Retagging required
Solution | 10 | add-in | bpc | enterprise performance management | enterprise performance management sap epm | epm | input

share
0 share
0 tweet share
0

Follow

Business Case

https://blogs.sap.com/2013/08/28/input-schedule-validation-using-epm-add-in-events/ 1/6
10/19/2017 Input Schedule Validation using EPM Add-in Events | SAP Blogs

Validating the input schedule before submitting data to BPC 10 via EPM add-
in for excel. The sample scenario taken here is that set of cells should not
exceed 5000 for the data to get saved.

If it exceeds 5000, EPM add-in save option should give out an error message
and not save the data.

Solution

Here is an example of an input schedule with the operating expense. Cell B1


has been given a name (named range) of rng_Validation. Cell B1 also
contains a formula to validate the above business scenario. The cell returns a
value 0 if the validation is not met. The cell returns a value of 1, if the
validation is successfully met.

Go to VBA development screen (shortcut Alt + F11) >> Add a new module and
paste the following lines.

Function BEFORE_SAVE()

If Range(rng_Validation) = 0 Then

MsgBox Please correct the numbers before saving, vbCritical

BEFORE_SAVE = False

https://blogs.sap.com/2013/08/28/input-schedule-validation-using-epm-add-in-events/ 2/6
10/19/2017 Input Schedule Validation using EPM Add-in Events | SAP Blogs

Else

BEFORE_SAVE = True

End If

End Function

Results

If the data in the range B4:D4 is greater than 5000 then while saving the data
the following error will be displayed and data will not be saved. Subsequently
when the error is corrected the data will be saved without any message.

Other Options

Since this approach requires least amount of knowledge about the back end,
this can be easily implemented. In BPC NW, other options like Write-back badi
or UJ_VALIDATIONS can be explored.

Alert Moderator

10 Comments
You must be Logged on to comment or reply to a post.

https://blogs.sap.com/2013/08/28/input-schedule-validation-using-epm-add-in-events/ 3/6
10/19/2017 Input Schedule Validation using EPM Add-in Events | SAP Blogs

Vinodh Mohan

August 28, 2013 at 9:19 am

Very Well said Badrish

Arun Kumar Suryanarayana Rao

August 28, 2013 at 12:14 pm

Thanks Badrish, This is a very common requirement, it will be very useful.

Rajesh Balakrishnan

September 3, 2013 at 11:48 am

Hi Badrish,

Great guide. We had implemented something similar. I have a suggestion to this though.
In your example, B4:D4 is hardcoded. You can make that dynamic by using the OFFSET
function.

=IF(MAX(OFFSET(A3,1,1,COUNTA(A4:A1000),COUNTA(B3:ZZ3)))>60000,1,0)

(Change 1000 and ZZ as per row and column requirements based on estimates)

In your example, A3 is the point of intersection for the rows and the columns, it will never
change.

I am starting the COUNTA from the first row and column member respectively. So, even
if the number of row or column changes, the table will be dynamic enough to consider
the change.

Thanks for the tutorial.

Rajesh

Ravindra Tumuluri

https://blogs.sap.com/2013/08/28/input-schedule-validation-using-epm-add-in-events/ 4/6
10/19/2017 Input Schedule Validation using EPM Add-in Events | SAP Blogs

October 29, 2013 at 8:54 am

Good one !! Thanks

Rohit Sharma

October 31, 2013 at 12:18 pm

Wonderfulthanks

Varsha Nalkur

November 19, 2013 at 12:41 pm

Will be useful in my project.Thanks a lot!

Yashvi Maheshwari

December 26, 2013 at 3:04 pm

It is helpful ..!!

Jay Gandhi

February 24, 2014 at 1:46 am

Question, Im trying to make a different function based on whether the user choose Save
Workbook or Save Worksheet, Im using the BEFORE SAVE function well for worksheet
but I want a different set of validation checks to be performed if the user selects the Save
Workbook selection via the Save Data EPM ribbon area.

Any suggestions?

Thanks!

https://blogs.sap.com/2013/08/28/input-schedule-validation-using-epm-add-in-events/ 5/6
10/19/2017 Input Schedule Validation using EPM Add-in Events | SAP Blogs

Badrish Shriniwas Post author

March 18, 2014 at 10:40 pm

Do you want this validation to work globally on all the input schedules?

maheedhar challa

March 25, 2014 at 2:43 pm

Hi Shriniwas,

I am trying to use the same logic but my requirement little different I am using this funtion
on text, I am comparing two cells values they must be equal the only the user must be
able to save the data. There are over 200 rows where I am trying to apply this logic. Is
there any way to execute this same logic in my case.

Regards

Maheedhar

Share & Follow


Privacy Terms of Use Legal Disclosure Copyright Trademark Sitemap Newsletter

https://blogs.sap.com/2013/08/28/input-schedule-validation-using-epm-add-in-events/ 6/6

You might also like