Hi Vadim
Thanks for your reply. Yes, this is for default logic & pls see attachments in original post which answers 'how to ask questions on script logic issue' .
The first part of the code (refer below) is working fine:
*WHEN S_ACCOUNT
*IS A_OUTPUT
*REC(FACTOR = ([S_ACCOUNT].[A_OUTPUTGM],[S_TIME].[CC_GM_PERC]),S_ACCOUNT = A_GMARGIN,DATASRC = D_CALC)
*ENDWHEN
Issue as you identified is with second part:
*WHEN S_ACCOUNT
*IS A_OUTPUTGM
*WHEN S_TIME
*IS CC_GM_PERC
*REC(FACTOR = ([S_ACCOUNT].[A_OUTPUT]),S_ACCOUNT = A_GMARGIN,DATASRC = D_CALC)
*ENDWHEN
*ENDWHEN
I am not sure how to select/manipulate the existing (multiple) records against A_OUTPUT (i.e. one per month), when a single change is made against A_OUTPUTGM. (one change per year category)
The selection
*WHEN S_ACCOUNT
*IS A_OUTPUTGM
will only return a single record in the d/base, when i need to make changes to multiple records stored against A_OUTPUT.
Perhaps i need to use some thing in addition to *WHEN *IS*ENDWHEN
Thank all,
Glen