Business & farm

I'm still a bit confused by this.  Our partnership sold a building it owned and distributed the proceeds to the partners.  Should this be entered on the K1 line 19 with an A code?  Or only if the distribution is in excess of basis?