CODE: Call a function

DECLARE @ret XML;

EXEC @ret = [ufn_Common_Layout_function] @pLayout=@Layoutfull,@pValues=@Data

SELECT @ret  AS [result]