on 2021 Feb 19 3:32 AM
Hi Experts,
Our Development system is on BPC 11.1 Standard whereas the quality is on BPC 11.0 Standard.
Logic script which is working very fine in the Development system is not functioning in the quality system. Script is getting executed successfully in quality, but it doesn't generate any records.
We have narrowed down the issue within the script, and the same is not functioning in the quality system. Its actually the record statement within the when loop where we are using if condition.
We are not calling any Business Rule or BADI, its a straight forward calculation using script logic. Please find the sample code which has affected in BPC 11.0 but which is working fine in the BPC 11.1.
*XDIM_MEMBERSET ACCOUNT = 5000 ,STAT_ACT
*XDIM_MEMBERSET SCENARIO = ACT_CALC
*XDIM_MEMBERSET DATASRCE = ERP
*XDIM_MEMBERSET PRODUCT = BAS(ABC)
*XDIM_MEMBERSET TIME= %TIME_SET%,%PYRYEAR%.TOTAL
*FOR %TMV1%=%TIME_SET%
*WHEN TIME
*IS %PYRYEAR%.TOTAL
*WHEN ACCOUNT
*IS 5000
*REC(EXPRESSION=((%VALUE%)/[ACCOUNT].[STAT_ACT]>0)?(%VALUE%)/[ACCOUNT].[STAT_ACT]:0,TIME=%TMV1%,
DATASRCE = GM,SCENARIO=PLAN,ACCOUNT=STAT_MS)
*ENDWHEN
*ENDWHEN
*NEXT
Request clarification before answering.
After maintaining below environment level parameter, issue was resolved.
K2_SUPPORT_PARENT_MEMBER as X
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
By the way, you code can be written in a better way - you don't need to scope members that you are not using in the loop!
Correct code:
*SELECT(%PYRYEAR%,[PYRYEAR],SCENARIO,IS_CURRENT=Y)
*XDIM_MEMBERSET ACCOUNT = 5000
*XDIM_MEMBERSET SCENARIO = ACT_CALC
*XDIM_MEMBERSET DATASRCE = ERP
*XDIM_MEMBERSET PRODUCT = BAS(ABC)
*XDIM_MEMBERSET TIME= %PYRYEAR%.TOTAL
*WHEN TIME
*IS *
*FOR %TMV1%=%TIME_SET%
*REC(EXPRESSION=%VALUE%/[ACCOUNT].[STAT_ACT]>0 ? %VALUE%/[ACCOUNT].[STAT_ACT] : 0,TIME=%TMV1%,DATASRCE=GM,SCENARIO=PLAN,ACCOUNT=STAT_MS)
*NEXT
*ENDWHEN
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
6 | |
4 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.