Created new  function for produce select statement in SSRep

Created new  function for produce select statement in SSRep