Dear Experts ,
I want to execute some automation where I can write the data to some balance sheet items using DM with below logic :
for example : when data is saved in account 4010100001(PNL account ) with NA flow for Jan month , it should hit the account 1010410001 (BS Account ) with addition flow in jan month and deduction flow in feb month.
similarly it should execute for other months , but when executed , it is aggregating all the 12 months value and saving in Jan month with addition flow and Jan month with deduction flow of next year .
Sample Code :
*XDIM_MEMBERSET P_ACCT = BAS(4010100000)
//*SELECT(%D%,"[ID]",P_ACCT,"CASH='DEPRI'")
*XDIM_ADDMEMBERSET P_ACCT = %D%,5010100002,5010100001
*XDIM_ADDMEMBERSET P_ACCT = 1010410001,1010410002,1010419999
*WHEN CATEGORY
*IS "PLAN"
*WHEN P_DATASRC
*IS "UPLOAD","MANUAL"
*WHEN FLOW
*IS "NA"
*WHEN TIME
*IS %TIME_SET%
*WHEN P_ACCT
*IS 4010100001
*REC(FACTOR=-1,P_ACCT=1010410001,FLOW=F_120,TIME=TMVL(0,%TIME_SET%))
*REC(FACTOR=-1,P_ACCT=1010410001,FLOW=F_130,TIME=TMVL(1,%TIME_SET%))
*IS 4010100002
*REC(FACTOR=-1,P_ACCT=1010410002,FLOW=F_120,TIME=TMVL(0,%TIME_SET%))
*REC(FACTOR=-1,P_ACCT=1010410002,FLOW=F_130,TIME=TMVL(2,%TIME_SET%))
*IS 4010199999
*REC(FACTOR=-1,P_ACCT=1010419999,FLOW=F_120,TIME=TMVL(0,%TIME_SET%))
*REC(FACTOR=-1,P_ACCT=1010419999,FLOW=F_130,TIME=TMVL(2,%TIME_SET%))
*IS 5010100002,5010100001
*REC(FACTOR=1,P_ACCT=2010100006,FLOW=F_120,TIME=TMVL(0,%TIME_SET%))
*REC(FACTOR=1,P_ACCT=2010100006,FLOW=F_130,TIME=TMVL(2,%TIME_SET%))
*ENDWHEN
*ENDWHEN
*ENDWHEN
*ENDWHEN
*COMMIT
In order to execute properly currently , we need to execute this script logic for each month separately but client want that it should execute for all the periods in 1 go.
Plz advice
Regards,
SAP BPC