Fetching Values from Ancestors based on UDA condition

Advertisement
Hi,
I have a typical requirement where I  need to fetch data from the ancestor based on a particular UDA condition.
For ex: See the below exhibit
Dimension
----A (UDA: xyz)
-------B (UDA: xyz)
------------C
-----------------D
-----------------E (UDA: xyz)
-----------------F
Requirement: (Should be a member formula on a particular Account member - No calc script)
1- Calculations should happen only for members with UDA 'xyz'
2- The value for member 'E' should come from its first immediate ancestor with same UDA as'E' has - in the above case the value of 'E' should be from member 'B' (and not 'A')
similarly while calculating member 'B', it should take value from member 'A'
I have tried the member formula like:
@ANCEST(DimName,@Currmbr(Dimname)) AND @UDA(DimName,'xyz)
but this gives 'DOUBLE VALUE STRING' error.
Can anyone help me with how I should develop the logic for this requirement.
Thanks again.
Advertisement

Replay

DEAR ALL !
     I HAVE SOLVED THE ISSUE BY USING ANOTHER BAdI " HRBAS00_STRUAUTH".
THANKS AND REGARDS,
S.SURESH