Skip to Content
0
Former Member
Jan 13, 2011 at 12:57 PM

*REC is behaving strange

26 Views

Hi gurus.

I am experiencing some weird behavior of the *REC-statement.

My code looks like this:

*XDIM_MEMBERSET ENTITY_SAG = 21103630
  *WHEN ENTITY_SAG.PSEUDO_OWN_ENTITY
  *IS <> ""
  *WHEN C_ACCT.ACCTYPE
  *IS "EXP","LEQ","AST", "INC"
    *BEGIN
    *REC(EXPRESSION= %VALUE% *
      ([C_ACCT].[A_INP_OWNERSHIP],
       [DATASOURCE].[FIN_APP_INPUT],
       [FLOW].[F_NONE],
       [GROUPS].[NON_GROUP],
       [INTCO].[I_NONE],
       [PRODUCTGROUP].[PG_NONE],
       [PROJECT].[PROJ_NONE],
       [RECUR].[RECURRENT])
      , ENTITY_SAG=ENTITY_SAG.PSEUDO_OWN_ENTITY) 
    *END
  *ENDWHEN //C_ACCT
  *ENDWHEN //ENTITY_SAG

When running this everything is moved into the Entity, which is specified by the property "PSEUDO_OWN_ENTITY" on the current ENTITY_SAG.

That is not only do the code copy everything from the current entity. It also resets the current entity's data.

I think the above script should only write to ENTITY_SAG specified by the property PSEUDO_OWN_ENTITY and not to the current source record. Am I wrong?