Hi Olivia,
the last script (more readable, thanks) is slightly different from the previous, no more FOR/NEXT option 2 and 3 commented and a different select, but
*SELECT(%ENTSIEG%,"ID",ENTITY,"ENT_TYP='SIEGE'") is unused in your script, remember if you use it to add %ENTSIEG% to the XDMI_MEMBERSET.
in the GET statement you can eliminate (as in the script) the default dimension values used in the WHEN condition or defined in XDIM_MEMBERSET, so for the last WHEN before REC
*WHEN GET(TIME="2006.DEC",CATEGORY=REEL_CPTA,AUDITTRAIL=DSiege)
should be sufficient.
It seems you are trying some experiments Image may be NSFW.
Clik here to view.
I invite you to continue verifying with SSMS, build a query equivalent to the GET, with the values of all your dimension: it gives 1 as result? (actually you have only this not commented)
Try simplifiyng the script , no select, with only 1 fixed values for each dim and see if it works and after add 1 variable each time.
Regards
Roberto