Hallo Gurus,
I have been working much with script logic in NW, but now I have to some of the same scripts in MS, and my methods are not working as indented, therefore I need your help.
To be more precise, I am creating a script for moving data from a YTD model to a periodic model, so I need to transform the data from YTD to periodic.
It is a quite simple task of subtracting the previous month from the current, unless current month is January.
I have created a script that works as a charm for one month at the time, however the users are going the move several periods at the time, so it would be better, if the script can do this. If I try several month with my current script, then it post a values on the month after the selected month, leaving a lot of junk data that I would prefer not being there.
My script is quite simple
*XDIM_MEMBERSET TIME= PRIOR,%TIME_SET%
*WHEN TIME
*IS <> PRIOR
*REC(FACTOR=1, AUDITID=COPYFIN)
*IS = PRIOR
*REC(FACTOR=-1,AUDITID=COPYFIN,TIME=NEXT)
*ENDWHEN
*COMMIT
I have created a script in NW that can take several months, but it uses the TMVL function in a for/next loop, and the TMVL function is not supported in MS. I have tried the prior function, but it does not work as intended in the loop.
The second thing I wanted to do is to use the *WHEN_REF_DATA functionality, but that isn't supported either.
My questions are:
Do we have any functionality in MS that can substitute for TMVL?
Does anyone have any experience with creating this script?
If this is not possible, is it possible to limit the data manager package to only allow for selecting one member of a dimension?
Thank you very much in advance
Best regards,
Mikkel Kristensen