Quantcast
Channel: SCN : Discussion List - SAP Planning and Consolidation, version for the Microsoft platform
Viewing all articles
Browse latest Browse all 1545

The Problem of Clear Destination

$
0
0
I have created a script as below:
*SELECT(%STARTMTH%,ID , "PR_TimeQ", "[BUDGET_STARTMTH] = 'Y'")
*XDIM_MEMBERSET CATEGORY=BUDGET
*XDIM_MEMBERSET ACCOUNT=HV9L_YT
*XDIM_MEMBERSET PR_TIMEQ=%STARTMTH%
*WHEN ACCOUNT
*IS HV9L_YT
*REC(FACTOR=1,ACCOUNT="HV9L",PR_TIMEQ=%STARTMTH%)
*REC(FACTOR=2,ACCOUNT="HV9L",PR_TIMEQ=NEXT(1))
*REC(FACTOR=3,ACCOUNT="HV9L",PR_TIMEQ=NEXT(2))
*REC(FACTOR=4,ACCOUNT="HV9L",PR_TIMEQ=NEXT(3))
*REC(FACTOR=5,ACCOUNT="HV9L",PR_TIMEQ=NEXT(4))
*REC(FACTOR=6,ACCOUNT="HV9L",PR_TIMEQ=NEXT(5))
*REC(FACTOR=7,ACCOUNT="HV9L",PR_TIMEQ=NEXT(6))
*REC(FACTOR=8,ACCOUNT="HV9L",PR_TIMEQ=NEXT(7))
*REC(FACTOR=9,ACCOUNT="HV9L",PR_TIMEQ=NEXT(8))
*REC(FACTOR=10,ACCOUNT="HV9L",PR_TIMEQ=NEXT(9))
*REC(FACTOR=11,ACCOUNT="HV9L",PR_TIMEQ=NEXT(10))
*REC(FACTOR=12,ACCOUNT="HV9L",PR_TIMEQ=NEXT(11))
*ENDWHEN
*COMMIT
For example: If HV9L_YT, 2013.Jan (%STARTMTH%) = 100,
then HV9L,2013.Jan = 100,
HV9L,2013.Feb = 200
HV9L,2013.Mar = 300
......
However, if I enter any other figure in HV9L_YT, 2013.Jan: 200
then
HV9L,2013.Jan = 200,
HV9L,2013.Feb = 600 (200 +400)
HV9L,2013.Mar = 900 (300 + 600)
It seems accumulated the previous figure.
Then I added the following script after *select :
*CLEAR_DESTINATION
*DESTINATION ACCOUNT=HV9L
*DESTINATION PR_TIMEQ=NEXT
After that the result of HV9L is what I expected, but it clears all HV9L's figure in other periods (such as: 2012.Dec).
I know that it has something wrong on *DESTINATION PR_TIMEQ = NEXT, but I don't know how to fix it.
Please give me some hints on it.
Many thanks 

Viewing all articles
Browse latest Browse all 1545

Trending Articles



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