Lactam compounds and their use as inhibitors of serine proteases and method