Not sure if this would help much but , there is a function GROUP_MEMBER
Returns true if the specified business object belongs to the specified business object group
Parameters:
1) String identifying the business object
2) String identifying the business object group
Example:
IF GROUP_MEMBER('SavingAccount', 'Account') = TRUE Then …