Quantcast
Channel: Enterprise Performance Management (SAP EPM)
Viewing all articles
Browse latest Browse all 113

Input Schedule Validation using EPM Add-in Events

$
0
0

Business Case

 

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. 

 

image001.png

 

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

 
image003.png

 

Function BEFORE_SAVE()

If Range("rng_Validation") = 0 Then

    MsgBox "Please correct the numbers before saving", vbCritical

    BEFORE_SAVE = False

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.

 

image005.png

 

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. 


Viewing all articles
Browse latest Browse all 113

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>