Quantcast
Channel: SCN : Discussion List - SAP Planning and Consolidation, version for SAP NetWeaver
Viewing all articles
Browse latest Browse all 5414

BPC 10.0 NW - Default calculation on 0

$
0
0

Hej all.

 

I have a very simple script I want to implement in my solution, and it is important that is it run whenever the user makes an entry to the system. Therefore it needs to be in the default script.

 

The script is a very simple quantity*price to get the revenue. The quantity is however divided in two accounts, and KG_DIS account that is disaggregated using a BADI and then a KG_MAN for manuel adjustment. The user will only be making manual adjustments to the KG_MAN if the disaggregation is precise enough.

 

I do not have any problems getting the script to take the sum of the KG accounts. My problem is that is the users make a manual entry to the KG_MAN accounts, saves it and then afterwards change it to 0 again, then the script do not make any calculations, when it is changed to 0. Therefore, the revenue will not be recalculating and hence be wrong.

 

The script is working 100% perfect, if i just run it as a normal DM package, and i get update values.


The script looks as follows:

 


*XDIM_MEMBERSET PACCOUNT=BAS("KG_TOTAL")
*XDIM_MEMBERSET PAUDITID=BAS("USALES")
*XDIM_FILTER PCUSTOMER = [PCUSTOMER].PROPERTIES("PRICE_AREA") = "OTH"


*WHEN CATEGORY
*IS *
*REC(FACTOR = ([PACCOUNT].[NEW_PRICE],[PAUDITID].[USALESCALC]),PAUDITID = "USALESCALC",PACCOUNT = "A100000")
*ENDWHEN

 

I tried to change the *REC formula to just write a 1, and nothing happens, so the 0 values is not picked up by the script.

 

Can any of your wizards help us with this?

 

Best regards

Mikkel Smidt Kristensen


Viewing all articles
Browse latest Browse all 5414

Trending Articles



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