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

Script logic to append the values

$
0
0

Hello Experts,

 

Im trying to write a piece of logic to aggregate balance but its overwriting on my target. I would like my results as below but its overwriting with last input value entered via input schedule. Is there an work around for this issue.


I always use account based business rule but this time I cannot as one of my dimension here is a User defined dimension so I am forced to script logic.




Script logic


*WHEN CATEGORY

*IS ACTUAL

*WHEN ICAUDITID

*IS INPUT

*WHEN CURRENCY

*IS LC

//*WHEN TRNCURRENCY.PARENTH1

//*IS ALL_TRNCURRENCY

*REC(FACTOR = 1,ICAUDITID = TP, TRNCURRENCY = NO_CURR)

*ENDWHEN

*ENDWHEN

*ENDWHEN

*COMMIT

 

Example and expected results below but I am not getting last inputted value.

 

 

Source
TIMEAUDITIDCOMPANYINTCOTRNCURRENCYCURRENCYAMOUNT
2012.01INPUTAI_BGBPLC1
2012.01INPUTAI_BINRLC2
2012.01INPUTAI_BUSDLC3
2012.01INPUTAI_BUSDLC4
TARGET
2012.01TPAI_BNO_CURRLC10

Viewing all articles
Browse latest Browse all 5414

Trending Articles