Quantcast
Channel: SCN : All Content - SAP Planning and Consolidation, version for SAP NetWeaver
Viewing all articles
Browse latest Browse all 5457

write data into next year with script logic

$
0
0

Hi,

 

I have a requirement whereby I have a script that my users can run via a data manager package. This script should take values from the period the user selects when running the script and write them to all periods of the following year. My script currently looks like this

 

*SELECT(%YR%,"[YEAR]",TIME,"[ID] = '%TIME_SET%'")

 

*XDIM_MEMBERSET ACCTDETAIL = F_CLO

*XDIM_MEMBERSET CATEGORY = Actual

*XDIM_MEMBERSET CONSOSCOPE = G_NONE

*XDIM_MEMBERSET CURRENCY = LC

*XDIM_MEMBERSET DATASRC = INPUT

*XDIM_MEMBERSET TIME = %TIME_SET%

*XDIM_MEMBERSET ENTITY = %ENTITY_SET%

 

*WHEN ACCOUNT *IS BAS(1202300000)

*REC(EXPRESSION = %VALUE%, ACCOUNT = 1202309000, ACCTDETAIL = P_SUG, CATEGORY = Plan, INTCO = I_NONE,TIME = %YR%+1.01)

...

*ENDWHEN

The real script has twelve *REC lines, one per month. The problem is that the %YR%+1 does not return a value as I would expect. When a user runs this script for period 2015.08, the *REC tries to write data to 2015+1.01.

 

How can I write it, so that the year is calculated correctly?

 

Thanks,

Arnold


Viewing all articles
Browse latest Browse all 5457

Trending Articles



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